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

Yosemite memory leak killing me

Problem description:

Yosemite installed 11/17.

New Canon Printer and associated software installed 12/10.


I experienced no problems until I attempted to import some 1300 photos from a memory stick into iPhoto a few weeks ago. Somehow my “default library” was corrupted. I started experiencing the rotating beach ball and things started slowing down. I did NOT connect the two. I ignored the iPhoto problem for a few days, but the rotating ball started appearing in other applications. Eventually, I started getting an “out of memory” (or something similar) message.


So I came here to see if others had experienced similar problems. It seemed that many had problems with Mail when they first upgraded to Yosemite. I’ve had no such problem. Nonetheless, I’ve followed the instructions found in Luis_Mercado’s “Guide: How to solve Yosemite memory leaks and CPU usage” with no relief.


Based on information found here, I’ve used iPhoto Library Manager to rebuild my iPhoto Library (lost all my albums – what a pain) and added Activity Monitor and Memory Clean apps. If I pay attention to Memory Clean and use it regularly, I can use this machine – but it’s a pain.


I’m not a technician, but I’m not a total Luddite either. I’m open to suggestions for what I might do to solve this problem. It seems that an EtreCheck report is required so here ‘tis:


EtreCheck version: 2.1.5 (108)

Report generated December 25, 2014 at 8:46:57 AM CST


Click the [Support] links for help with non-Apple products.

Click the [Details] links for more information about that line.

Click the [Adware] links for help removing adware.


Hardware Information: ℹ️

MacBook Pro (15-inch, Late 2011) (Verified)

MacBook Pro - model: MacBookPro8,2

1 2.2 GHz Intel Core i7 CPU: 4-core

4 GB RAM Upgradeable

BANK 0/DIMM0

2 GB DDR3 1333 MHz ok

BANK 1/DIMM0

2 GB DDR3 1333 MHz ok

Bluetooth: Old - Handoff/Airdrop2 not supported

Wireless: en1: 802.11 a/b/g/n


Video Information: ℹ️

Intel HD Graphics 3000 - VRAM: 384 MB

Color LCD 1280 x 800

AMD Radeon HD 6750M - VRAM: 512 MB


System Software: ℹ️

OS X 10.10.1 (14B25) - Uptime: 1:6:46


Disk Information: ℹ️

TOSHIBA MK5065GSXF disk0 : (500.11 GB)

EFI (disk0s1) <not mounted> : 210 MB

Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB

Macintosh HD (disk1) / : 498.88 GB (324.66 GB free)

Encrypted AES-XTS Unlocked

Core Storage: disk0s2 499.25 GB Online


MATSHITADVD-R UJ-8A8


USB Information: ℹ️

Canon CanoScan

Apple Computer, Inc. IR Receiver

Apple Inc. Apple Internal Keyboard / Trackpad

Apple Inc. BRCM2070 Hub

Apple Inc. Bluetooth USB Host Controller

Apple Inc. FaceTime HD Camera (Built-in)


Thunderbolt Information: ℹ️

Apple Inc. thunderbolt_bus


Gatekeeper: ℹ️

Mac App Store and identified developers


Problem System Launch Agents: ℹ️

[killed] com.apple.accountsd.plist

[killed] com.apple.AirPlayUIAgent.plist

[killed] com.apple.CallHistoryPluginHelper.plist

[killed] com.apple.CallHistorySyncHelper.plist

[killed] com.apple.cloudd.plist

[killed] com.apple.coreservices.appleid.authentication.plist

[killed] com.apple.icloud.fmfd.plist

[killed] com.apple.Maps.pushdaemon.plist

[killed] com.apple.printtool.agent.plist

[killed] com.apple.security.cloudkeychainproxy.plist

[killed] com.apple.spindump_agent.plist

[killed] com.apple.telephonyutilities.callservicesd.plist

12 processes killed due to memory pressure


Problem System Launch Daemons: ℹ️

[killed] com.apple.awdd.plist

[killed] com.apple.ctkd.plist

[killed] com.apple.icloud.findmydeviced.plist

[killed] com.apple.ifdreader.plist

[killed] com.apple.nehelper.plist

