标签:
1、某一进程所有的线程个数、启动时间
ps max -o lstart,lwp,pid,nlwp,cmd
lstart: STARTED time the command started.
nlwp: NLWP number of lwps (threads) in the process. (alias thcount).
lwp: LWP lwp (light weight process, or thread) ID of the lwp being reported.
2、Java进程信息查看
jstack <pid>|grep <desc>|cut -c<startindex>-<endindex>|sort |uniq -c
例如:jstack 12041|grep job|cut -c0-43|sort |uniq -c
标签:
原文地址:http://www.cnblogs.com/olmlo/p/4661934.html