File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes Monitor Threads running in JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Monitor Threads running in JVM" Watch "Monitor Threads running in JVM" New topic
Author

Monitor Threads running in JVM

ELANGOVAN Kaliaperumal
Greenhorn

Joined: Aug 25, 2007
Posts: 1
Hi,

We are running Threads in our application. The Thread status are being are stored in a database. But for some issue fix, people are changing the thread staus in the database and running the threads again. It creats problem in our application.

The application is running in UNIX. What we would like to know is, is there any mechanism to list the threads that are running in the JVM (in UNIX). If we get the list, it will help us to fix our issues. Its similar to ps -ef in UNIX and get the list of running threads for any id.

Any help pls,,,?
Romeo Son
Ranch Hand

Joined: Mar 12, 2007
Posts: 92

Starting with Java5 I guess you can start <JAVA_HOME>\bin\jconsole and see the threads running in your application. It is good practice to give them names while creating so that they can be visually found much easily.


SCJP 1.4, SCJD, OCE EJBD 6
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Monitor Threads running in JVM
 
Similar Threads
daemon
Stack Dumps of ALL threads
Thread
Stack Dumps of ALL threads
Hung Threads in WebSphere