以tomcat为例
获取tomcat进程pid
ps -ef|grep tomcat
10090
统计该tomcat进程内的线程个数
ps -Lf 10090|wc -l
数量就是该tomcat启动了多少线程