linux中 pmap 命令详解
linux / 管理员 发布于 7年前 162
通过查看帮助,返回了如下信息:
Usage: pmap [options] pid [pid ...]Options: -x, --extended show details -X show even more details WARNING: format changes according to /proc/PID/smaps -XX show everything the kernel provides -c, --read-rc read the default rc -C, --read-rc-from=<file> read the rc from file -n, --create-rc create new default rc -N, --create-rc-to=<file> create new rc to file NOTE: pid arguments are not allowed with -n, -N -d, --device show the device format -q, --quiet do not display header and footer -p, --show-path show path in the mapping -A, --range=<low>[,<high>] limit results to the given range -h, --help display this help and exit -V, --version output version information and exitFor more details see pmap(1).
然后列出某个进程(PID:8868)的信息时如下:
pmap -x 8868Address Kbytes RSS Dirty Mode Mapping00007f789ec2d000 1668 1384 0 r-x-- libc-2.19.so00007f789edce000 2048 0 0 ----- libc-2.19.so00007f789efce000 16 16 16 r---- libc-2.19.so00007f789efd2000 8 8 8 rw--- libc-2.19.so00000000020e0000 4008 4008 4008 rw--- [ anon ]00007f787c000000 132 24 24 rw--- [ anon ]00007f787c021000 65404 0 0 ----- [ anon ]00007f7880000000 132 12 12 rw--- [ anon ]00007f7880021000 65404 0 0 ----- [ anon ]00007f7884000000 148 92 92 rw--- [ anon ]00007f7884025000 65388 0 0 ----- [ anon ]
以上列表项的含义如下:
Address: 内存分配地址
Kbytes: 实际分配的内存大小
RSS: 程序实际占用的内存大小
Mapping: 分配该内存的模块的名称
总结
以上所述是小编给大家介绍的linux中 pmap 命令详解,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对站的支持!
122 在
学历:一种延缓就业设计,生活需求下的权衡之选中评论 工作几年后,报名考研了,到现在还没认真学习备考,迷茫中。作为一名北漂互联网打工人..123 在
Clash for Windows作者删库跑路了,github已404中评论 按理说只要你在国内,所有的流量进出都在监控范围内,不管你怎么隐藏也没用,想搞你分..原梓番博客 在
在Laravel框架中使用模型Model分表最简单的方法中评论 好久好久都没看友情链接申请了,今天刚看,已经添加。..博主 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 @1111老铁这个不行了,可以看看近期评论的其他文章..1111 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 网站不能打开,博主百忙中能否发个APP下载链接,佛跳墙或极光..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号