linux中关于pmap的命令实例分析


本文摘自PHP中文网,作者黄舟,侵删。

这篇文章主要介绍了linux中 pmap 命令详解,需要的朋友可以参考下

通过查看帮助,返回了如下信息:


1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

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=<fileread 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 exit

For more details see pmap(1).

然后列出某个进程(PID:8868)的信息时如下:


1

2

3

4

5

6

7

8

9

10

11

12

13

pmap -x 8868

Address      Kbytes   RSS  Dirty Mode Mapping

00007f789ec2d000  1668  1384    0 r-x-- libc-2.19.so

00007f789edce000  2048    0    0 ----- libc-2.19.so

00007f789efce000   16   16   16 r---- libc-2.19.so

00007f789efd2000    8    8    8 rw--- libc-2.19.so

00000000020e0000  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的命令实例分析的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

Linux操作系统原理基础

Linux使用vi命令编辑文件实现不保存退出

Linux怎么进行压缩

Linux压缩命令是什么

Linux系统是怎样的

什么是LinuxLinux怎么使用?

如何在Linux中查找文件创建时间(crtime)

Linux文件链接的介绍及其应用

Linux文件在哪

Linux 查看日志常用命令

更多相关阅读请进入《Linux》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...