小知识点 之 JVM -XX:SurvivorRatio
2019-05-09 22:31
267 查看
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
相关文章推荐
- jvm -XX:NewRatio -XX:SurvivorRatio 比值问题
- JVM -XX:NewRatio、-XX:SurvivorRatio参数含义
- JVM-XX:NewRatio 、-XX:SurvivorRatio 参数的含义
- JVM -XX:NewRatio、-XX:SurvivorRatio参数含义
- JVM知识点总览-高级Java工程师面试必备
- JVM内存回收知识点图解(二)
- JVM加载类知识点
- Java知识点(三):JVM内存结构,包装类与异常
- Atitit 学习方法 -------体系化学习方法 Excel 科目,分类,专业 三级分类。。 知识点。。 课程就是每一个知识点的详细化。。 比如经济学 类别 专业 xx概论知识点 3、金
- 1 关于JVM的基本知识点问题整理
- 牛客网Java刷题知识点之什么是进程、什么是线程、什么是多线程、多线程的好处和弊端、多线程的创建方式、JVM中的多线程解析、多线程运行图解
- 复习“JDK+JVM”的知识点
- XX项目知识点汇总(4)
- JVM知识点总结
- JVM知识点总览-高级Java工程师面试必备
- Java_JVM参数-XX:MaxDirectMemorySize 与 两种 ByteBuffer: heap,direct ByteBuffer
- JVM内存分配 -Xms128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=512m
- jvm系列(八):jvm知识点总览
- JVM -XX: 参数介绍
- 强制要求JVM始终抛出含堆栈的异常(-XX:-OmitStackTraceInFastThrow)