Process in /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd taking almost all ressources (Catalina - MacOS 10.15.6)

apple.stackexchange https://apple.stackexchange.com/questions/402009

  •  29-05-2021
  •  | 
  •  

Question

I have Catalina 10.15.6

There is something running in the background at /System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd that takes 50-90% of the CPU and 1Gig of memory. I fear that it's a virus. I saw that there is a similar question there, but there was no feedback. I tried to remove it with

I run malwarebyte: it told me that there is no malware on the machine

override rwxr-xr-x root/wheel restricted,compressed for accountsd? y rm: accountsd: Operation not permitted I'm affraid of breaking somethin if I go further

I tried to follow the following points of the comments/answers

  • I deleted all the account in `system preferences > Internet accounts'

  • I rebooted 2x the machine in safe mode by holding shift

Despite those steps nothing happened: the fan is still full on an almost all ressources of the CPU taken

in <user>/Library/Keychains, there is the following list:

login.keychain
login.keychain-db
login_renamed_1.keychain-db
metadata.keychain
metadata.keychain-db
metadata.keychain-db.C07BBB57-D5A7-435B-9CAD-1AE65E5FBCC5

Which one should I delete?

What finally solved the problem:

So what finally solved the problem was to reset the NVRAM (Non-Volatile Random Access Memory) with the command alt+cmd+p+r upon starting

thanks for hints below

Était-ce utile?

La solution 4

So what finally solved the problem was to reset the NVRAM (Non-Volatile Random Access Memory) with the command alt+cmd+p+r upon starting

Autres conseils

On Catalina, anything in /System is mounted in a read-only, protected volume, and so almost certainly is part of the OS and not malware.

Secondly, ramping up CPU or memory is usually not indicative of malware. Malware generally tries to hide itself, not advertise. It can be poorly written, of course. (As can the OS.)

There are many reports of MacOS processes going a bit wild every now and again: sometimes they may need to do a bit of work and then calm down; other times they may suggest a problem which needs to be fixed.

Why is the accountsd process eating so much CPU?

Accountsd using lots of CPU constantly

Process "accountsd" has over 500% CPU usage

This blog suggests that you may need to delete a local keychain folder inside <user>/Library/Keychains (which may cause some passwords to be forgotten).

https://waal70blog.wordpress.com/2019/12/16/accountsd-and-secd-high-cpu-usage-on-catalina/

An alternative offered is just to reboot to Safe Mode (hold Shift at restart), then restart normally.

I would get the 10.15.7 update which brings you to build 19H2. (And apply the combo installer if you see this issue on 19H2 if you upgraded incrementally)

On Mojave, Apple has released a supplemental update that addresses this as they didn’t have a .7 ready to release - I would make a backup and then apply all updates either on Catalina or Mojave as we’ve seen great results with both in the past 24 hours at work with no issues new and old issues fixed well.

If you’re interested in testing or analysis, these two authors are superb at describing the issue and fix.

Q: What is accountsd?

A: Process to find some links at data with your ID


Q: Why it happens?

A: Your OS want to make indexes with your ID and so on with all data on your data-drives


Q: How can I fix it?

A: Just add to ignore folders/drives at Spotlight (tool to index data at Mac OS)

Also consider patching your OS if it’s Mojave or Catalina

  1. Navigate to:

    • System preferences
    • Spotlight
    • Privacy
  2. Add a folder with your projects to list (in my case node_modules folder used a lot of indexes)

Example of Privacy window at Mac OS Catalina 10.15.7

Mac OS Catalina 10.15.7 Privacy window

I started seeing these symptoms after upgrading to osx 10.15.7 even after several reboots

100% cpu on these two processes as identifed from terminal running top

accountsd 
/System/Library/Frameworks/Accounts.framework/Versions/A/Support/accountsd

and

commerce                
/System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Resources/commerce

SOLUTION - System Pref -> Spotlight -> Privacy -> add Macintosh HD so it effectively disables Spotlight which I never use anyway

however if you use Spotlight just get more granular than whole HD

Licencié sous: CC-BY-SA avec attribution
Non affilié à apple.stackexchange
scroll top