当前位置:网站首页>JVM参数解释
JVM参数解释
2022-06-25 12:16:00 【王会举】
JVM中常用的参数
Xms 起始内存
Xmx 最大内存
Xmn 新生代内存
Xss 栈大小。 就是创建线程后,分配给每一个线程的内存大小
-XX:NewRatio=n:设置年轻代和年老代的比值。如:为3,表示年轻代与年老代比值为1:3,年轻代占整个年轻代年老代和的1/4
-XX:SurvivorRatio=n:年轻代中Eden区与两个Survivor区的比值。注意Survivor区有两个。如:3,表示Eden:Survivor=3:2,一个Survivor区占整个年轻代的1/5
-XX:MaxPermSize=n:设置持久代大小
收集器设置
-XX:+UseSerialGC:设置串行收集器
-XX:+UseParallelGC:设置并行收集器
-XX:+UseParalledlOldGC:设置并行年老代收集器
-XX:+UseConcMarkSweepGC:设置并发收集器
垃圾回收统计信息
-XX:+PrintGC
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-Xloggc:filename
并行收集器设置
-XX:ParallelGCThreads=n:设置并行收集器收集时使用的CPU数。并行收集线程数。
-XX:MaxGCPauseMillis=n:设置并行收集最大暂停时间
-XX:GCTimeRatio=n:设置垃圾回收时间占程序运行时间的百分比。公式为1/(1+n)
并发收集器设置
-XX:+CMSIncrementalMode:设置为增量模式。适用于单CPU情况。
-XX:ParallelGCThreads=n:设置并发收集器年轻代收集方式为并行收集时,使用的CPU数。并行收集线程数。
边栏推荐
猜你喜欢

The amount is verified, and two zeros are spliced by integers during echo

My first experience of go+ language -- a collection of notes on learning go+ design architecture

20220620 interview reply

GPS receiver design (1)

Go novice exploration road 2

2021-09-02

It is extraordinary to make a move, which is very Oracle!

Penetration tool environment - installing sqli labs in centos7 environment
![[Visio]平行四边形在Word中模糊问题解决](/img/04/8a1de2983d648e67f823b5d973c003.png)
[Visio]平行四边形在Word中模糊问题解决

Zhangxiaobai's road of penetration (VI) -- the idea and process of SQL injection and the concat series functions and information of SQL_ Schema database explanation
随机推荐
MySQL and excel tables importing database data (Excel for MySQL)
Laravel task scheduling
Another night when visdom crashed
node. JS architecture optimization: reverse proxy and cache service
JS array de duplication
Jeecgboot startup popup configuration is still incorrect
阿里稳定性之故障应急处理流程
初识CANOpen
模块五(微博评论)
Go from 0 to 1. Obtain the installation package, get, post request, params, body and other parameters
Differences between JS and JQ operation objects
Common colors for drawing
(6) Pyqt5--- > window jump (registration login function)
Select randomly by weight [prefix and + dichotomy + random target]
Penetration tool environment - Installation of sqlmap
Laravel is not logged in and cannot access the background by entering the URL
Go novice exploration pause
Using CMD (command prompt) to install MySQL & configure the environment
Penetration tool environment - installing sqli labs in centos7 environment
3+1保障:高可用系统稳定性是如何炼成的?