In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "what is the use of Linux's pmap command". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Linux commonly used command pmap command is used to report the memory mapping of processes, which is a good tool for Linux debugging and operation and maintenance.
Pmap reports the memory mapping of the process
Syntax pmap (options) (parameters) option-x: display extended format;-d: display device format;-Q: do not show header and trailer lines;-V: display the specified version. Parameter process number: specifies the process number that needs to display the memory mapping relationship, which can be multiple process numbers.
Example pidof nginx 13312 5371 pmap-x 5371 5371: nginx: worker process Address Kbytes RSS Dirty Mode Mapping 00000000400000 564 344 0 r Rawhim-nginx 000000000068c000 68 68 60 rw--- nginx 000000000069d000 56 12 12 rw--- [anon] 000000000a0c8000 1812 1684 1684 rw--- [anon] 0000003ac0a00000 112 400 RmurxMel-ld-2.5.so 0000003ac0c1c000 44 4 rMurray Murray-ld-2.5.so 0000003ac0c1d000 44 4 rw--- ld-2.5.so 0000003ac0e00000 1340 284 rMurray Murray-libc-2.5.so 0000003ac0f4f000 2044 00-libc-2.5.so 0000003ac114e000 16 16 8 libc-2.5.so 0000003ac1152000 Murray-libc-2.5.so 0000003ac1152000 4 4 rw--- libc-2.5.so 0000003ac1153000 2020 20 rw--- [anon] 0000003ac1200000 8 40 r Murray-libdl-2.5.so 0000003ac1202000 2048 00-libdl-2.5.so 0000003ac1402000 4 4 4 libdl-2.5.so 0000003ac1403000 libselinux.so.1 0000003ac1815000-libdl-2.5.so 0000003ac1403000 4 4 4 rw--- libdl-2.5.so 0000003ac1600000 84 00 r Murray-libselinux.so.1 0000003ac1615000 2048 00-libselinux.so.1 0000003ac1815000 8 8 8 rw--- libselinux.so.1 0000003ac1817000 4 4 4 rw--- [anon] 0000003ac1a00000 23600 r Murray-libsepol.so.1 0000003ac1a3b000 2048 00-libsepol.so.1 0000003ac1c3b000 44 4 rw--- libsepol.so.1 0000003ac1c3c000 400 rw--- [anon] 0000003ac1e00000 88 44 0 r Murray-libpthread-2. 5.so 0000003ac1e16000 2048 00-libpthread-2.5.so 0000003ac2016000 4 4 r Murray-libpthread-2.5.so 0000003ac2017000 4 4 4 rw--- libpthread-2.5.so 0000003ac2018000 16 4 4 rw--- [anon] 0000003ac2600000 80 52 20 r Murray-libz.so. 1.2.3 0000003ac2614000 2044 00-libz.so.1.2.3 0000003ac2813000 44 4 rw--- libz.so.1.2.3 0000003ac2a00000 36 40 r Murray-libcrypt-2.5.so 0000003ac2a09000 2044 00-libcrypt-2.5.so 0000003ac2c08000 44 4 Rmurmuri-libcrypt-2.5.so 0000003ac2c09000 44 4 rw--- libcrypt-2.5.so 0000003ac2c0a000 18400 rw--- [anon] 0000003ac3600000 800 r Murray-libkeyutils-1.2.so 0000003ac3602000 2044 00-libkeyutils-1.2.so 0000003ac3801000 44 4 rw--- libkeyutils-1.2.so 0000003ac3a00000 68 00 r rw--- libresolv-2.5.so 0000003ac3c13000-libresolv-2.5.so 0000003ac3a11000 2048 00-libresolv-2.5.so 0000003ac3c11000 4 4 4 r-4 4 4 rw--- libresolv-2.5.so 0000003ac3c13000 8 00 rw--- [anon] 0000003ac3e00000 8 00 r Murray-libcom_err.so.2.1 0000003ac3e02000 2044 00-libcom_err.so.2.1 0000003ac4001000 44 4 rw--- libcom_err.so.2.1 0000003ac4200000 1204 8 0 r Murray-libcrypto.so.0. 9.8e 0000003ac432d000 2044 00-libcrypto.so.0.9.8e 0000003ac452c000 13288 12 rw--- libcrypto.so.0.9.8e 0000003ac454d000 16 12 12 rw--- [anon] 0000003ac4600000 17600 r Murray-libgssapi_krb5.so.2.2 0000003ac462c000 2048 00-libgssapi_krb5. So.2.2 0000003ac482c000 8 8 rw--- libgssapi_krb5.so.2.2 0000003ac4a00000 14400 r Murray-libk5crypto.so.3.1 0000003ac4a24000 2044 00-libk5crypto.so.3.1 0000003ac4c23000 8 8 rw--- libk5crypto.so.3.1 0000003ac4e00000 32 00 r- Xmuri-libkrb5support.so.0.1 0000003ac4e08000 2044 00-libkrb5support.so.0.1 0000003ac5007000 44 4 rw--- libkrb5support.so.0.1 0000003ac5200000 580 00 r Murray-libkrb5.so.3.3 0000003ac5291000 2048 00-libkrb5.so.3.3 0000003ac5491000 16 16 12 rw -libkrb5.so.3.3 0000003ac5a00000 288 40 r-libssl.so.0.9.8e 0000003ac5a48000 2048 00-libssl.so.0.9.8e 0000003ac5c48000 24 16 12 rw--- libssl.so.0.9.8e 00002b5751808000 88 8 rw--- [anon] 00002b5751810000 108 36 0 libpcre.so.1.2.0 00002b575182b000 libpcre.so.1.2.0 00002b575182b000 2044 00-libpcre.so.1.2.0 00002b5751a2a000 44 4 rw--- libpcre.so.1.2.0 00002b5751a2b000 28 28 28 rw--- [anon] 00002b5751a32000 40 200 00-libnss_files-2.5.so 00002b5751c3b000 4 4 Rafael-libnss_files-2.5.so 00002b5751c3c000 4 4 4 rw--- libnss_files-2.5.so 00002b5751c3d000 4 4 rw-s- zero (deleted) 00002b5751c3e000 20012 20000 20000 rw--- [anon] 00007fffbf2ce000 84 20 20 rw--- [stack] 00007fffbf35e000 1200 r Murray-[anon] ffffffffff600000 8192 00-[anon]-total kB 72880 22940 22000 "what is the use of pmap commands in Linux?" this ends here. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.