开发者

maxHeapPercent parameter in Launch4j

开发者 https://www.devze.com 2022-12-29 06:09 出处:网络
In Launch4j, the memory configuration can be based on the percentage of the available memory size. For example:

In Launch4j, the memory configuration can be based on the percentage of the available memory size. For example:

<maxHeapPercent>50%</maxHeapPercent>

specifies that the maximum heap size will be 50% of the available memory.

However, I wonder if Launch4j calculate the memory by itself or actually reuse the JVM parameter -XX:MaxHeapFreeRatio? If so, the maximum memory will be 1Gb, according to the page: http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html#par_gc.ergonomics.default_size. This also means that I have to look for som开发者_运维知识库e other tools.


I just discover through the debug mode. Launch4j does calculate the right memory amount for you. It's done.

However, it seems that it's impossible to change the memory percentage by using a .ini file:

http://launch4j.sourceforge.net/docs.html#Additional_jvm_options

The .ini file only support jvm parameters. Is this correct?

0

精彩评论

暂无评论...
验证码 换一张
取 消