top
top –Hp 12190
ps -mp 12190 -o THREAD,tid,time
# printf "%x\n" 12205
2fad
#注意%x(小写x代表16字母小写,Linux jstack是小写,AIX的javacore中是大写)
# jstack 12190 |grep 2fad
"Thread-0" #9 prio=5 os_prio=0 tid=0x00007f6810141000 nid=0x2fad runnable [0x00007f67fb5f4000]
#
# jstack 12190 >jstack12190.txt
# vi jstack12190.txt
/2fad