路漫漫其修远兮
吾将上下而求索

命令学习:pstree查看线程

yum -y install psmisc

[root@localhost /home/andy]#pstree -p 19497
containerd-shim(19497)─┬─sleep(19515)
                       ├─{containerd-shim}(19498)
                       ├─{containerd-shim}(19499)
                       ├─{containerd-shim}(19500)
                       ├─{containerd-shim}(19501)
                       ├─{containerd-shim}(19502)
                       ├─{containerd-shim}(19503)
                       ├─{containerd-shim}(19505)
                       ├─{containerd-shim}(19506)
                       └─{containerd-shim}(19641)
					   
top -Hp 19497  查看某个进程下面的线程所占资源

未经允许不得转载:江哥架构师笔记 » 命令学习:pstree查看线程

分享到:更多 ()

评论 抢沙发

评论前必须登录!