Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Since I upgraded to Mountain Lion from Lion I see the CalendarAgent process occupying a large amount of 1 CPU on my late-2008 MacBook Pro. To fix this (as suggested by a Google result) I tried removing all online calendar accounts then re-adding them. This seemed to work for a while, but now the problem has returned (perhaps due to me either deleting some iCloud calendars or adding an additional Google calendar delegate). I don't really want to have to remove all my calendar accounts each time I add or remove a single calendar, so can anyone point me to the root cause of the problem?

In case it's useful, the call graph from the process is pasted here.

UPDATE: I removed one of the delegates from one of my Google calendar accounts, and that prevented this problem occurring. This isn't really a solution though, as I now can't access that calendar.

share|improve this question
    
Are any of these calendars Microsoft Exchange calendars you have access to through Exchange webmail? If so, login to the Exchange account and dismiss any reminders. If you don't have access to the Exchange calendars, ask the owners to dismiss any reminders. –  IconDaemon Dec 5 '12 at 19:12
    
You might want to read through this post for another solution: robert.accettura.com/blog/2012/08/19/… –  IconDaemon Dec 5 '12 at 19:26
add comment

2 Answers 2

up vote 3 down vote accepted

I am still looking for a solid answer.

In the meantime, I have the following script running in AppleScript Editor. This script looks for the CalendarAgent every 15 seconds and kills the process.

This renders calendar syncing unusable, but at least I can use my Mac again. I will let this run until I find a permanent solution.

The script is:

repeat
  set app_name to "Finder"
  do shell script "killall -9 CalendarAgent"
  delay 15
end repeat
share|improve this answer
    
Never really got to the bottom of this, though this was a solution to the symptoms, hence accepting. –  Nick Hawes Apr 22 '13 at 9:42
add comment

May have to kill and rebuild Calendar db:

  1. Disable the Calendar service from your account in System Preferences → Internet Accounts

  2. Remove the preferences/database files for Calendar:

    rm -r ~/Library/Calendars/ ~/Library/Preferences/com.apple.iCal.plist
    
  3. Re-enable the service.

Source: http://robert.accettura.com/blog/2012/08/19/how-to-stop-calendaragent-from-eating-cpu/

share|improve this answer
1  
Welcome to the site. We encourage people to summarize links but it's OK to just contribute links knowing that they sometimes get converted to comments or voted down as we try to get people to contribute to the body of knowledge here that's under a CC license. –  bmike Dec 31 '13 at 15:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.