Thursday, May 24, 2007

Display the Address Space of a Process

The pmap command is used to display the address space of process ID. It shows the specific allocation of private and shared memory in kilobytes and the permissions for each mapped file. We've used it to troubleshoot database issues with memory. Here's an example.

pmap -x 2563
2563: in.telnetd
Address Kbytes Resident Shared Private Permissions Mapped File
...
...
-------- ------ ------ ------ ------
total Kb 1792 1528 1120 408

No comments: