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

最新文章

  1. symbol(s) not found for architecture x86_64 之 linker command failed with exit code 1 (use -v to see invocation)解决方案排查
  2. 【Networking】gRPC golang 相关资料
  3. ubuntu apt-get update 失败解决
  4. centos使用fuse挂载NTFS
  5. 利用javascript实现文本的自动输出
  6. 【转】Understanding and Using rem Units in CSS
  7. ZOJ 3430 Detect the Virus 【AC自动机+解码】
  8. 常见SQL分页方式效率比较
  9. python是如何进行内存管理的
  10. python爬虫入门(一)urllib和urllib2
  11. SQL基本注入演示
  12. js 把 json 转为以 ‘&’ 连接的字符串
  13. VBA果然很强大
  14. 微信小程序框架——wepy使后感
  15. React使用DVA本地state传值取值
  16. Delphi XE4 For IOS之部署问题
  17. [ VB ] OrElse, AndAlso [ C# ] ||, && 运算符
  18. 网络安装OS(配置文件)
  19. Netty---相关
  20. [DeeplearningAI笔记]卷积神经网络4.11一维和三维卷积

热门文章

  1. 【转】PHP利用Apache、Nginx的特性实现免杀Webshell
  2. 渗透技巧——导出Chrome浏览器中保存的密码
  3. Android Xutils3 完全解析
  4. window配合虚拟机VMware搭建虚拟ubuntu服务器入坑集锦
  5. 《linux就该这么学》课堂笔记18 squid服务
  6. udp,select超时和recvfrom收不到数据原因
  7. flask实战-个人博客-视图函数
  8. linux 指定用户 启动 程序
  9. opencart忘记登录密码怎么办
  10. 13-cmake语法-路径设置