linux view thread status

 

linux view thread status

1. > top

Can display all system processes

Press u, and then enter the corresponding execution user name, such as Tom

You can see all the processes started by the Tom user and their corresponding pids

2. > pstack pid

You can see the running status of each thread under this pid

 

E.g:

Query Java threads

ps -ef | grep java
ps -aux | grep java

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326645035&siteId=291194637