1. View the java process
ps -ef | grep java
get pid
Or jps -l can view the process id
2. top -Hp [pid] or ps -mp [pid] -o THREAD, tid, time View the most time-consuming TID, the thread id
prinrf "%x\n" [tid] convert to hexadecimal
3. View thread class related information in java
jstack [pid] | grip [time]
jstack -l [pid] List all thread information.