Skip to Content
0
Former Member
Dec 02, 2006 at 02:07 PM

How to print the JVM Heap size on Command prompt

318 Views

Hi All,

I increased teh JVM Heap size thru command prompt

java -Xms512m -Xmx512m.

But i am not sure this applied or not to my JVM becaz after teh exceution of command it is just givean message usage and Help.

So can you plz guide me how to set the JVM Heap size correctly and any command is there to print the JVM heap Size which we set previously?

or else provide some sample code in java to print the JVM Heap Size.

Regds

Phanikumar