Inspect a Process's Memory with vmmap
Break down a macOS process's RAM usage by region and type using the built-in vmmap tool.
01Command
$ vmmap --summary <pid>02What it does
vmmap prints every virtual memory region of a live process — which library or allocation zone owns each range, whether pages are writable/dirty (cost real RAM) or clean/reclaimable, and how big the stacks and mapped files are. The --summary flag condenses this into a table that answers the everyday question 'why does this process hold 2 GB?': usually malloc allocations, dirty memory from caches, or a leak. Ship with macOS, no Xcode required; find the PID via ps or Activity Monitor.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- vmmap(1) macOS man pageEvidence: Man page for vmmap: shows the virtual memory regions of a process, with --summary for an aggregated breakdown.
- Finding Memory Abuses - Apple DeveloperEvidence: Apple documentation recommending vmmap alongside leaks to analyse process memory footprint.
Last verified: 2026-09-18 · Category: Developer
06Related solutions
Erase the broken Spotlight database so macOS re-indexes your drive from scratch.
Read the serial number, model identifier and chip without opening About This Mac.
See how many charge cycles the battery has used and its health condition.