Skip to content

Conversation

King31T
Copy link
Contributor

@King31T King31T commented Oct 15, 2025

No description provided.


* `-XX:+UseConcMarkSweepGC`: 指定并发标记-清除 (CMS) 垃圾回收器。此参数必须放在 `-jar` 参数之前。
* `-Xmx`: 设置 Java 虚拟机 (JVM) 堆的最大值,通常建议设置为物理内存的 80%。
* `-Xms`:Java 虚拟机 (JVM) 堆的初始值,`-Xmx`: JVM堆的最大值,`-XX:NewRatio`: 堆内存中老年代和年轻代的比例,比如`-XX:NewRatio=2`,则表示老年代是年轻代的2倍

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add at the end.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants