CalendarAgent running at near 100% CPU, continuously
I recently upgraded to a new Mac Pro and my CalendarAgent daemon is running at close to 100% CPU all the time.
I found various threads suggesting disabling/enabling calendars or logging out of, and back into, my calendar accounts. Any/all of those fixes seem to work temporarily, but within a few hour or after a restart, CalendarAgent is back to running non-stop.
I did a spindump and it appears to be spending almost all of its time in:
[_NSXPCStoreUtilities newSecureArchivedDataWithRootObject:]
[_NSXPCStoreUtilities decodeSecureArchivedData:usingDelegate:classes:]
[NSXPCStoreServer(InternalMethods) handleFaultRequest:inContext:error:]
which leads me to believe that the agent is repeatedly trying to read/store something in its database, failing, and simply doing it again ... and again, and again, and again.
I also used to remember a setting where the calendar would only keep appointments for a limited amount of time (say, a year) before deleting them. That seems to have gone the way of the Dodo because I now have close to a decade of old appointments.
Any suggestions on how to fix this?