[killed] com.apple.nsurlsessiond.plist

[killed] com.apple.spindump.plist

[killed] com.apple.wdhelper.plist

8 processes killed due to memory pressure


Launch Daemons: ℹ️

[loaded] com.adobe.fpsaud.plist [Support]

[loaded] com.microsoft.office.licensing.helper.plist [Support]

[loaded] jp.co.canon.MasterInstaller.plist [Support]


User Launch Agents: ℹ️

[loaded] com.adobe.ARM.[...].plist [Support]

[running] com.amazon.cloud-player.plist [Support]

[loaded] com.google.keystone.agent.plist [Support]

[not loaded] jp.co.canon.Inkjet_Extended_Survey_Agent.plist [Support]


User Login Items: ℹ️

iTunesHelper ApplicationHidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)

Spotify Application (/Users/[redacted]/.Trash/Spotify.app)

Dropbox Application (/Applications/Dropbox.app)


Internet Plug-ins: ℹ️

FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]

EPPEX Plugin: Version: 10.0 [Support]

AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Support]

AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Support]

Flash Player: Version: 16.0.0.235 - SDK 10.6 [Support]

GarminGPSControl: Version: 3.0.1.0 Release - SDK 10.4 [Support]

Default Browser: Version: 600 - SDK 10.10

QuickTime Plugin: Version: 7.7.3

SharePointBrowserPlugin: Version: 14.4.7 - SDK 10.6 [Support]

Silverlight: Version: 5.1.10411.0 - SDK 10.6 [Support]


Safari Extensions: ℹ️

Ultimate [Installed]


3rd Party Preference Panes: ℹ️

Flash Player [Support]

FUSE for OS X (OSXFUSE) [Support]


Time Machine: ℹ️

Time Machine not configured!


Top Processes by CPU: ℹ️

10% mds

7% WindowServer

6% Activity Monitor

2% sysmond

0% AppleSpell


Top Processes by Memory: ℹ️

202 MB com.apple.WebKit.WebContent

155 MB mds_stores

107 MB WindowServer

99 MB Finder

99 MB Microsoft Word


Virtual Memory Information: ℹ️

800 MB Free RAM

1.68 GB Active RAM

476 MB Inactive RAM

1.14 GB Wired RAM

3.22 GB Page-ins

4 MB Page-outs


Diagnostics Information: ℹ️

Dec 25, 2014, 07:40:46 AM Self test - passed

Dec 23, 2014, 03:55:16 PM /Library/Logs/DiagnosticReports/discoveryd_2014-12-23-155516_[redacted].crash

Dec 23, 2014, 03:07:35 PM /Library/Logs/DiagnosticReports/My Image Garden_2014-12-23-150735_[redacted].cpu_resource.diag [Details]

Dec 23, 2014, 02:10:58 PM /Library/Logs/DiagnosticReports/My Image Garden_2014-12-23-141058_[redacted].cpu_resource.diag [Details]

Dec 22, 2014, 01:24:47 PM /Library/Logs/DiagnosticReports/discoveryd_2014-12-22-132447_[redacted].crash

Dec 22, 2014, 10:58:47 AM /Library/Logs/DiagnosticReports/iPhoto_2014-12-22-105847_[redacted].cpu_resourc e.diag [Details]

MacBook Pro (15-inch Late 2011), OS X Yosemite (10.10.1)

Posted on Dec 25, 2014 7:00 AM

Reply
16 replies

Dec 25, 2014 9:53 AM in response to laslonimne

There is excessive swapping of data between physical memory (that is, the memory chips on the logic board) and virtual memory (one or more files on the startup volume.) That activity is relatively slow and causes the whole system to be less responsive. It can happen for two reasons:

A long-running process with a memory leak (a kind of bug)

Not enough memory for your usage pattern

Please note that if the cause is a memory leak, installing more memory will not help. That's likely if you already have more than 4 GB of memory. Tracking down a memory leak can be difficult, and it may come down to a process of elimination.

These instructions are for OS X 10.9 and later. Some details may be slightly different for earlier versions of OS X.

