Xms and Xmx:
- The xms and xmx should be set as the same value which will be not re-allocate new memory and reduce the FullGC.
-
If we do not set them as the same, when the load is not becoming higher, there will be a fullgc to allocate more data, if this fullgc take long time, will kill the system.
-
-
Suggestion Configuration:
-Xms1400m
-Xmx1400m
Young generation:
-
Points:
-
The Young generation is small when all the Heap size is not re-allocated, which is the 1/5 of the allocated heap.
- If there is not enough space in the tenured generation to hold all the objects that require promotion from the young generation. (From my understanding that is why some times the young generation is decreased, and start gc although the Young generation size is 100m).
-
The Survivor is set as default, and JVM will allocate the Survivor which is very small.
-
Suggest Configuration:
-
Increase the size the Young generation, currently, the Ratio is 4 which means the Young: Tenured = 1:4, and the Young generation is 1/5 * 1400m = 280m. I think if we can set the Ratio to 3 will be better. (-XX:NewRatio=3)
- I also google some articles about the Young generation, they said, only set the ratio of the Young generation cannot guarantee the allocation is right, if we can also set –Xmn350m which will be much better.
-
How to set the survivor is good topic, and Sun also give some suggestions, (a lot of article also share a lot of suggestions), and the suggestions are separate two types,
-
No Survivor
-
-XX:MaxTenuringThreshold=0; I do not think that is good for our system because the Tenured generation is not so big for all the young objects.
-
Survivor is set as one number which is less than 32 (default setting is 32) -XX:SurvivorRatio=10
-
For our system, I think we can set it as less than 10. (Need testing, the survivor is not very important from the Sun documentation)
-
Set the Young generation use -XX:+UseParNewGC, if we use CMS as gc collector, the Young generation will use UseParNewGC as default, but we need set XX:ParallelGCThreads=n (n = CPU number).
Tenured Generation:
-
Suggest Configuration:
-
Use -XX:+UseConcMarkSweepGC, beyond that, we also need set the -XX:CMSInitiatingOccupancyFraction=80 (when do the CMS collection), -XX:CMSFullGCsBeforeCompaction=5 (there will be fragment when doing the CMS collection, this configuration is used to define when do the fragment arrange).
-
About the GCTimeRatio and MaxGCPauseMillis, I do not think we need set them which will make the JVM do some judgment and re-allocate the memory.
Perm Generation:
-
Point:
-
Do we need un-load some classes?
-
Suggest Configuration:
-
As some documentation mentioned, if we do not use the un-load the classes, the performance will be better, which can be set as –Xnoclassgc, but if we use this point, we should set the perm generation as 256m. (Need prove with testing).
-
If we need un-load some classes, we can use +CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled, the CMS class unloader is still with good performance and the perm set as 128m should be working well.
If we can make the perf 15% better according the gc tuning, which will be a big success.
分享到:
相关推荐
标题中的“suggestion”通常指的是在输入法或者搜索引擎中出现的智能提示功能,它能够根据用户输入的部分文字,预测并显示可能的完整词汇或短语,以提高输入效率。在这个场景下,描述提供了关于这个“suggestion”...
Suggestion
在Android开发领域,百度地图API是一个强大的工具,它为开发者提供了丰富的功能,包括步行导航、POI(Point of Interest)检索以及Suggestion提示。本文将深入探讨这些关键知识点,并结合`android studio 2.3.2`版本...
"flex suggestion组件(支持拼音)自动提示,自动补全"是一种常见的功能,它极大地提高了用户输入的效率,尤其对于中文输入场景更为实用。这个组件的设计灵感可能来源于百度搜索等常见搜索引擎的搜索框功能,它能够...
BaiduSuggestionJavaScript实现百度搜索suggestion功能百度搜索suggestion功能增强了用户体验,现在很多带有搜索功能的网站都会有类似搜索suggestion功能,用以增强用户体验。暑假的时候试着做了一个百度搜索...
v标签建议具有预输入功能的简单标签组件 :keyboard: 通过npm安装npm install vue-tag-suggestion导入并注册您要使用的位置import vue-tag-suggestion from ' vue-tag-suggestion 'components: { vue-tag-suggestion ...
灵活的AngularJS提前输入/自动填充/建议/预测搜索指令依存关系ng-建议的设置使用Bower安装: bower install ng-suggestion --save在您的应用程序中包含js / ng-suggestion.min.js。 您可能还希望包含css / ng-...
语言:English chrome扩展以扩展亚马逊搜索栏中显示的搜索建议数。 为亚马逊卖家! 该Chrome扩展通过显示Amazon在您输入的关键字之前和之后,亚马逊搜索栏中显示的搜索建议的数量展开。 这使得正在寻找新产品的努力...
综上所述,"Marriage Suggestion Program - Android Studio"项目涵盖了Android开发的多个重要方面,包括UI设计、数据管理、算法实现、网络通信以及测试和发布流程。开发者在实践中可以深入学习和掌握Android开发的全...
描述中的“suggestion 自动完成”进一步确认了这是一个用于实现自动填充或智能搜索建议的系统。 在实际的IT开发中,这种功能通常用于提升用户体验,当用户在搜索框输入关键词时,系统会根据已有的数据提供可能的...
语言:English 巨大的Amazon&KDP搜索建议扩展器和一键下载。 此扩展将使您对FBA产品和KDP书籍市场的亚马逊关键词研究变得更加轻松和快捷。 只需开始在搜索栏中输入关键字,它就会非常Swift地吸引Amazon推荐的大量...
本项目名为"Discord-Bot-Suggestion",显然关注的是如何创建一个能够处理用户建议的Discord机器人。这个项目很可能使用了JavaScript作为编程语言,因为标签明确指出了"JavaScript"。 在构建一个基于JavaScript的...
Chrome扩展程序可扩展亚马逊搜索栏中显示的搜索建议数量。 对于亚马逊卖家!此Chrome扩展程序通过显示在您输入的关键字之前和之后Amazon会建议的关键字,来扩展显示在Amazon搜索栏中的搜索建议的数量。...
**Ajax 实现仿百度搜索提示(Suggestion)** 在网页开发中,为了提供更好的用户体验,我们经常需要实现类似百度搜索的实时提示功能。这个功能在用户输入查询词时,能够实时展示与输入相关的建议,无需点击搜索按钮...
npm install vue-suggestion 将插件添加到您的应用中: import Vue from 'vue' import VueSuggestion from 'vue-suggestion' Vue . use ( VueSuggestion ) 使用vue-suggestion组件: < vue-suggestion :...
FlexATX Thermal Design Suggestions FlexATX是一种小型化主板规格,设计用于在有限空间内提供高性能计算能力。这种板型是标准ATX主板的一个变体,适用于需要节省空间的嵌入式系统、工业计算机和服务器等应用。...
本文将总结`suggestion`组件的开发经验,并重点讨论键盘事件,特别是针对中文输入法状态下的事件处理。 首先,我们需要了解键盘事件的顺序:keydown → keypress → keyup。在输入法开启时,keypress事件显得尤为...
适用于深大内部学生学习使用,外部网络无法读取
在这场竞赛中,Mercari挑战您建立一种算法,该算法自动建议合适的产品价格。您将获得用户输入的有关其产品的文字描述,包括诸如产品类别名称,品牌名称和商品状态之...Mercari Price Suggestion Challenge_datasets.txt