You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

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

Reply
82 replies

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.

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

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.

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

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.

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

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

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

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

Dec 23, 2013 3:00 AM in response to msl422004

What worked for me was opening Calendar, clicking on Calendars in the top left, unchecking all my Calendars in the list, restarting my MacBook Pro, and then opening Calendar again, clicking on Calendars in the top left, and rechecking those Calendars I wanted open (in this case only my Google Calendar). This may only be a temporary fix - I only did it 2 days ago but it solved the problem immediately.

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

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