Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Preview App memory leak

The Preview app in El Capitan has serious memory leak problem. Open a 100MB pdf file, scroll for a while, it will easily consumes giga bytes of RAM! Once it used 8G!

MacBook Pro with Retina display, OS X El Capitan (10.11)

Posted on Oct 12, 2015 9:30 PM

Reply
75 replies

Jan 24, 2016 12:16 AM in response to welsonsun

OSX el Capitan 10.11.2

I was curious to see how much memory I was using just cause I had a few things open that I thought might be heavy memory users. I was using 13-something out of 16GB.

Man was I ever surprised when I realized Preview was using over 10GB, ***, - Really!


But then again I had a feeling something wasn't right with preview, I do tend to use it allot for class and I've had it freak out a few times. I could talk about it for awhile...


My guess is the preview source code isn't something one can just have a look at now is it?

Feb 11, 2016 7:10 AM in response to MRossi90

I'm not convinced Preview has a memory leak. You may just be seeing OSX's memory management at work. I opened a 329 page PDF in Preview and once I scrolled through it a couple times Preview was using 4.62GBs. If it had a leak OSX would not be able to release that memory when needed. Unfortunately I have 32GBs of RAM and didn't feel like opening enough applications to check.


With less memory and Preview open, and you can no longer open any programs, that would be evidence of a memory leak.

Feb 11, 2016 7:18 AM in response to dialabrain

Well, I have "only" 16 GB and when I wasn't aware of this problem I ended up with applications force quitting because there was no memory left and consequent loss of unsaved work. In my case, closing the open document(s) without quitting Preview does not release the memory.


So this is definitely a memory leak, or poor memory management by OSX. Call it whatever you want, it is something that needs to be fixed as soon as possible. Also, this is a regression because the problem was not there in Yosemite. I can reproduce the problem and shared debug info with Apple, but they don't reply.

Feb 12, 2016 2:15 AM in response to dialabrain

Like I said, and I can reproduce it, the system will eventually run out of memory, causing preview and or other applications to force quit. So it is false that OSX releases memory if it needs it. I don't know if this is technically a memory leak, but for sure it is a problem in memory management and a serious bug for what is supposed to be "the world's most advanced OS". An OS can't run out of memory because of its integrated PDF viewer whether it is a memory leak, a memory hog or whatever you call it.

Feb 12, 2016 2:24 AM in response to MRossi90

Any computer can run out of memory. It's why some can run with 4GB and some need more. As I mentioned previously, I have 32GB in my primary iMac. I've never run into a low memory condition but I could if I ran certain apps and enough apps simultaneously. I have Macs with as little as 8GB and I could run them into low memory conditions much sooner. If that were not true, everyone could run their Macs with 1GB. Or Windows 10 for that matter.

Preview App memory leak

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.