在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Linux中查看某个进程占用内存的情况,执行如下命令即可,将其中的[pid]替换成相应进程的PID号: 复制代码 代码如下:cat /proc/[pid]/status
复制代码 代码如下:$ cat /proc/1161/status Name: cron State: S (sleeping) Tgid: 1161 Ngid: 0 Pid: 1161 PPid: 1 TracerPid: 0 Uid: 0 0 0 0 Gid: 0 0 0 0 FDSize: 64 Groups: 0 VmPeak: 23792 kB VmSize: 23656 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 1040 kB VmRSS: 1004 kB VmData: 260 kB VmStk: 136 kB VmExe: 40 kB VmLib: 2668 kB VmPTE: 72 kB VmSwap: 0 kB Threads: 1 SigQ: 0/15442 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000000000000 SigCgt: 0000000000010001 CapInh: 0000000000000000 CapPrm: 0000001fffffffff CapEff: 0000001fffffffff CapBnd: 0000001fffffffff Seccomp: 0 Cpus_allowed: 3 Cpus_allowed_list: 0-1 Mems_allowed: 00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 151 nonvoluntary_ctxt_switches: 0 |
请发表评论