Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My swapfile has been growing fast lately, and I think I know which app is responsible, but I'm not sure.

Is there a way for a non-developer to check something like that, or would you need a version of the app which has debugging enabled?

n.b. I have Xcode/Developer tools installed. Running 10.8 on a MacBook Air.

share|improve this question
up vote 3 down vote accepted

You don't need any special tools like xcode or a debugger to pick apart the virtual memory system in terms of allocation and summary statistics.

I would start with sysdiagnose from the command line and perhaps pass in the PID or process name you care about. It samples that app, but you also have the PID and information on that suspect program with all the diagnostic information. Passing in the process ID will run vmmap, heap and (perhaps) other good diagnostics or added details on the program in question.

You'll want to focus on the zprint.txt and allmemory.txt first. The sysctl.txt has some vm information as well and fs_usage.txt shows file access, but generally not swapping.

There are unix manual pages for most of these tools as well as the sysdiagnose script is readable so you can see what it does or change it to collect. You might want to enable thorough mode on the script in case that added information on the PID helps you isolate the cause.

Happy hunting...

share|improve this answer
Thanks, will give this a try. – TJ Luoma Aug 16 '12 at 20:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.