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.
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.