눈바래다

0167. [LINUX] pmap

IT2015. 7. 13. 17:32

유저 프로세스의 논리 어드레스 공간에 매핑된 메모리 정보확인

root 에서

pmap -x pid

 

oany1:/ # pmap -x 15676

15676:  tail -f /webserver/jeus/logs/oany1/JeusServer_20130821.log

 Address   Kbytes Resident Shared Private Permissions       Mapped File

00010000      16      16      16       - read/exec         tail

00022000       8       8       -       8 read/write/exec   tail

00024000     136     136       -     136 read/write/exec     [ heap ]

FF230000       8       8       8       - read/exec         methods_ko.so.2

FF240000       8       8       -       8 read/write/exec   methods_ko.so.2

FF250000      64      64      64       - read/exec         ko.so.2

FF26E000      16      16       -      16 read/write/exec   ko.so.2

FF280000     688     672     672       - read/exec         libc.so.1

FF33C000      32      32       -      32 read/write/exec   libc.so.1

FF370000       8       8       -       8 read/write/exec     [ anon ]

FF380000       8       8       -       8 read/write/exec   libdl.so.1

FF390000       8       8       8       - read/exec         libc_psr.so.1

FF3A0000     184     184     184       - read/exec         ld.so.1

FF3DE000       8       8       -       8 read/write/exec   ld.so.1

FF3E0000       8       8       -       8 read/write/exec   ld.so.1

FFBEE000       8       8       -       8 read/write          [ stack ]

--------  ------  ------  ------  ------

total Kb    1208    1192     952     240

 

pmap 쓰면 ps -ef 에서 잘려나간 명령어를 모두 볼수 있다