When you notice the swap activity, open the Activity Monitor application and select All Processes from the View menu, if it's not already selected. Select the Memory tab. Click the heading of the Real Mem column in the process table twice to sort the table with the highest value at the top. If you don't see that column, select

View ▹ Columns ▹ Real Memory

from the menu bar.

If one process (excluding "kernel_task") is using much more memory than all the others, that could be an indication of a leak. A better indication would be a process that continually grabs more and more real memory over time without ever releasing it. Here is an example of how it's done.

The processes named "Safari Web Content" render web pages for Safari. They use a lot of memory and may leak if certain Safari extensions or third-party web plugins are installed. Consider them prime suspects.

Another process often implicated in memory leaks is "inkjet4" or "inkjet8," which is a component of the HP printing software. If it's present, force-quit the process in Activity Monitor to solve the problem temporarily. Empty the print queues in the Printers & Scanners preference pane (which has a slightly different name in each recent version of OS X.) If you don't use an HP printer, remove the software. Otherwise, if the problem is recurrent, update the software (which may not help) or contact HP support.

"Wired" memory should be a small part of the total. That memory is not swapped, but it makes less physical memory available which may then result in swapping. If you have a lot of wired memory, that's usually an indication of a memory leak in a third-party program that modifies the operating system at a low level. Ask for guidance in that case.

If you don't have an obvious memory leak, your options are to install more memory (if possible) or to run fewer programs simultaneously.

The next suggestion is only for users familiar with the shell. For a more precise, but potentially misleading, test, run the following command:

sudo leaks -nocontext -nostacks process | grep total

where process is the name of a process you suspect of leaking memory. Almost every process will leak some memory; the question is how much, and especially how much the leak increases with time. I can’t be more specific. See the leaks(1) man page and the Apple developer documentation for details.

Dec 26, 2014 7:08 AM in response to Linc Davis

Thanks for the canned response Linc, but as I said, I came here earlier looking for a solution and found your same post on several other posts, and it has not helped.

But, to be specific: I am running Activity Monitor. No one process, except kernel_task, consistently uses more memory than any other task. I have no HP Printer software (and the link you provide for removing said software no longer works – you might want to correct that before you paste your response again). Wired memory is consistently over a gigabyte. You suggest I ask for guidance in this case. Consider me asking.

As noted, I have 4 GB memory, so I don’t believe additional memory will solve my problem. Running fewer programs simultaneously doesn’t help – I can run out of memory when re-starting with NO active programs.

While I’m not familiar with “the shell”, I have no suspect process so I don’t know how it would help anyway.

I appreciate your generalized comments, but they did not address my specific problem.

Thanks anyway.

Dec 26, 2014 8:11 AM in response to laslonimne

When you have the problem, note the exact time: hour, minute, second.

These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.

Launch the Console application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad and start typing the name.

The title of the Console window should be All Messages. If it isn't, select

SYSTEM LOG QUERIES All Messages

from the log list on the left. If you don't see that list, select

View Show Log List

from the menu bar at the top of the screen.

Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.

Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.

Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.

The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.

Please don't indiscriminately dump thousands of lines from the log into this discussion.

Please don't post screenshots of log messages—post the text.

Some private information, such as your name, may appear in the log. Anonymize before posting.

Dec 26, 2014 10:01 AM in response to Linc Davis

Ah Linc,

Another of your canned responses. Nonetheless, I appreciate your attempt to help. My "problem" does not occur at a specific date and time. Rather the available memory just decreases and decreases. A cold boot can drop available memory to 20 mb. I can post the console log from a cold boot, but it's much more than the few dozen lines you suggest (more like 1300), but a few messages from the console log do stand out to my untrained eye:

this one repeated about 100 times - 12/26/14 10:54:16.000 AM kernel[0]: BUG in process suhelperd[157]: over-released legacy external boost assertions (1 total, 1 external, 0 legacy-external)

this-12/26/14 10:54:25.257 AM pboard[200]: Attempt to unlink previous shared memory during startup returned an error. Continuing...

several messages contained comments like these-

12/26/14 10:54:24.667 AM com.apple.xpc.launchd[1]: (com.apple.diagnostics_agent) This service is defined to be constantly running and is inherently inefficient.

