Page History
...
Code Block |
---|
wrapper.java.additional.5=-XX:MetaspaceSize=200M wrapper.java.additional.6=-XX:MaxMetaspaceSize=200M wrapper.java.additional.7=-XX:MinMetaspaceFreeRatio=0 wrapper.java.additional.8=-XX:MaxMetaspaceFreeRatio=100 wrapper.java.additional.9=-XX:MaxPermSize=128m wrapper.java.additional.10=-XX:+UseG1GC # make sure that the hardcoded System.gc() or Runtime.gc() are ignored (rmi does this) wrapper.java.additional.11=-XX:+DisableExplicitGC # Initial Java Heap Size (in MB), when G1GC is used just set the init memory to the max memory wrapper.java.initmemory=321280 # Maximum Java Heap Size (in MB) wrapper.java.maxmemory=1280 |
...
-server -Xms4G -Xmx4G -XX:+UseG1GC
-XX:MetaspaceSize=200M -XX:MaxMetaspaceSize=200M -XX:MinMetaspaceFreeRatio=0 -XX:MaxMetaspaceFreeRatio=100 -XX:+DisableExplicitGC
Where the 4G for the initial (Xms) and the max (Xmx) should be set to the maximum heap you want or can assign to the java vm.
...
Overview
Content Tools
Activity