top -Hp pid 显示所有的线程

可以显示所有的线程

top -Hp pid

[root@jiangyi01.sqa.zmf /home/ahao.mah]
#top -Hp 41330
top - 22:49:40 up 27 days,  1:28,  3 users,  load average: 1.04, 1.04, 1.02
Threads:  13 total,   0 running,  13 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.5 us,  2.9 sy,  0.0 ni, 95.5 id,  0.1 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem : 98794984 total, 79462560 free,  2018012 used, 17314416 buff/cache
KiB Swap:        0 total,        0 free,        0 used. 82800656 avail Mem

   PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
 41330 root      20   0  598280  24044  10968 S  0.0  0.0   0:00.15 docker
 41333 root      20   0  598280  24044  10968 S  0.0  0.0   0:04.02 docker
 41334 root      20   0  598280  24044  10968 S  0.0  0.0   0:00.00 docker
 41335 root      20   0  598280  24044  10968 S  0.0  0.0   0:08.33 docker
 41336 root      20   0  598280  24044  10968 S  0.0  0.0   0:00.04 docker
 41337 root      20   0  598280  24044  10968 S  0.0  0.0   0:08.19 docker
 41342 root      20   0  598280  24044  10968 S  0.0  0.0   0:00.04 docker
 41343 root      20   0  598280  24044  10968 S  0.0  0.0   0:08.24 docker
 41526 root      20   0  598280  24044  10968 S  0.0  0.0   0:00.09 docker
 44452 root      20   0  598280  24044  10968 S  0.0  0.0   0:07.94 docker
 44580 root      20   0  598280  24044  10968 S  0.0  0.0   0:08.28 docker
 44612 root      20   0  598280  24044  10968 S  0.0  0.0   0:04.22 docker
 87188 root      20   0  598280  24044  10968 S  0.0  0.0   0:03.95 docker

VIRT 表示 Virtual Memory 虚拟内存
RES 表示 Resident Memory 驻留内存
SHR 表示 shared memory 共享内存

RES 表示 进程占用的 物理内存数,实际使用数,而非申请的内存数

posted @ 2017-01-09 22:54  苏小北1024  阅读(9725)  评论(0编辑  收藏  举报