com.apple.Safari.History using large amounts of my CPU

Whenever I boot up the computer and open safari, the com.apple.Safari.History starts using large amounts of my CPU (usually something like 100%) and the fan has to kick on to manage the rising temperature. Force Quitting the process in Activity Monitor fixes the problem until I put my computer to sleep and wake it up again, at which point the issue comes back. Disabling iCloud syncing between my 2020 MacBook Air (quad core) and my iPhone X is not a sustainable solution.

MacBook Air 13″, 11.2

Posted on Mar 4, 2021 7:27 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 11, 2021 5:23 PM

Update... I think I've resolved the issue on my MacBook Pro.


I'm not the original poster, but I was having the same issue.

I tried clearing the History with the Safari Menu (as suggested above), but it didn't work for me.


However, I found an older thread that offered a suggestion that worked...


It basically says to go into your ~/Library/Safari and move the History* files (so that Safari creates new files).


Here's the link:

https://discussions.apple.com/thread/7353687



For those interested, here are my results...

Here's what my Activity Monitor looks like now. (1 hour ago it was at 99% for com.apple.Safari.History)


As you can see above, Safari is open but com.apple.Safari.History is at 0.0% (not doing much, which is good). Look at the next column. I sorted by CPU Total (about 10 days), so you could see that prior to the fix it was using more CPU in the past week than all of the other processes combined... way more.

5 replies
Question marked as Top-ranking reply

Mar 11, 2021 5:23 PM in response to cwebber1

Update... I think I've resolved the issue on my MacBook Pro.


I'm not the original poster, but I was having the same issue.

I tried clearing the History with the Safari Menu (as suggested above), but it didn't work for me.


However, I found an older thread that offered a suggestion that worked...


It basically says to go into your ~/Library/Safari and move the History* files (so that Safari creates new files).


Here's the link:

https://discussions.apple.com/thread/7353687



For those interested, here are my results...

Here's what my Activity Monitor looks like now. (1 hour ago it was at 99% for com.apple.Safari.History)


As you can see above, Safari is open but com.apple.Safari.History is at 0.0% (not doing much, which is good). Look at the next column. I sorted by CPU Total (about 10 days), so you could see that prior to the fix it was using more CPU in the past week than all of the other processes combined... way more.

Mar 4, 2021 7:56 AM in response to bkdres93

Safari stores its history in a sqlite3 database, which it must open and update as your history changes. The longer you wait to clear history, and the more frequently your browser actions require logging new history items, the larger the database grows. If you haven't cleared all browser history items in months, the history database processing requirements continue to increase.


If you visit Safari > Clear History… [ all history ] and click Clear History, then quit Safari. When you launch Safari again, does com.apple.Safari.History still consume 100% CPU?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

com.apple.Safari.History using large amounts of my CPU

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