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

first Previous Page 5 of 6 last Next
  • by skassis,

    skassis skassis Jul 12, 2013 6:49 PM in response to msl422004
    Level 1 (0 points)
    Jul 12, 2013 6:49 PM in response to msl422004

    CalendarAgent was consistently hitting about 85% System usage without me running the Calendar app, just like everyone is complaining about. Apple's thread (this one) was listed FIRST in a Google search.

    the second hit was the following link, but read this first. those instructions worked for me with one modification.

     

    rather than deleting all your calendars (step 2) AND prefs (step 3), i just deleted my prefs only (step 3).

     

    then go back to the Activity Monitor app and Filter (search box, upper right) for "cal", to keep an eye on it.

     

    then i launched my Calendar app, put in a few Google passwords, and Activity Monitor is showing about 3% usage

     

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

     

    thanks Robert, good solution !

     

     

    from SKASSIS,

     

    http://SKASSISphotoRestore.com

    http://SkylandCalligraphy.com

  • by bonzabuy,

    bonzabuy bonzabuy Jul 15, 2013 12:53 AM in response to msl422004
    Level 1 (0 points)
    Jul 15, 2013 12:53 AM in response to msl422004

    I spent over an hour on the phone with Apple support. They tried a number of things - from disk permissions, disk repair, start up items, login items, new user account.

     

    The thing that seemed to do the trick instantly:

     

    Delete the Calendar cache.

     

    A rough procedure:

    Open iCal

    Full back up all calendars (full archive I think it's called)

    Close iCal.

     

     

    Go to Finder

    'Go" menu

    Hold down option key

    Go to Library

    In Library go to Calendar.

    Delete Calendar Cache.

     

    Restart machine.

    Start iCal.

     

    If all is well & all reminders / appointments restored then you can delete the backup.

     

    Hope this helps some others - it worked for me.

  • by NightFlight,

    NightFlight NightFlight Jul 27, 2013 9:21 PM in response to msl422004
    Level 1 (25 points)
    Jul 27, 2013 9:21 PM in response to msl422004

    Noticed the same issue just now on my MBP 13" Retina 10.8.4. The CalendarAgent running hot. As expected it would impact battery life.

     

    I found the issue would come and go as jumped on and off my VPN. Removed my exchange calendar services to no effect. Removed my iCloud services... CanlendarAgent behaves.

     

    Conclusion: My VPN network has iCould sites firewalled/partially firewalled. CalendarAgent does not handle poor/partial connectivity well. I'm not submitting a bug, because I don't actually care for iCloud myself, I don't currently use it. That and I find their policy against publicly bug tracking counter productive and even somewhat offensive to the computing community at large.

     

    Everyone else who cares should verify and bug report here: http://www.apple.com/feedback/icloud.html

  • by HighwaymanEd,

    HighwaymanEd HighwaymanEd Sep 22, 2013 3:42 AM in response to NightFlight
    Level 1 (0 points)
    Sep 22, 2013 3:42 AM in response to NightFlight

    I'm also suffering from exactly the same issues. Calendar Agent consumes all of the available memory on my MBP on 10.8.4.

     

    Whilst trying to remove my calendars (MS Exchange 2010 and iCloud) the Calendar itself hangs and it then consumes any available memory.

     

    Both the Calendar and the Calendar Agent are currently running at 48% CPU and consuming 4GB of RAM each whilst trying to remove the Exchange calendar.

     

    I've tried the solutions suggested above several times, but the problem comes back within a week, and I'm back to square 1.

  • by Zalakain,

    Zalakain Zalakain Oct 30, 2013 1:54 AM in response to bonzabuy
    Level 1 (0 points)
    Oct 30, 2013 1:54 AM in response to bonzabuy

    I can confirm too that this solution worked for me (OS X Mavericks). Seems that CalendarAgent goes nuts when the Calendar Cache is wrong, and deleting and reconstruncting it helped.

     

    HTH.

  • by Arnold888,

    Arnold888 Arnold888 Oct 30, 2013 6:57 AM in response to msl422004
    Level 1 (4 points)
    Wireless
    Oct 30, 2013 6:57 AM in response to msl422004

    Maybe irrelevant, but I have some GeekTool scripts using iCalBuddy, and too low refresh rates caused my CalendarAgent to go through the roof and my fans to scream. I set refresh rates to 60s and the CPU usuage went down to zero.

  • by annainjozi,

    annainjozi annainjozi Nov 12, 2013 6:03 AM in response to msl422004
    Level 1 (0 points)
    Nov 12, 2013 6:03 AM in response to msl422004

    I'm also having this issue, especially since the latest mail update. Even with nothing running on my machine calendar agent is going wild and eating up all my memory. I have a MacBook Pro, 4G 1067 MHz DDR3. I rebooted the machine, no apps running bar Activity manager,  cancel the CalendarAgent task - it starts up again immediately and starts eating memory straight away. Looking forward to a fix from apple for this.... It's making my mac unusable

  • by MVEfilm,

    MVEfilm MVEfilm Nov 16, 2013 9:41 AM in response to annainjozi
    Level 1 (5 points)
    Nov 16, 2013 9:41 AM in response to annainjozi

    Hi there,

     

    I'm having the same problems as you do. You can unload the calendaragent using terminal to make your mac usable again. Calander app won't work without is. So this is a temporary fix.

     

    Use this line: launchctl unload -w /System/Library/LaunchAgents/com.apple.CalendarAgent.plist

     

    To load the agent again: launchctl load -w /System/Library/LaunchAgents/com.apple.CalendarAgent.plist

     

    Let's wait for apple to come up with a fix.

  • by annainjozi,

    annainjozi annainjozi Nov 18, 2013 1:42 AM in response to msl422004
    Level 1 (0 points)
    Nov 18, 2013 1:42 AM in response to msl422004

    All - I deleted an out of date @me.com account and removed all but essential items from my notifcations.  Rebotot and the problem has completely gone away.  Removing the account was the thing that really solved the problem.

  • by JoostPM,

    JoostPM JoostPM Nov 21, 2013 1:28 PM in response to MVEfilm
    Level 1 (0 points)
    Nov 21, 2013 1:28 PM in response to MVEfilm

    Hi MVEfilm,

     

    Thanks for your workaround

    I was going nuts with my (should be ) fantastic MBP10,1 16GB 2,8GHz 750 SSD

    And I will try the "GeekTool scripts using iCalBuddy" Arnald888 is putting forward

    But most essentially: Apple please repair this bug; MAC users should be laughing at PC-users, not the other way around!!

     

    Regards

    Joost

  • by krislo,

    krislo krislo Nov 22, 2013 5:21 AM in response to bonzabuy
    Level 1 (0 points)
    Nov 22, 2013 5:21 AM in response to bonzabuy

    Deleting calendar cache from library folder seems to have resolved the identical issue on my machine as well.

    (2011 MBP - 16gb RAM - Mavericks)

     

    Thanks for the tip.

     

    the kernel is still eating up almost 1gb of resources with minimal applications open but I am only using 6gb of physical memory now inistead of maxing it out. Might be fixed.


    Thanks!!


    I was contemplating doing clean installs on both hard drives this morning (4:30am) - so I don't lose work time on my most important "tool".

  • by JoostPM,

    JoostPM JoostPM Nov 28, 2013 4:19 AM in response to krislo
    Level 1 (0 points)
    Nov 28, 2013 4:19 AM in response to krislo

    All,

    Just want to share my final solution to this problem:

    With the apple helpdesk support I deleted the calendar cache and related folders

    Afer that I tried to re-establish my Google agenda: did not work, no cennection possible (I tried various options)

    In the end I just "opened" iCloud agenda and imported my google ones

    And now everything is working and I'm not a google agenda user any more ;-)

    And not unhappy by the way

    Cheers,

    Joost

  • by ljmsh,

    ljmsh ljmsh Dec 1, 2013 7:58 PM in response to msl422004
    Level 1 (0 points)
    Dec 1, 2013 7:58 PM in response to msl422004

    Hello all,

     

    I had the same problem since upgrading to Mavericks... CalenderAgent just sucked up all the CPU power and memory.

     

    This is what I did: disable all my calenders (google, iCloud, Yahoo), then re-enabled them. But this time around in Preferences I asked to Refresh Calendars every 30 minutes (instead every minute) as I did previously.

     

    That one option made ALL the difference in the world. I still have the same number of calendars in iCal, but now CalenderAgent is only 33MB of memory instead of 4GB! Give it a try and good luck!!

  • by pack3ts,

    pack3ts pack3ts Dec 15, 2013 7:51 AM in response to skassis
    Level 1 (0 points)
    Dec 15, 2013 7:51 AM in response to skassis

    I had the same porblem but mine was acting up because I used geektool to display calander information on my desktop.

  • by Arnold888,

    Arnold888 Arnold888 Dec 15, 2013 7:08 PM in response to pack3ts
    Level 1 (4 points)
    Wireless
    Dec 15, 2013 7:08 PM in response to pack3ts

    Me, too, pack3ts. But as I mentioned above, when I changed the refresh rates to 60 seconds the problem went away.

first Previous Page 5 of 6 last Next