Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Article Directory
Common Parameter Reference
reference | Explanation |
---|---|
-Xms | Initial heap size |
-Xmx | The maximum heap |
-xmn | The young generation heap size |
-Xss | Set the thread stack size |
-XX:MaxMetaspaceSize | Increase the size of metaspace |
-XX:MaxDirectMemorySize=1m | Modify Direct Memory Size |
-XX:NewRatio=1 | Modify the new generation and the old's ratio, the default ratio of 2 |
-XX:SurvivorRatio=4 | Modify the proportion of eden and survivor, the default is 8 |
-XX:+PrintGC | Print information GC, disabled by default |
-XX:+PrintGCDetails | Print GC Details |
Recommended tools
Open source java diagnostic tool
Reference verification
- Through the above tool that is easy to find whether the reference set to take effect