Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / June 2008

Tip: Looking for answers? Try searching our database.

How to show java heap space

Thread view: 
s.scholte@thies-it.de - 30 Jun 2008 16:06 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.