Category: heap-memory

How to fix the size of a Java heap

I know Java VM has “-XMx” and “-XMs” for setting the size of the heap. It also has a feature called “ergonomics”, that can intelligently adjust the size of the heap. But, I have a problem at hand requiring the heap with strictly fixed size. Here is the command line arguments: “-Xms2m -Xmx2m -XX:+PrintGCDetails” However, […]