首页 > 编程语言 > 详细

查看linux启动的线程信息

时间:2015-07-20 19:03:34      阅读:231      评论:0      收藏:0      [点我收藏+]

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

查看linux启动的线程信息

原文:http://www.cnblogs.com/olmlo/p/4661934.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!