Java seems to ignore -Xms and -Xmx options
-Xmx specifies the max Java heap allocation (-Xms specifies the min heap allocation). The Java process has its own overhead (the actual JVM etc), plus the loaded classes and the perm gen space (set via -XX:MaxPermSize=128m) sits outside of that value too. Think of your heap allocation as simply Java’s “internal working space”, not the … Read more