Periodically the CPU on my iMac Mid-2015 running OS X 10.10.4, gets used almost exclusively by:
launchd
: ~70%fseventsd
: 12%UserEventAgent
: ~40%opendirectoryd
: 20%notifyd
: 12%
I have tried quitting programs (e.g. Chrome, Outlook etc.) and no apparent process seems to be the culprit. It seems to occur once an hour (at least it has done it 3 times in the last 3 hours) and each episode lasts ~10-30minutes. It does not appear to be reproducible with any action that I take.
If I open Console.app, in system.log, there are many repeated errors, such as:
Aug 6 16:29:11 DREWGEHRYW13 com.apple.xpc.launchd[1] (com.google.keystone.user.agent[60455]): Service setup event to handle failure and will not launch until it fires.`
These errors are not generated the entire time when this behavior is occurring, but it seems that they are written every few minutes (even when Chrome is closed).
In System Log Queries -> All Messages : There aren't any recent messages
Also, possibly related, I have experienced 2 kernel panics in the past week caused by launchd
(or processes launched by it), but I will limit this question to solely the CPU issue for now.
What is causing this and how do I fix this?