[Linux eight] View the number of threads of a process

pstree -p `ps -e | grep cassandra| awk '{print $1}'` | wc -l

View the number of threads of the Cassandra process

 

pstree -p | wc -l

View all thread counts

 

pstree -p <pid> | wc -l

View the number of threads of a specified process

Guess you like

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