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 4 of 6 last Next
  • by Ola_M,

    Ola_M Ola_M Jan 23, 2013 11:33 AM in response to Bittsel
    Level 1 (0 points)
    Jan 23, 2013 11:33 AM in response to Bittsel

     

    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

     

    In my case it appears from the date stamps that all (most of) these events were created on20120824, which was around the time I upgraded to ML.

     

    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.

     

    I checked again, and found two of the same dummies generated since my fix (about one month ago). So the problem is persistent although not dramatic. Regards

  • by Patricia W,

    Patricia W Patricia W Jan 26, 2013 1:28 PM in response to msl422004
    Level 3 (693 points)
    Apple Watch
    Jan 26, 2013 1:28 PM in response to msl422004

    My iMac has been incredibly slow recently ... since around the time I uploaded my Calendars and Contacts to iCould which I did because WiFi sync wasn't working reliably.

     

    I force quit calendaragent and performance improved immediately. I have another calendaragent process now but it is not chewing up cpu or memory. I checked the system diagnostics report in Console and there is a huge file (451KB) starting about 3 hours ago.

     

    I don't use Exchange or Google anything ...

  • by Iougz,

    Iougz Iougz Jan 30, 2013 2:58 AM in response to msl422004
    Level 1 (0 points)
    Jan 30, 2013 2:58 AM in response to msl422004

    I'm having the same issue: CalendarAgent eating tons of CPU and memory, slowing the system and shrinking battery life.

     

    This may be related to an interaction I made with Google: I tried to delete a recurring event on iCal. I had a pop-up explaining that the server doesn't allow this operation. So I deleted it manually on Google.

    Since that, I have these problems and a log file named "CalendarAgent-xxx-cpu_resource.spin", for each day. I guess this is a trace that the system has killed the process due to excessive CPU consumption.

    No solution yet...

     

    Hope this helps... and that Apple wil quickly fix that problem !

  • by Patricia W,

    Patricia W Patricia W Jan 31, 2013 1:08 PM in response to Iougz
    Level 3 (693 points)
    Apple Watch
    Jan 31, 2013 1:08 PM in response to Iougz

    I've noticed that if I launch Calendar or Contacts that the CPU and real and virtual memory start to grow. If I force quit CalendarAgent as expected they stop growning (as would be expected.)

    I've taken to keeping the Activity Monitor window open so I can kill it if it starts to grow again.

  • by trebus,

    trebus trebus Feb 2, 2013 5:09 PM in response to msl422004
    Level 1 (0 points)
    Feb 2, 2013 5:09 PM in response to msl422004

    after having multiple kernel crashes(1.) and searching for the course , I found this topic. and yes , my activity monitor gave me the same results as all the the other users in this topic. After reading many of the stories i started working on this issue.

     

    I already purchased busy call, years ago, because I wasn't happy how the formal i-cal, now calendar was handling my appointments. yes my calendar is also because of this reason for a long time parked at the Google domain.

    The good thing now in 2013 is that busy-cal does not need the calendar at all.

    today I ended up in quitting all calendars from formal mobile me , and deleted all accounts and connections. of course i did it step by step so if you are sure you have a back-up of your calendar and contacts, you can skip all of the manual steps and just kill all the links to mobile me , my mac and so ever. Busy call will work without them and as long as your information is seen inside your Google account your fine.

    So if your safe, start your calendar, go to prefs and check the accounts info tab, just delete the all....

    if you want to do it by hand, do it from the website icloud, otherwise , your calendars will come back every time.

     

    Do the same with your contacts. move them to your Google account.

    and yes problem solved, my activity center is normal now. I don't no yet if my kernel panic crashes are gone but  will let you know in a few days.

    good luck

     

    Alex Trebus

     

    (1.  i'm wondering why I kept sending reports to apple including my personal contact information, still nobody at apple contacted me, because i had a problem. But I think, You don't need to, if your one of the biggest company's of the world )

     


  • by trebus,

    trebus trebus Feb 2, 2013 5:10 PM in response to msl422004
    Level 1 (0 points)
    Feb 2, 2013 5:10 PM in response to msl422004

    after having multiple kernel crashes(1.) and searching for the course , I found this topic. and yes , my activity monitor gave me the same results as all the the other users in this topic. After reading many of the stories i started working on this issue.

     

    I already purchased busy call, years ago, because I wasn't happy how the formal i-cal, now calendar was handling my appointments. yes my calendar is also because of this reason for a long time parked at the Google domain.

    The good thing now in 2013 is that busy-cal does not need the calendar at all.

    today I ended up in quitting all calendars from formal mobile me , and deleted all accounts and connections. of course i did it step by step so if you are sure you have a back-up of your calendar and contacts, you can skip all of the manual steps and just kill all the links to mobile me , my mac and so ever. Busy call will work without them and as long as your information is seen inside your Google account your fine.

    So if your safe, start your calendar, go to prefs and check the accounts info tab, just delete the all....

    if you want to do it by hand, do it from the website icloud, otherwise , your calendars will come back every time.

     

    Do the same with your contacts. move them to your Google account.

    and yes problem solved, my activity center is normal now. I don't no yet if my kernel panic crashes are gone but  will let you know in a few days.

    good luck

     

    Alex Trebus

     

    (1.  i'm wondering why I kept sending reports to apple including my personal contact information, still nobody at apple contacted me, because i had a problem. But I think, You don't need to, if your one of the biggest company's of the world )

  • by ayiti2015,

    ayiti2015 ayiti2015 Feb 3, 2013 4:13 AM in response to Patricia W
    Level 1 (0 points)
    Feb 3, 2013 4:13 AM in response to Patricia W

    I have the same problem, after having upgraded to ML straight from OS 10.6.8. I see "CalendarAgent," and although it isn't taking up nearly as much resources, it still refuses to force quit from the activity monitor and persists even after following the steps others have outlined above. (See below for machine details.) After googling way too long and wasted too much time, I have seen reports about a similar mystery process called "com.apple.dock.extra". It too refuses to quit and takes way too much memory and resources, IMHO, compared to processes in OS 10.6.8...

     

    Possible to kill and remove this process?

     

     

      Model Name:          MacBook

      Model Identifier:          MacBook6,1

      Processor Name:          Intel Core 2 Duo

      Processor Speed:          2.26 GHz

      Number of Processors:          1

      Total Number of Cores:          2

      L2 Cache:          3 MB

      Memory:          4 GB

      Bus Speed:          1.07 GHz

      Boot ROM Version:          MB61.00C8.B00

      SMC Version (system):          1.51f53

      Serial Number (system):          W8******8PW

      Hardware UUID:          3D497724-5A11-59CB-99DE-C6E473EBC2D3

      Sudden Motion Sensor:

      State:          Enabled

     

    <Edited By Host>

  • by AndyOrmsby,

    AndyOrmsby AndyOrmsby Feb 3, 2013 4:16 AM in response to ayiti2015
    Level 1 (0 points)
    Feb 3, 2013 4:16 AM in response to ayiti2015

    ayiti2015: Why do you think you need to quit CalendarAgent? And what makes you think com.apple.doc.extra is using too many resources?  What resources do you think it should be using?

  • by AndyOrmsby,

    AndyOrmsby AndyOrmsby Feb 3, 2013 4:20 AM in response to trebus
    Level 1 (0 points)
    Feb 3, 2013 4:20 AM in response to trebus

    trebus: kernel crashes caused by an application are very rare. I'd be surprised if the Calendar caused one. What makes you think it did? What evidence from ActivityMonitor makes you think so? Could you explain?

     

    The only kernel crashes I've seen were with third party software that patched the kernel. In my case, the problem was some third party VPN software I am fortunately no longer required to use.

  • by trebus,

    trebus trebus Feb 3, 2013 6:44 AM in response to AndyOrmsby
    Level 1 (0 points)
    Feb 3, 2013 6:44 AM in response to AndyOrmsby

    Your right, and as I wrote, I should come back on this after a few days, but this morning I had a new kernal panic crash.

    This was after a system wake up from sleeping.

    2 days ago it happend during modification in a graphics file ( app  used is pixelmator, puchased in apple store ) almost every modification in this file ( phonebackground file edit , so not a big file ) gave me a crash.

     

    Many crashed i had in the past, happend when I switch the camera in skype.

    I send the crash repport to apple. some day 3x a day.

    the last weeks i can use skype again with the camera without the crashes

     

    But the problem in activity center is solved.

  • by joshuagriffin,

    joshuagriffin joshuagriffin Apr 5, 2013 9:14 AM in response to trebus
    Level 1 (0 points)
    Apr 5, 2013 9:14 AM in response to trebus

    I use activity Mointor and kill Calendar Agent 5x a day, massive memory and CPU usage. SUPER frustrating.

     

    JG

  • by ianvrensburg,

    ianvrensburg ianvrensburg Apr 16, 2013 1:55 AM in response to joshuagriffin
    Level 1 (1 points)
    Apr 16, 2013 1:55 AM in response to joshuagriffin

    Same problem here. I now only open iCal when I need to make new entries and book other resources on our GAL. I may have to use Outlook if this problem persists which I would try and avoid.

     

    Any other Calendar suggestions that I could use connecting to Exchange server?

  • by 92ptam,

    92ptam 92ptam Apr 24, 2013 3:39 PM in response to msl422004
    Level 1 (0 points)
    Apr 24, 2013 3:39 PM in response to msl422004

    This is killing my MBP too - I'm synced with a couple of Google calendars. How can ical possibly need that much compute power to achieve so little?

  • by lokioki,

    lokioki lokioki May 1, 2013 1:02 AM in response to msl422004
    Level 1 (0 points)
    May 1, 2013 1:02 AM in response to msl422004

    this seems to have solved my problem:

     

    http://productforums.google.com/forum/#!topic/calendar/7XZkRZzo10I

     

    calendaragent no longer hogging CPU and console no longer full of error messages ..

    (knock on wood)

     

    hope this will help someone else.

  • by robfromoxford,

    robfromoxford robfromoxford May 17, 2013 9:37 AM in response to Ola_M
    Level 1 (0 points)
    May 17, 2013 9:37 AM in response to Ola_M

    I have the same problem with CalendarAgent eating my memory. 2.8 gig when I last quit it. Why hasn't Apple had the grace to enter this discussion and offer a solution.

    They are not the same company as they used to be when I first started using Macs 20 yrs ago. Back then they took an interest in their customers. Now they just gloat over the bilions in their cash pile, clutching their sides as we whinge away, in wonder at the huge profit magins we allow them. £1000 for a laptop. In 2013? Purlease!  I'm really getting to hate Apple. Arrogant ********.

first Previous Page 4 of 6 last Next