msl422004

Q: CalendarAgent process is out of control - delegation may be causing problems?

I use GMail/GCal for email and calendar. I had my GCal synced to iCal in Snow Leopard, but stopped using it in Lion. After upgrading to Mountain Lion I decided to give it a shot again, mostly to get my appointments in the notification center. However, I noticed that a process called "CalendarAgent" was using tons of CPU and memory: over 100% and 400 mb, respectively. It was slowing my computer down and killing my battery life.

 

After some investigation, it seems like Delegation (calendars that are shared to me by other GCal users) may be part of the problem. If I remove all of the calendars from the "Delegation" tab in the Preferences for Calendar, then CalendarAgent goes down to 0-1 % CPU and 156mb memory. It still seems a little high on the memory front, but at least the CPU isn't out of control now.

 

This is obviously not an optimal solution. I need to access the shared calendars to schedule meetings with my coworkers. Has anybody run into this issue? Any ideas for fixing this? Is it a Mountain Lion bug?

MacBook Pro (15-inch Mid 2010), OS X Mountain Lion

Posted on Jul 29, 2012 10:24 AM

Close

Q: CalendarAgent process is out of control - delegation may be causing problems?

  • All replies
  • Helpful answers

Previous Page 2 of 6 last Next
  • by shornby,Helpful

    shornby shornby Aug 11, 2012 10:57 AM in response to msl422004
    Level 1 (5 points)
    Aug 11, 2012 10:57 AM in response to msl422004

    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

  • by Anthony Helm,

    Anthony Helm Anthony Helm Aug 13, 2012 5:42 AM in response to shornby
    Level 1 (5 points)
    Aug 13, 2012 5:42 AM in response to shornby

    @shornby:

     

    That did not do it for me. I still get spiking CPU on the calendar agent, even with notifications turned off. I did not have this problem until our company went to Office365, Exchange-based calendar in the cloud. So many issues for Mac users, and it would seem that M$ and Apple point fingers at each other.8/13/12 8:39:52.863 AM

     

    I see many of these in my logfile:

     

    WindowServer[603]: CGXDisableUpdate: UI updates were forcibly disabled by application "Microsoft Office Reminders" for over 1.00 seconds. Server has re-enabled them.

    And then there's this, too:
    8/13/12 7:59:29.755 AM CalendarAgent[666]: [com.apple.calendar.store.log.exchange.queue] [error = Error Domain=CalExchangeErrorDomain Code=-12 "Calendar can’t refresh the account “xxx@xxx.xxx”." UserInfo=0x7ff26ab796b0 {NSLocalizedFailureReason=The account "xxx@xxx.xxx" currently can’t be refreshed., CalFailedOperationKey=<CalExchangeSyncAccountOperation: 0x7ff25c7cc860>, NSLocalizedDescription=Calendar can’t refresh the account “xxx@xxx.xxx”.}]
    Of course, I had similar problems with iCal under 10.7, too.
  • by Noruga,

    Noruga Noruga Aug 14, 2012 2:16 AM in response to Anthony Helm
    Level 1 (35 points)
    Aug 14, 2012 2:16 AM in response to Anthony Helm

    I am having the same problem, but only when I have my Exchange calendars turned on. I have no problem with my iCloud account. I have no Google calendars.

  • by saytheenay,

    saytheenay saytheenay Aug 15, 2012 2:45 PM in response to msl422004
    Level 1 (0 points)
    Aug 15, 2012 2:45 PM in response to msl422004

    I came up with an extreme solution: disable it entirely.

     

    1 Startup in safe mode.

    2 Move/copy /System/Library/LaunchAgents/com.apple.CalendarAgent.plist to /System

    3 Delete /System/Library/LaunchAgents/com.apple.CalendarAgent.plist and reboot

     

    No more CalendarAent process.  I did the same thing for com.apple.imagent.plist (Messages) and it worked too.

     

    This didn't speed up my boot or shutdown time, but no more process hogging either.

  • by BlacksTTer,

    BlacksTTer BlacksTTer Aug 16, 2012 9:54 AM in response to msl422004
    Level 1 (0 points)
    Aug 16, 2012 9:54 AM in response to msl422004

    I have the same problem with iCal and Exchange since installing Mountain Lion.

    iCal runs like a dog, hogs CPU and is unresponsive.

    Can't add or delete accounts or Calendar events.

     

    Looks like a bug to me, Apple.

     

    When will we get an Acknowledgement/Update/Resolution?

  • by kevin_nicholson,

    kevin_nicholson kevin_nicholson Aug 17, 2012 12:50 PM in response to saytheenay
    Level 1 (0 points)
    Aug 17, 2012 12:50 PM in response to saytheenay

    I treied this and it worked for me

  • by kevin_nicholson,

    kevin_nicholson kevin_nicholson Aug 17, 2012 12:52 PM in response to kevin_nicholson
    Level 1 (0 points)
    Aug 17, 2012 12:52 PM in response to kevin_nicholson

    i mean i deleted the calendar agent as suggested by saytheenay and rebooted and its fine. i will reinstate the file when they get around to providing a fix

  • by msl422004,

    msl422004 msl422004 Aug 23, 2012 10:37 AM in response to kevin_nicholson
    Level 1 (1 points)
    Aug 23, 2012 10:37 AM in response to kevin_nicholson

    Did anybody install the 10.8.1 update and see if there's any effect on this issue? It's not in the list of bugs that were addressed, but I thought it'd be worth checking.

  • by jonahark,

    jonahark jonahark Aug 26, 2012 11:55 PM in response to msl422004
    Level 1 (0 points)
    Aug 26, 2012 11:55 PM in response to msl422004

    You might try logging in to your Exchange webmail interface and dismissing all reminders.

     

    Even though I had been dismissing reminders from my various devices, Exchange webmail presented me with hundreds of reminders from the past year or so. After dismissing all of them, iCal sync'd quickly and the CalendarAgent is behaving "normally."

  • by Ola_M,

    Ola_M Ola_M Sep 3, 2012 4:08 AM in response to msl422004
    Level 1 (0 points)
    Sep 3, 2012 4:08 AM in response to msl422004

    I have 10.8.1 but the same problem. No syndication, no Exchange, tried the unchecking notifications. Really strangles my iMac. May be connected to my severe sync problems with my iCalendars after clean install of Mountain Lion?

     

    Regards

  • by Ola_M,

    Ola_M Ola_M Sep 4, 2012 1:42 AM in response to Ola_M
    Level 1 (0 points)
    Sep 4, 2012 1:42 AM in response to Ola_M

    sorry, not "No syndication, ", but No delegation.

     

    Funny thing I also experience active applications that are not visible with alt-tab or on the dock??

  • by Ola_M,

    Ola_M Ola_M Sep 4, 2012 6:58 AM in response to Ola_M
    Level 1 (0 points)
    Sep 4, 2012 6:58 AM in response to Ola_M

    I have been trying a lot of suolutions since i got this problem, but this one solved it. My calendaragent appeared to use 100% of the CPU, with lots of threads and 3.5 Gb or memory, but after this fix it got down to about 300 Mb and 12-15%. I did delete everything about calendar in thos folders though. And restarted in between the stop and start of canendar sync.

     

    Regards

     

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

     

    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 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.

    This entry was posted in Apple and tagged calendar, os x 10.8.

  • by Ola_M,

    Ola_M Ola_M Sep 4, 2012 7:18 AM in response to Ola_M
    Level 1 (0 points)
    Sep 4, 2012 7:18 AM in response to Ola_M

    and I also deleted the iCal items in the personal Library/Caches folder

  • by Ola_M,

    Ola_M Ola_M Sep 8, 2012 7:40 AM in response to Ola_M
    Level 1 (0 points)
    Sep 8, 2012 7:40 AM in response to Ola_M

    I got this problem after clean install of ML. By accident I found I had 25 000 iCal events called "dummy", all on  Jan 1st 1970. After trying to delete them in iCal, with truckloads of spinning beach balls and dozens of Forced quits, I had a look inside the ics file, and this is how they look:

     

    BEGIN:VEVENT

    CREATED:20120824T174009Z

    UID:E67E4327-8746-4079-9D9E-31FA4DC71A16

    DTEND;TZID=Europe/Oslo:19700101T020000

    TRANSP:OPAQUE

    SUMMARY:dummy

    DTSTART;TZID=Europe/Oslo:19700101T010000

    DTSTAMP:20120824T174009Z

    SEQUENCE:1

    BEGIN:VALARM

    X-WR-ALARMUID:92778ECD-7357-42EC-9479-90A207D563E2

    UID:92778ECD-7357-42EC-9479-90A207D563E2

    TRIGGER:-PT5M

    X-APPLE-DEFAULT-ALARM:TRUE

    ATTACH;VALUE=URI:Basso

    ACTION:AUDIO

    END:VALARM

    END:VEVENT

     

    I tried to find a way to search and replace, but gave up. In the end I just copied all events from this and next year to a new calendar en deleted the old one. It shrank from 19 Mb to 585 kb. Now it syncs fine again. Regards

  • by DFTeitel,

    DFTeitel DFTeitel Oct 15, 2012 8:49 AM in response to dht101
    Level 1 (9 points)
    iWork
    Oct 15, 2012 8:49 AM in response to dht101

    I have the same problem with Exchange delegate calendars in Calendar, as does a colleague of mine - Calendar Agent actually says it's using 200% of the CPU - quite remarkable - and I get the system memory error. When its use drops down, the error goes away. I used iCal Cleaner and also checked for dummy events (none) as mentioned in another post, and didn't help. The only way I can reliably get rid of the problem is to remove the delegated calendars, which is a pain. I can go to Outlook 2010 via Parallels or Mac Outlook 2011, but that seems like a lousy answer. Anyone else have a better one, and has anyone heard from Apple?

Previous Page 2 of 6 last Next