File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes jconsole Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "jconsole" Watch "jconsole" New topic


Jon Camilleri
Ranch Hand

Joined: Apr 25, 2008
Posts: 664

When running jconsole connecting to pid 4336 on my laptop I noticed that heap memory usage goes up and down between 4k and 8k, even when no java programs are running. It also shows that 3105 classes are loaded, and, 30 live threads are running. I am running Win XP.

Do these consist of the Java Environment (JDK)? In what ways can jconsole help me monitor java applications for memory leaks and performance issues? Have you ever encountered a memory leak when working with Java?

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10825

Jon Camilleri wrote:.., even when no java programs are running. ..

Maybe its the JConsole itself?

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
While you can certainly use jconcole to do the monitoring, visualvm is a much more powerful tool.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46353
I think this question is too difficult for "beginning". Moving thread.
I agree. Here's the link:
subject: jconsole
jQuery in Action, 3rd edition