java -Xms256M does not set the minimum heap to 256M
843798Jul 11 2007 — edited Jul 25 2007Hi,
I am running the same java class with two different jvms. One Sun JVM 1.5.0_12 and the other jrockit JVM 1.5.0_10.
The command I am using is something like this
java -Xms256m -Xmx256m -cp $CLASSPATH com.test.MainClass
I run this command and then check the memory utilization with the help of top. When I use the jrockit jvm, I see the memory utilized by the process around 290Mb that is in line with the minimum heap size. When I use the Sun JVM, the memory utilized by the process is around 30Mb.
How do I get the Sun JVM to use the minimum heap size defined?
Thanks,
Joel