Hello,
I'm a java newbie and i've got a little question.
how do i show java heap space on console?
SLES 9
Java 1.4.2
regards
Thomas Schodt - 30 Jun 2008 16:45 GMT
> Hello,
>
[quoted text clipped - 3 lines]
> SLES 9
> Java 1.4.2
Your question is vague.
Maybe one of the following is what you are after.
-XX:+PrintCommandLineFlags
-XX:+PrintGC
-XX:+PrintGCDetails
http://java.sun.com/performance/jvmstat/
Alex.From.Ohio.Java@gmail.com - 30 Jun 2008 18:30 GMT
On Jun 30, 11:06 am, s.scho...@thies-it.de wrote:
> Hello,
>
[quoted text clipped - 5 lines]
>
> regards
Use JConsole.
Run your program with switch -Dcom.sun.management.jmxremote
and then run JConsole from you java/bin directory and enjoy results.
You can see not only heap but almost everything else and it doesn't
interrupt your console interaction.
Alex.
http://www.myjavaserver.com/~alexfromohio/
Roedy Green - 30 Jun 2008 19:13 GMT
>I'm a java newbie and i've got a little question.
>how do i show java heap space on console?
see http://mindprod.com/jgloss/garbagecollection.html for the methods
to measure free ram.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com