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
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