12/26/14 10:54:24.667 AM com.apple.xpc.launchd[1]: (com.apple.dock.fullscreen) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.

which I assume are normal and there's nothing I can do about them.

Would it help to post the entire list?

Otherwise, where do we go from here?

Dec 26, 2014 11:01 AM in response to Linc Davis

Linc,

I'm sorry you don't like my "attitude." I've honestly responded to your posts. It's just that reading your posts is like talking to the help desk that always starts by asking me to reboot the unit. While I acknowledge that might solve the majority of users problems, there's no evidence you've actually read my initial post. I sincerely thanked you in both my last posts for your help. I acknowledge that I'm asking for help from others who don't owe me their time or anything else.

But I'm guessing that since you can't actually help me with your canned responses, you choose to go on the offensive and insult me.

And I'd be more than happy to pay for help from somebody who's paid to deal with people like me.

If only I could find someone qualified.

Sorry you're so thin-skinned (and apparently out of canned responses?).

You have a good day now, you hear?

Dec 27, 2014 9:40 AM in response to laslonimne

So I apparently have a process (or multiple processes) that allocate virtual memory but fails to free it. This seems to account for my consistent 1 GB+ of Wired Memory. It (4 GB of Memory shrinking to 20 MB or less) happens at a Cold Start with no applications running. I typically run Mail, Outlook, Safari with two or three tabs open – and now Activity Monitor. Memory leaks regularly with only these active apps. Periodically I’ll use MSWord, Excel, iPhoto and iTunes. The leak is neither slower nor faster when these apps are active. If I pay attention to Memory Clean statistics and regularly execute it, things tend to operate normally.


Is there no one who can point me to a way to identify this process (or these processes)?

Dec 27, 2014 10:49 AM in response to Eric Root

I did post the results Linc asked for on 26 Dec - at least to the best of my ability. As I noted above, my problem doesn't happen at a particular time, memory just decreases and decreases. I could post the console log from a cold boot if that would help. As I said, it's about 1300 lines.

My available memory is at 20MB right now. Here's my Activity Monitor:

User uploaded file

Dec 27, 2014 11:15 AM in response to laslonimne

Besides not understanding memory management in Yosemite, what actual symptoms are you experiencing. Your memory pressure is fine. There doesn't appear to be any memory leaking. If it was, your memory pressure would go to yellow or red.

Yosemite will use all available memory to speed things up. RAM sitting around waiting to be used is completely wasted.

If you have a time when things slow down, post the same report.

Dec 27, 2014 11:15 AM in response to 213JB

Yes 213JB, I get spikes in memory pressure. The indicator goes into the red zone and the machine freezes for a moment. Worst case, I get an Out of Memory popup and am asked to kill an app. Since I started monitoring and using Memory Clean (which seems to have some detractors on this site), this happens infrequently. I have NO IDEA how Memory Clean works or what it does. But without it, this machine would be useless to me. Executing it will, on occasion, cause a memory pressure spike into the red zone.

Unfortunately, other than Memory Clean, I cannot find a correlation between the memory pressure spikes and what I'm doing. It doesn't seem to happen just because I've invoked a new application or a new tab or URL in Safari. Believe me, I'm trying very, very hard to correlate the spike and memory degradation to something identifiable - just no luck yet.

Thanks for asking.

Dec 27, 2014 11:36 AM in response to Barney-15E

You are correct Barney-15E; I do not fully understand memory management in Yosemite. I do understand that it is attempting to use all available memory to speed things up; hence low available memory in and of itself is not necessarily a problem.


It’s the “out of memory” and attendant requirement to shut down applications that are frustrating me – that and the damnable rotating ball. See my reply to 213JB about how I’m using Memory Clean to survive – it is NOT my first choice. It’s also something I learned about in this forum AFTER my original post.


I have also done virtually everything discussed in Luis_Mercado’s “Guide: How to solve Yosemite memory leaks and CPU usage” (Most recently unchecking the 'displays have separate spaces') at least once.


I have uninstalled every unused (and many seldom-used) application I could find.


I will attempt to capture a shot of Activity Monitor with high memory pressure.


Thanks for looking. I appreciate any help I can get!

Yosemite memory leak killing me

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