• Post Reply Bookmark Topic Watch Topic
  • New Topic

Monitor Threads running in JVM  RSS feed

 
ELANGOVAN Kaliaperumal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 92
Android Eclipse IDE Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!