I have a simple java program that I run with -Xms=512mb
and -Xmx=512mb
arguments. So the initial heap is 512 Mb, which means that my JVM must request my OS to allocate at least 512mb for the program when I start it. If I open jconsole, then I see 524Mb for max heap size(JVM itself needs some extra memory), 524 for committed memory(the amount of memory guaranteed to be available for use by the Java VM). But if I execute tasklist | find {my_pid}
then I see
java.exe 7700 Console 1 145 272 КБ
I'm confused. How can it be less than 512Mb?