View the most time-consuming thread commands in java on linux

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.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326268024&siteId=291194637