Linux pmap命令使用详解
pmap命令 用于报告进程的内存映射关系,是Linux调试及运维一个很好的工具。
语法
选项
1 2 3 4
| -x:显示扩展格式; -d:显示设备格式; -q:不显示头尾行; -V:显示指定版本。
|
参数
进程号:指定需要显示内存映射关系的进程号,可以是多个进程号。
实例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| [root@localhost ~]# pidof sshd 7773 7313 [root@localhost ~]# pmap 7773 7773: sshd: root@pts/0 00005595e8435000 800K r-x-- sshd 00005595e86fc000 16K r---- sshd 00005595e8700000 4K rw--- sshd 00005595e8701000 36K rw--- [ anon ] 00005595e8adf000 240K rw--- [ anon ] 00007f7bd8ccf000 12K r-x-- pam_lastlog.so 00007f7bd8cd2000 2044K ----- pam_lastlog.so 00007f7bd8ed1000 4K r---- pam_lastlog.so ....省略输出... 00007f7be267e000 136K r-x-- ld-2.17.so 00007f7be2880000 92K rw--- [ anon ] 00007f7be289e000 4K rw--- [ anon ] 00007f7be289f000 4K r---- ld-2.17.so 00007f7be28a0000 4K rw--- ld-2.17.so 00007f7be28a1000 4K rw--- [ anon ] 00007ffc793df000 132K rw--- [ stack ] 00007ffc7956a000 8K r-x-- [ anon ] ffffffffff600000 4K r-x-- [ anon ] total 158856K
|