ubuntu查看进程的详细运行信息

$  watch -n 0.1 cat /proc/【process pid】/status
  1. VmRSS:内存占用情况
  2. (待完善)
Name:   dotnet
Umask:  0022
State:  S (sleeping)
Tgid:   28870
Ngid:   0
Pid:    28870
PPid:   28839
TracerPid:      0
Uid:    0       0       0       0
Gid:    0       0       0       0
FDSize: 512
Groups:
NStgid: 28870   1
NSpid:  28870   1
NSpgid: 28870   1
NSsid:  28870   1
VmPeak: 28933552 kB
VmSize: 28396140 kB
VmLck:         4 kB
VmPin:         0 kB
VmHWM:   4039940 kB
VmRSS:   3901564 kB
RssAnon:         3812248 kB
RssFile:           89316 kB
RssShmem:              0 kB
VmData:  4844020 kB
VmStk:       132 kB
VmExe:        96 kB
VmLib:    239544 kB
VmPTE:      9828 kB
VmPMD:       120 kB
VmSwap:        0 kB
HugetlbPages:          0 kB
Threads:        113
SigQ:   0/62953
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000001000
SigCgt: 00000003800344de
CapInh: 00000000a80425fb
CapPrm: 00000000a80425fb
CapEff: 00000000a80425fb
CapBnd: 00000000a80425fb
CapAmb: 0000000000000000
NoNewPrivs:     0
Seccomp:        2
Cpus_allowed:   fff
Cpus_allowed_list:      0-11
Mems_allowed:   00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,0000
0000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
Mems_allowed_list:      0
voluntary_ctxt_switches:        3508
nonvoluntary_ctxt_switches:     25

你可能感兴趣的:(工具)