Java Threads Tracing on Linux

Hi all,

I am running multi-threaded java program on linux, and after running for a while it is killed by the OS or hangs.

when I display the processes I got so many processes with the command line I used to run the program "java Server". I can see that one process that caused the crash is in "R" state for (Runnable in linux words).

is there a way to display the processes and there corresponding threads by class name, through Linux pr JVM???

Thanks
louaiAsked:
Who is Participating?
 
CEHJCommented:
>>Is there a way to display the processes and there corresponding threads by class name, through Linux pr JVM???

No. The best way is to implement a proper logging strategy, followed by running in a debugger
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Are you using many threads in the program? Is it possible for you to use a thread-pool?
0
 
sciuriwareCommented:
You could make use of ECLIPSE and put breakpoints in multiple critical zones of threads,
but you just can't monitor more than one thread at a time.

;JOOP!
0
 
CEHJCommented:
:-)
0
 
Mayank SAssociate Director - Product EngineeringCommented:
So what was the solution?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.