The pmap command reports the amount of memory that one or more processes are using. For example, use this command to determine which processes on the server are being allocated memory and whether this amount of memory is a cause of memory bottlenecks:
# pmap -x [pid]
Example below shows the total amount of memory the cupsd process is using:
# pmap -x 1796 1796: /usr/sbin/cupsd Address Kbytes RSS Anon Locked Mode Mapping 08048000 244 - - - r-x-- cupsd ffffe000 4 - - - ----- [ anon ] -------- ------- ------- ------- ------- total kB 6364 - - -
pmap Command Examples
1. To report memory map of a process:
# pmap 2210
2. To show the extended format:
# pmap -x 2210
3. To show the device format:
# pmap -d 2210
4. To hide header and footer lines:
# pmap -q 2210
5. To show the version:
# pmap -V