📜  java 内存参数 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:39.003000             🧑  作者: Mango

代码示例1
-Xms: It is used for setting the initial and minimum heap size. It is
recommended to set the minimum heap size equivalent to the maximum heap
size in order to minimize the garbage collection.

-Xmx: It is used for setting the maximum heap size. The performance will
decrease if the max heap value is set lower than the amount of live data.
It will force frequent garbage collections in order to free up space.