pmap
pmap is a command-line utility used to display the memory map of a running process on Unix-like systems. It reports how a process’s virtual address space is laid out, listing each mapped region along with its size, permissions, and the backing file or object. By revealing which parts of a process’s memory are code, data, shared libraries, or anonymous mappings, pmap helps diagnose memory usage patterns, fragmentation, and potential leaks.
In typical implementations, pmap reads information from the process’s memory mappings in the proc filesystem (for
Common usage is pmap [options] pid, where pid is the process identifier. Options in various implementations
pmap is a diagnostic and profiling tool used by developers and system administrators to understand a process’s