How To Stop CalendarAgent From Eating CPU

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[379] Unexpected EOF, returning last token as fallback

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:

  1. 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.
  2. Delete ~/Library/Calendars/
  3. Delete ~/Library/Preferences/com.apple.iCal.plist
  4. Go back into the “Mail, Contacts & Calendars” pref panel, put the calendar back. Give it some time to download.

That seems to have worked for me.

8 thoughts on “How To Stop CalendarAgent From Eating CPU

  1. Robert, you are AWESOME!! I have been troubleshooting for over a week – this issue has been driving me crazy. I tried everything and nothing worked until this fix. Now everything is back working perfectly, fast and smooth with no rainbow balls or s-l-o-w applications. CalendarAgent went from being a big fat slob hogging about 8 GB of virtual memory to a dainty reserved southern bell sipping tea. Thank you so much, Robert!

  2. Could you help me with this in Mountain lion ? I have calendars in exchange, icloud and google calendar

  3. This not only worked, but iCal and Reminders now open about 10 times faster than they did previously.

    Thank you!

  4. Robert, it sounds like you’ve solved the problem I’m having. Only one issue on my end: neither of those files exist on my computer. Are they hidden by default?

    Is there some reason I wouldn’t have those? I’ve got some calendars syncing through iCloud (the problematic ones, I suspect) and others that sync from GMail through Busycal.

Leave a Reply

Your email address will not be published. Required fields are marked *

Connect with Facebook

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>