linux中 pmap 命令詳解
通過查看幫助,返回了如下信息:
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 exit
For more details see pmap(1).
然后列出某個進(jìn)程(PID:8868)的信息時如下:
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: 內(nèi)存分配地址
Kbytes: 實際分配的內(nèi)存大小
RSS: 程序?qū)嶋H占用的內(nèi)存大小
Mapping: 分配該內(nèi)存的模塊的名稱
總結(jié)
以上所述是小編給大家介紹的linux中 pmap 命令詳解,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
相關(guān)文章
修改Apache配置指定php配置文件php.ini的位置方法
下面小編就為大家?guī)硪黄薷腁pache配置指定php配置文件php.ini的位置方法。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-02-02
shell 通過makefile傳參給c語言的實現(xiàn)示例
本文主要介紹了shell 通過makefile傳參給c語言的實現(xiàn)示例,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2023-03-03
Shell腳本實現(xiàn)上傳zip壓縮文件到FTP服務(wù)器
這篇文章主要介紹了Shell腳本實現(xiàn)上傳zip壓縮文件到FTP服務(wù)器,本文直接給出實現(xiàn)代碼,需要的朋友可以參考下2014-12-12
centos/rhel下實現(xiàn)nginx自啟動腳本實例
這篇文章主要介紹了centos/rhel下實現(xiàn)nginx自啟動腳本,需要的朋友可以參考下2014-07-07
Ubuntu服務(wù)器配置apache2.4的限速功能shell腳本分享
這篇文章主要介紹了Ubuntu服務(wù)器配置apache2.4的限速功能shell腳本分享,本文直接給出腳本實現(xiàn)代碼,代碼相關(guān)原理都寫在了注釋里,需要的朋友可以參考下2015-03-03
Linux?shell中的-d,-f,-e,-n的作用小結(jié)
本文主要介紹了Linux?shell中的-d,-f,-e,-n的作用小結(jié),文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2023-06-06
Shell命令之?dāng)?shù)組表示語法學(xué)習(xí)
這篇文章主要為大家介紹了Shell命令之?dāng)?shù)組表示語法學(xué)習(xí),有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-05-05

