Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes what's running on my VM? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "what Watch "what New topic
Author

what's running on my VM?

William Stafford
Ranch Hand

Joined: Dec 13, 2004
Posts: 109
Is there a way to find out what processes are running on a Java VM?

When we shut Tomcat the console window that our app opened in does not close. We are thinking that this is because something associated with the app is still running.

However, just in general, I think it would be interesting to see what's running.

Thanks in advance for any guidance.

-=beeky
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
It's possible to list all the threads that are running in a JVM. The following piece of code does this. (Yes, it's so old that it generates HTML directly in a servlet - JSP didn't exist back then :-)

[ February 21, 2007: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
William Stafford
Ranch Hand

Joined: Dec 13, 2004
Posts: 109
Thanks Ulf. I didn't realize that thread info was that readily available. I guess my question was not really 'advanced' java.

-=beeky
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what's running on my VM?
 
Similar Threads
does java 7 support -XX:+HeapDumpOnCtrlBreak
Rich Internet Applications
Distributed servlets
Are Game applets slower than console games?
Screen Record Problem with Fat Client Java Application running on Sun JVM