To set this higher you need to modify /etc/system by adding the following 2 definitions: a try.
This uses the incremental garbage collection algorithm, which attempts to collect a fraction of the heap instead of the entire thing at once.
For more in-depth troubleshooting discussion beyond the scope of this FAQ, please see the Java Trouble-Shooting and Diagnostic Guide I can't get profiling to work, what should I do?
First, make sure you are running with -agentlib:hprof and try -agentlib:hprof=help to see the different kinds of profiling available.
Due to various additional constraints such as available swap, kernel address space usage, memory fragmentation, and VM overhead, in practice the limit can be much lower.
On most modern 32-bit Windows systems the maximum heap size will range from 1.4G to 1.6G.
For most programs, collecting eden is much faster than other generations because most objects die young.
See Java SE Supported System Configurations for details. If you are having problems with the pause times for garbage collection or it taking too long, then see the pause time question above. What determines when softly referenced objects are flushed?
Starting with 1.3.1, softly reachable objects will remain alive for some amount of time after the last time they were referenced.
Checkout out the instrumented Tom EE dockerfile: tomee-jmx from docklands See you at Java EE Microservices.
and Tuning and troubleshooting Java EE 7 Microservices Is Munich's airport too far?
If you currently invoke with something like: which will dedicate 1/3rd of the memory to eden.