检查进程的内存使用
检查单个进程内存使用
sudo pmap 3475134751: /usr/local/python/bin/python /opt/demo/bin/demo-server --config-file=/etc/demo.conf --log-config=/etc/demo-log.conf
0000000000400000 4K r-x-- /usr/local/python/bin/python2.7
0000000000600000 4K rw--- /usr/local/python/bin/python2.7
0000000000601000 10096K rw--- [ anon ]
0000000041826000 4K ----- [ anon ]
...
00007fff4bab8000 84K rw--- [ stack ]
00007fff4bb42000 4K r-x-- [ anon ]
ffffffffff600000 4K r-x-- [ anon ]
total 192320K-x extended Show the extended format.
-d device Show the device format.
EXTENDED AND DEVICE FORMAT FIELDS
Address: start address of map
Kbytes: size of map in kilobytes
RSS: resident set size in kilobytes
Dirty: dirty pages (both shared and private) in kilobytes
Mode: permissions on map: read, write, execute, shared, private (copy on write)
Mapping: file backing the map, or ’[ anon ]’ for allocated memory, or ’[ stack ]’ for the program stack
Offset: offset into the file
Device: device name (major:minor)检查进程的内存使用并按照内存使用量排序
检查系统进程中超过cpu阀值和memory阀值的方法
参考
Last updated