小知识点 之 JVM -XX:SurvivorRatio
JVM参数之-XX:SurvivorRatio
最近面试过程中遇到一些问JVM参数的,本着没用过去学习的办法看了些博客写得不准确,参考oracle的文档记录一下,争取每天记录一点知识点
-XX:SurvivorRatio=6 ,设置的是Eden区与每一个Survivor区的比值,可以反推出占新生代的比值,Eden为6, 两个Survivor为2, Eden占新生代的3/4, 每个Survivor占1/8,两个占1/4
原文:
Survivor Ratio Sizing
The
SurvivorRatio
parameter controls the size of the two survivor spaces. For example,-XX:SurvivorRatio=6
sets the ratio between each survivor space and eden to be 1:6, each survivor space will be one eighth of the young generation. The default for Solaris is 32. If survivor spaces are too small, copying collection overflows directly into the old generation. If survivor spaces are too large, they will be empty. At each GC, the JVM determines the number of times an object can be copied before it is tenured, called the tenure threshold. This threshold is chosen to keep the survivor space half full.Use the option
-XX:+PrintTenuringDistribution
to show the threshold and ages of the objects in the new generation. It is useful for observing the lifetime distribution of an application.出处:https://docs.oracle.com/cd/E19159-01/819-3681/abeil/index.html
最新文章
- symbol(s) not found for architecture x86_64 之 linker command failed with exit code 1 (use -v to see invocation)解决方案排查
- 【Networking】gRPC golang 相关资料
- ubuntu apt-get update 失败解决
- centos使用fuse挂载NTFS
- 利用javascript实现文本的自动输出
- 【转】Understanding and Using rem Units in CSS
- ZOJ 3430 Detect the Virus 【AC自动机+解码】
- 常见SQL分页方式效率比较
- python是如何进行内存管理的
- python爬虫入门(一)urllib和urllib2
- SQL基本注入演示
- js 把 json 转为以 ‘&;’ 连接的字符串
- VBA果然很强大
- 微信小程序框架——wepy使后感
- React使用DVA本地state传值取值
- Delphi XE4 For IOS之部署问题
- [ VB ] OrElse, AndAlso [ C# ] ||, &;&; 运算符
- 网络安装OS(配置文件)
- Netty---相关
- [DeeplearningAI笔记]卷积神经网络4.11一维和三维卷积