Tuesday, November 12, 2013

Thread dumps using jrockit

We can take the thread dumps using unix command as

kill -3 pid

or we can get thread dumps using admin console. (on privious posts i already explained)

Here i am going to get thred dump using JROCKIT , jrcmd command

jrcmd pid print_threads > thread.out_file


jrcmd 30654 print_threads > /logs/thread.out


here 30654 is process id.

print_threads: it redirects  thread logs into mentioned out log file.(as per example /logs/thread.out)