permaculture playing cards*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "jconsole" Watch "jconsole" New topic
Author

jconsole

Jon Camilleri
Ranch Hand

Joined: Apr 25, 2008
Posts: 660

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?



Jon
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

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
Marshal

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


Ping & DNS - my free Android networking tools app
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37884
    
  22
I think this question is too difficult for "beginning". Moving thread.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jconsole
 
Similar Threads
Developing an application like JConsole
Gap between task manager to JVM memory
java.lang.OutOfMemoryError: Java heap space
using jconsole
Good profiler (JProbe vs. JProfiler vs free ones)