Why are the
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.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
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.
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 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.
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
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!