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

CalendarAgent eats my CPU

The CalendarAgent eats my CPU - went to see a Genius - he had no solutions.


Any one?

MacBook Pro, OS X Mountain Lion

Posted on Aug 6, 2012 8:25 AM

Reply
29 replies

Jan 13, 2017 5:30 AM in response to Em-Ro

The thing that did it for me was disable a calDAV account that was recently disabled, as per cwight's reply:

Open Calendar

Go to preferences

Select the accounts tab


there, make sure all accounts listed are still active/working, and disable those that aren't in operation anymore. This fixed the cpu hog on Sierra

Jan 23, 2017 5:41 PM in response to Em-Ro

Seeing this in machines upgraded to Sierra. The problem seems to be associated with the sleep/wake process wreaking havoc with sync (with Google calendar in particular).


The solution that worked for me is the following (Please make sure you have a GOOD BACKUP before trying this.)


1. System Preferences -> Internet Accounts

2. Uncheck Calendars on all accounts

3. Quit Calendar

4. Go to ~/Library/Calendars

5. Delete all of the *.caldav folders (e.g. D82A4F78-DED8-40D7-2D3A-E69A74E87198.caldav)

6. Delete Calendar Cache, Calendar Cache-shm, Calendar Cache-wal

7. Delete files under remaining dirs (Inbox, Attachments,Pending... etc.). LEAVE the dirs themselves.

8. Reboot (I would normally not say this is needed but I think the sync daemons don't like this and need a restart).

9. Open Calendar

10. System Preferences -> Internet Accounts

11. Check Calendars on appropriate accounts

12. Give it a few minutes to sync.

Aug 7, 2012 1:38 PM in response to Frank-mac

Same problem here! After some days, it appears from nowhere. Impossible to work with my iMac. Remember me the time with Windows. Also deleting accounts doesn´t solve the problem. "Steve, please come back and show your staff how to create Apple products!" Impossible to believe, that Mountain Lion was tested prior release. Expect to get this fixed - I need to work with my iMac!!!

Aug 11, 2012 10:58 AM in response to Em-Ro

I was able to get this to stop. Go to:


  • System Preferences
  • Notifications


Click the "Calendar" entry on the left. Un-Check everything on the right. The entry moves to the bottom (or below the line). After that, my CPU went straight down to a normal percentage, system temp dropped, etc.


This is a *bug*. Let's hope a fix comes out so we can enable notifications again!


Hope this helps.


-Steve

Aug 30, 2012 4:13 PM in response to Em-Ro

I have been fighting the CalendarAgent file ever since upgrading to ML in July. My battery life on a 2011 MacBook Pro 15" is down to 1.5 hours and it gets very hote...!

I have just written to Apple Tech in Peterborough, Canada as follows:

Thomas:

I must record my entire dissatisfaction with this process. I have spent numerous hours with you on the phone and my Mac 15" continues to run hot and battery life down to about 2 hours max.

This has all happened because of the Mountain Lion upgrade as I did not have any of this before.

Now everyone wants to blame other software on my machine. That is completely irrelevant. I have not loaded any add or unusal software, just Office for Mac and Adobe Creative.

Please look at the comments from numerous Apple owners all over the internet and who have a similar problem: Go to http://goo.gl/DFDCd.

I would like to arrange for my machine to go in and be serviced to solve this once and for all.

Please advise.

Thank you,


If I do not get this resolved satisfactorily and soon, I will revert to Windows 7 and tell the world about it.

Richard Williams

Sep 3, 2012 8:02 PM in response to Em-Ro

I may have tracked this down to subcriptions. Verify that all of your subcriptions in Calendar are still valid. I had one that was still trying to find me.com.


Now, before I found this solution I created a CRON job that killed CalendarAgent and iCalExternalSync every minute. This made life so much better; Time Machine actually finish backing up 256MB in just a few minutes not a few hours and my whole system became responsive again.


As always, your milage may vary, but this worked for me. I had to replace my US Holidays subscription and make sure it was pointing to iCloud. Once that was done life was very good again.


RonMan

Sep 3, 2012 8:16 PM in response to RonMan

More info and this DOES NOT totally fix the problem, but is does help with some things. The problem is fixed until a local icallocaldeamon is spawned and goes away in flash. As soon as that happens Ical External Sync goes hog wild for a bit and then settles down. CalendarAgent peaks but goes back to normal.


The only remaining problems are that iCalExternalSync is using +420MB of memory and growing and CalendarAgent is at +260MB and growing. CPU usage is minimal after spike cause by the local sync kicking in.


I will report with anything additional I can find.


RonMan

Sep 4, 2012 12:37 AM in response to Em-Ro

I have now solved my CPU problem. It is a bit brutal but after reading this post:


https://discussions.apple.com/thread/1529476?answerId=7391085022#7391085022


I have deleted all th plist and preferences as my iCal itself even frooze. Now CPU normal etc and have to reset my calendar settings and that went ok.


I hope this help some of you who were as frustrated as I was!


Frank

Sep 6, 2012 1:00 AM in response to Em-Ro

I found that my .ICS file are bad i.e. too large. Try to export Calendars and then delete your calendars - Import file (s) to a Google Calendar - then Export the file - you will see that the file will be a lot smaller when exported.


This solved my CalendarAgent problem - it is now stable around 70mb.

Jan 8, 2013 2:31 PM in response to Frank-mac

All my calendars were Google calendars, added originally as delegates, and then apparently duplicated under the accounts system in Mtn. Lions System Prefs.


I removed my entire user/Calendars folder, reconnected my Google account, and let it update all of the calendars. Now everything seems quiet -- no CPU hogging and no disk thrashing (which was even more of a problem than the CPU use)

CalendarAgent eats my CPU

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