Skip to Main Content

Java HotSpot Virtual Machine

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 xmx and xms

843829May 5 2009 — edited Jul 6 2009
Hi All,

I want to know what xmx and xms settings are given at the time of java is launched, in the java code.

Runtime.getFreeMemory gives size of current free heap size. I am not intrested in such calls.

java -Xmx 512 -Xms 256 Test

In test.java I need some code which prints values of mx and ms.


thanks
renjith.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 3 2009
Added on May 5 2009
2 comments
368 views