Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

systemstats using high CPU after upgrade to Mavericks

Hi,


I have the 2012 ivybridge mac book air. I upgraded my os to mavericks the day it was released. Everything seems to be running fine expect the all of a sudden, the CPU cooling fan will kick into high gear. When I check the activity monitor, the culprit seems to be "systemstats". Anyone else having an issue with this or know how to solve this problem?



Thanks,

Brian H.

MacBook Air (13-inch Mid 2012), OS X Mavericks (10.9), High CPU Usage

Posted on Oct 27, 2013 12:31 AM

Reply
20 replies

Oct 28, 2013 2:39 PM in response to ocbrianh

Ok so after reading up on another related problem "battery draining" issue that I also had. Resetting the SMC and PRAM seems to have solved the systemstats issue and a whole crap load of other minor bugs that were annoying me. You definitly want to give this a try: https://discussions.apple.com/docs/DOC-3604 also, this third party site's instructions seem a little more clearer than apple's http://gigaom.com/2011/07/26/when-to-reset-your-macs-pram-and-smc/


Do give restting these two items a try. For me, it as solved 99% of my problems.

Feb 13, 2014 12:40 PM in response to DrAllegri

After cobbling together some things from the links in this thread, I was able to fix the problem on my machine by doing the following in the Terminal. If you aren't comfortable with the command line, be careful.


  1. sudo launchctl stop com.apple.systemstatsd
  2. sudo launchctl stop com.apple.systemstats.periodic
  3. sudo launchctl stop com.apple.systemstats.analysis
  4. mkdir /Users/Shared/oldsysstats
  5. sudo mv /private/var/db/systemstats/* /Users/Shared/oldsysstats
  6. sudo reboot


Step 4 is for safety. I actually just rm -rf'd the directory contents. Once you reboot everything should be working normally. For the first time I now see why people were impressed with the "Apps using significant energy" feature, since it actually works within seconds and doesn't send systemstats into a frenzy anymore. Hope this helps those who are still having the issue.

Feb 15, 2014 1:42 PM in response to A B S

Commandline solution worked for me:


  1. sudo launchctl stop com.apple.systemstatsd
  2. sudo launchctl stop com.apple.systemstats.periodic
    (got reply that process does not exist - but I ignored that)
  3. sudo launchctl stop com.apple.systemstats.analysis
  4. cd /Private/var/db/systemstats
  5. mv snapshots.db BACKUP_snapshots.db
    (this renames the database to something else)
  6. do a manual reboot


After restart everything worked as usual. The snapshots.db was automatically recreated. Now systemstats still goes up to 100% sometimes, but now only for a few seconds max.


The snapshots.db had a size of almost 600 Mb !!! I removed it after I restarted it (sudo rm BACKUP_snapshots.db).


If I now have a look at 'Apps using significant energy' then I see it immediately. Before it was very slow to react.


I think the original problem is caused by the size into which snapshots.db can grow. Just a few minutes after restart, the file snapshots.db was already at more then 100Kb again. So in a few months... Maybe good idea to have a regular look at...

Feb 16, 2014 10:28 PM in response to A B S

This fixed it for me. Same thing the snapshots.db had grown to 300 MB, although i removed the entire folder. After reboot, the folder was recreated and system was behaving within norm again.


Wel ... after I had to kill a 'Safari Web Content' process as well. Curious thing was that that process came back after reboot, for as soon as I fired up my web browser, I recognized the URL as an old URL I visited, and not even displayed in the browser (no tabs or hidden windows as I used also expose to make sure there was no window off-screen).


The snapshots issue does seem to be like a bug, with a real old solution behind it (provided link goes back to 2011...). I Do hope that a developper can submit this as a traceble bugreport with Apple through an apple developer account?

Feb 26, 2014 6:33 AM in response to GReulen

That only temporarily solved the problem, might just as well to reboot. A few days later, same issue. I got curious and let systemstats run. It ran for about 10 minutes and stopped.


------------

Commandline solution worked for me:


  1. sudo launchctl stop com.apple.systemstatsd
  2. sudo launchctl stop com.apple.systemstats.periodic
    (got reply that process does not exist - but I ignored that)
  3. sudo launchctl stop com.apple.systemstats.analysis
  4. cd /Private/var/db/systemstats
  5. mv snapshots.db BACKUP_snapshots.db
    (this renames the database to something else)
  6. do a manual reboot

systemstats using high CPU after upgrade to Mavericks

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.