[OS]/Embedded&Linux

pmap을 이용한 memory leak 검사

하늘을닮은호수M 2006. 12. 19. 18:33
반응형

PMAP(1) Linux User's Manual PMAP(1)

NAME
pmap - report memory map of a process

SYNOPSIS
pmap [ -x | -d ] [ -q ] pids...
pmap -V

DESCRIPTION
The pmap command reports the memory map of a process or processes.

GENERAL OPTIONS
-x extended Show the extended format.
-d device Show the device format.
-q quiet Do not display some header/footer lines.
-V show version Displays version of program.

SEE ALSO
ps(1) pgrep(1)

STANDARDS
No standards apply, but pmap looks an awful lot like a SunOS command.

AUTHOR
Albert Cahalan <albert@users.sf.net> wrote pmap in 2002, and is the current
maintainer of the procps collection. Please send bug reports to back@lists.sf.net>.

Linux October 26, 2002 PMAP(1)

# while을 이용한 scripts

%while 1

while pmap processID | grep heap #heap 영역 검사

while pmap processID | grep stack #stack 영역 검사

while sleep 5 # 5초마다

while end

반응형

'[OS] > Embedded&Linux' 카테고리의 다른 글

리눅스에서 메모리가 부족할 때  (0) 2007.01.09
gdb manual link  (0) 2006.12.21
GDB를 이용한 디버깅  (0) 2006.12.11
C프로그래머를 위한 VIM 사용법  (0) 2006.12.07
Windows Services for UNIX  (0) 2006.07.21