Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java -Xms256M does not set the minimum heap to 256M

843798Jul 11 2007 — edited Jul 25 2007
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2007
Added on Jul 11 2007
6 comments
1,716 views