Currently Being ModeratedOct 21, 2012 5:12 PM (in response to Ola_M)
The Ola_M solution worked for me - thanks.
Currently Being ModeratedOct 24, 2012 4:13 AM (in response to Ola_M)
Thanks! I tried Ola_M's procedure "How To Stop CalendarAgent From Eating CPU", and it worked very well. Now things calmed down.
I was having the same extreme use of cpu by CalendarAgent, and I don't have ANY calendars except iCal, so it's got nothing to do with Google (in my case).
But I do have calendars WAY BACK. I didn't quite understand, how do I get rid of those old calendars?
Currently Being ModeratedOct 24, 2012 4:32 AM (in response to joethepianoplayer)
Just click the "Calendars" button in the upper lelft corner in iCal, and control-click the one you want to get rid of, then chose delete. Regards
Currently Being ModeratedJan 1, 2013 10:40 AM (in response to msl422004)
I've had memory leaks caused by Calendar Agent. Tried the fix above, pasted below for convenience. Calendar is using 188MB of memory and Calendar Agent 198MB. 0% CPU for both. Memory use is down 50-150 MB from before teh fix, but it still seems like a lot. I have notifications turned off, but I still get them.
How To Stop CalendarAgent From Eating CPU
Posted on 8/19/2012
Recently ran into an issue with Calendar causing a huge CPU spike. Checking the system.log I noticed the following repeatedly in my log:
CalendarAgent is essentially Calendar’s backend (that’s how it’s also able to power the notification center). The best resolution I’ve found is to completely clear out the calendar and recreate it. Process I used was as follows:
- Remove the Calendar from “Mail, Contacts & Calendars” pref panel (just uncheck from the account). Then go into Calendar and make sure the account is removed. If it’s not, remove it.
- Delete ~/Library/Calendars/
- Delete ~/Library/Preferences/com.apple.iCal.plist
- Go back into the “Mail, Contacts & Calendars” pref panel, put the calendar back. Give it some time to download.
Currently Being ModeratedJan 4, 2013 7:55 AM (in response to shaboominc)
Well, thanks for the advice. It worked – until I used iCal again, and the problem returned. I can't understand why, and I can't understand why Apple isn't doing something about it. There must be a lot of us on the planet that have this problem
This discussion started a loooong time ago!
Currently Being ModeratedJan 6, 2013 4:43 PM (in response to joethepianoplayer)
I tried this too, but the problem returned immediately upon starting iCal and adding my Exchange (Office 365) account. Perhaps a new RECORD for REAL memory consumption - 5.88 GB on my 8 GB MBP.
263 CalendarAgent marvinrichardson 43.0 7 5.88 GB Intel (64 bit) 25:05.06
Currently Being ModeratedJan 6, 2013 6:08 PM (in response to Marv Richardson)
UPDATE: My iCal had automatically (re)set up an iCloud subscription to Birthdays (I'm sure I had set this up previously using this approach (http://support.apple.com/kb/PH2676)).
I unchecked the Birthday subscription from iCal's left pane (Calendars). I killed the CalendarAgent process using Activity Monitor. It restarts automatically. After an hour, it had grown to only 391MB and used only 1 minute of CPU.
1330 CalendarAgent marvinrichardson 0.0 5 391.8 MB Intel (64 bit) 1:09.76
I have a 4 core system, so if I understand the way CPU time is reported, this is only 1/240th of that hour's capacity (240 CPU-Minutes = 4 cores x 60 minutes).
Still seems crazy to use that much real memory. By comparison that's more than Firefox and Mail combined are using currently with similar light activity and short run times. But, I'm fortunate to have lots of capacity ...
Currently Being ModeratedJan 21, 2013 9:39 AM (in response to msl422004)
I just deleted my calendar cache, and the Calendar Agent has been quiet - I'm hopeful, but not convinced. Has anyone figured out the fix? I am no longer using iCal and have unchecked all of my calendars, turned off calendar in my iPhone - basically, having to go with Outlook as my only calendar, which I hate.
Currently Being ModeratedJan 21, 2013 10:57 AM (in response to Bittsel)
Well throwing out iCal isn't really the fix that we wanted, is it? I tried the fixes and everything calmed down ... for a while (actually a few days!). BUT now we are back!
But one good thing: I was contacted by Apple, who asked me to upload some data to them, and they would get someone to look at it . So hopefully in the future there will be a solution to the problem ... I hope!
In the meantime I will continue to "strangle" CalendarAgent via Activity Monitor. It's a drag, but hopefully it's worth waiting for.
Currently Being ModeratedJan 21, 2013 11:13 AM (in response to joethepianoplayer)
I will stay vigilant as well and hope for a patch soon. This is a real pain in so many ways...
Currently Being ModeratedJan 22, 2013 2:08 PM (in response to Bittsel)
It's back with a vengence - so much for deleting calendar cache, etc. (above). It went to 95% CPU and 1.7Gb in matter of an hour - fan is on, MBA is hot, battery life 2 hours. I kill it with Activity Monitor and it comes back within an hour.
What can I do to help get Apple OSX support attention?
Currently Being ModeratedJan 23, 2013 1:06 AM (in response to Bittsel)
It is strange that Apple ignores this serious problem for many. I can only again recommend what solved it for me; - copy all entries you need into a new calendar and delete the old one. At one point I got a new couple of "dummy" entries in a minor calendar I had not done this with, which were easy to delete. In the new calendar no dummy entries have appeared after several omnts of use and syncing across devices. Regards
Currently Being ModeratedJan 23, 2013 1:34 AM (in response to Ola_M)
I'm sure Apple isn't ignoring the problem. Many months ago, I was contacted and asked to supply some diagnostic data after reporting this issue, so it seems it has been looked at.
For me, the problem went away. I don't really know why I'm afraid. It might have been an OSX update or it could have been my removal of some older calendar entries and cleaning up. All I can say is thst I've not seen the problem for months and CalendarAgent on my old MBP is currently 31MB according to ActivityMonitor - and that's after running for 20 days.
Currently Being ModeratedJan 23, 2013 8:22 AM (in response to Ola_M)
Ola M - please share with me how you deleted the calendar so I follow you precisely. I deleted the calendar cache, and that cleaned out all the calendars, but maybe I should try your approach. I'm running Mtn Lion btw.
Currently Being ModeratedJan 23, 2013 9:25 AM (in response to msl422004)
There is no solution to this. I've been playing around with this in every way imaginable and it always comes back. Others have found their own work around or a temporary solution, but nothing permanent. Until Apple comes out with a permanent fix, everything you're reading are just workarounds.
That said, here's my personal workaround:
- I have two calendars, one Google (which does have delegates) and one is my work email via Exchange.
- I have turned off the notifications and unchecked any delegates for the Google calendar and Exchange Calendar.
- Issue still occurred.
- I deleted both calendars and cleared the cache
- Issue goes away, obviously.
- I experimented with only adding one calendar, and when I just add my Google calendar (and remove items listed in #2), issue still occurs. However when I just add my work calendar (and remove items listed in #2), I don't get an out of control CalendarAgent.
No software, or coding, or scripts needed. ***** I can't have my Google calendar on my Mac, but I sync it with my work calendar so I didn't really need it anyway.
Now I'm just worried about all the damage the heat and high processing has done to my battery and processor.