Why are the accountsd
and securityd
processes using so much CPU on OS X 10.10.3?
I am on a Early 2011 Macbook Pro.
What are these processes for? Is it safe to kill them? The machine has only been up 4 hours so has been rebooted recently.
In Mail.app's application's preferences, I deselected "Accounts > Advanced > Automatically Detect and Maintain Account Settings" on two Google accounts, and CPU usage returned to normal.
[email protected]
) and one is normal ([email protected]
). I also see accountsd crashing on a desktop machine...
Mail Preference > Accounts > [ Your mail ] > Server settings > Automaticlly manage connection settings
, seems like works.
Commented
Feb 22, 2020 at 12:07
This issue appeared with macOS Catalina for me, and only if I have the Mail app open without an internet connection.
Going to Mail->Window->Connection Doctor->ShowDetail, it looks like there's an infinite loop running, which tries to connect to the mail server.
The only temporal solutions are to either disable the account which is causing trouble (via Mail Preferences) or to quit the Mail app when I'm offline.
EDIT (about one year after original post): The issue has disappeared for me, without me changing anything on my system.
Apparently either Apple or the email provider have fixed the issue.
After the reboot - check for build versions and that no OS updates are available. You don't need to delete any accounts or keychains or internal database files if you can patch your Mac with the Apple fixes.
The same problem still exists in 10.15.5. Some people have data in iCloud that triggers accountsd
to loop. I followed the instruction from: https://waal70blog.wordpress.com/2019/12/16/accountsd-and-secd-high-cpu-usage-on-catalina/
You will see a folder that looks like a keychain under ~/Library/Keychains/
and you need to replace the xx...x part with that keychain.
Solution: sudo rm -rf ~/Library/Keychains/xxx-xxx-xxxx-xxxxx
and reboot.
Another set of triage steps is published at this site that lists many details from the perspective of people that administer Macs professionally.
It sounds like that there is a bug in the file indexing of iOS. Sometimes, accountsd
gets stuck in an indefinite loop while indexing the files in the computer (for Spotlight use). The way to solve it is to reset the indexing on your laptop:
This will erase your previous index file and should solve your problem with the high usage of accountsd
. However, Spotlight won't work any more. If you don't need it, don't bother to follow the rest of the instructions.
But if you need Spotlight back, remove Macintosh HD from the list by selecting it and clicking the -
button. Do this over the night or sometime that you don't need your laptop for few hours as it is going to reindex your files and takes a lot of computer resources.
What worked for me (macOS 10.15.7) is signing out of Apple ID and restarting. Logging into Apple ID brought the issue back so from reddit the following terminal command permanently fixed the issue
sudo -v
killall -9 accountsd.iCloudHelper
defaults delete MobileMeAccounts
mkdir ~/Library/Accounts/Backup
mv ~/Library/Accounts/.sqlite ~/Library/Accounts/Backup/
killall -9 accountsd.iCloudHelper
sudo reboot
My symptoms were accountsd at 300%, no apps open, slow spotlight.
You can also check in Console application to see if accountsd has recorded any errors. Just open Console and enter "accountsd" . This is taken from an answer on a different thread, and probably the best place to start.
I tried the answers posted in this thread but none worked. At the time of my post they included:
I had similar issue with accountsd using 44 % CPU. The following steps solved the issue.
In Calendar.app > Preferences > Accounts... I disabled and enabled the account that Mail and Calendar kept trying to access.
I had a Gmail account that was closed still signed into my Mac's system preferences.
Once I removed the account, accountsd went from 83% CPU to 0.01 after 30 seconds, my CPU temp went down from 183F to 106F, and my fans stopped running at high speed.
I agree with most in regards to a Gmail account being the common denominator.
Could you please try to log out of all you iCloud Services, reboot and login again.
I have the same issue, which occurs randomly. I'm suspecting iCloud or my Mail accounts in System Preferences. From time to time systems preference pane is asking me to enter my google passwords, which I decline to do.
accountsd
amounting to a CPU usage of up to 500%. Signing out of my Apple ID (which I think is the same this answer suggests) resolved this issue for me. Also, after signing in again, the problem did not return.
Commented
Sep 28, 2020 at 8:46
I run into the same problem yesterday on Catalina 10.15.6 and after having tried many different things, I could finally solve the problem by resetting the NVRAM (Non-Volatile Random Access Memory) with the command
alt+cmd+p+r
upon starting (I also posted a question for that issue there: process in /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd taking almost all ressources of computer)
Note: I previously tried the following (as indicated in this post) but it didn't work:
I deleted all the account in `system preferences > Internet accounts' (didn't work)
I rebooted 2x the machine in safe mode by holding shift (didn't work)
I had the same issue on macOS Catalina 10.15.7. I tried many solutions mentioned here but none of them solved the issue.
In my case OnyX app helped. I went to Maintenance and run with the following options (probably not all of those are needed). OnyX is available at https://www.titanium-software.fr/en/onyx.html
Per someone else's suggestion on a similar thread, I deselected the Mail > Preferences > Accounts > Advanced > Automatically Detect and Maintain Account Settings and the CPU dropped back to normal range. I have 3 google, 1 yahoo, and iCloud accounts. Hopefully this fix will stick. I had run Disk Util multiple times for same issue, and there seem to be continual permissions errors popping up, so not sure if another underlying process or this was it. Good luck!
I got accountsd to quiet down by exiting and restarting the Mail app. It went from around 60% CPU to 0% CPU. No reboot was required.
I'm not sure what triggered its bad behavior, but I was looking at my accounts and provisioning profiles in Xcode for a very long time.
In the Mail app, go to Window > Activity and try to cancel everything it is doing. That solved it for me
Unchecking Calendars and Messages in my Google account solved it for me. It is no loss to me, regardless, as I only use Google for some mail at the moment (which I left selected). As to why this was an issue with Google, and why it only became an problem recently, I am at a loss.
I met this problem when I just updated to 10.13.6, too. And I happily find this problem disappear after I restart my MacBook Pro (Retina, 13-inch, Early 2015).
I solved increasing the space on iCloud.
I tried all solutions. None worked. In the end, I had to remove all Google Accounts from Catalina and use in the web browser instead.
accountsd
memory and CPU usage is pegged at capacity. Disabling Spotlight on entire disk did not help. Later, I disabled everything in Internet Accounts (incl. Apple ID, and I deleted iCloud keychain (to be re-synced later)). This did not work yet, but upon rebooting, everything is tentatively normal. I re-logged in to iCloud and synced passwords w/o problem.