Safari v18.2 History Memory Problem

My new M4 Mac Mini had been performing flawlessly until a couple of weeks ago. The 16GB system's free memory would hover around ~7GB during normal use with Mail, Safari, Messages and maybe one or two other programs/apps open. Suddenly it was rapidly dropping to ~2GB of free memory.


After some due diligence Activity Monitor showed that "com.apple.Safari.History" was using an inordinately high amount of memory; starting at about 15GB as soon as Safari is opened to as high as 60+GB and climbing. This was causing red-level memory pressure, heavy swap file usage, etc. The process remains open even an hour after closing Safari and it often continues to climb until I force quit it. Once it quits the free memory will instantly jump to ~10GB or higher.


So the culprit appears to be Safari v18.2. The process "overrun" happens immediately when Safari is opened, even without opening any tabs. No particular website triggers it either. The issue is replicated every time Safari is opened. It may be a memory leak, but I cannot isolate the cause.


Having used every type of Mac for more than a couple of decades I followed all of the known resolutions including reinstalling the MacOS Sequoia v15.2, removing the only single Safari extension installed (1Password), however the problem persists. I've searched the community without finding a similar issue, particularly with a new M4 Mac or the latest version of Safari.


As expected EtreCheck shows heavy app demand, memory demand, etc., again all pointing to Safari.


I've included a copy of Safari's open files and ports - with no tabs open - as well as a couple of screenshots showing the issue below in case that might help with a diagnosis.


In the meantime I've switched to using Firefox where there are no similar issues.


Safari is my preferred browser so any advice would be very welcome.


TIA!


=-=-=-=-=-=-=-=-=

/

/System/Volumes/Preboot/Cryptexes/App/usr/libexec/com.apple.Safari.History

/Library/Preferences/Logging/.plist-cache.dKFC7a0w

/System/Volumes/Preboot/Cryptexes/Incoming/OS/System/Library/PrivateFrameworks/SafariShared.framework/Versions/A/Resources/en.lproj/Localizable.strings

/System/Volumes/Preboot/Cryptexes/Incoming/OS/System/Library/PrivateFrameworks/SafariShared.framework/Versions/A/Resources/en.lproj/Localizable.stringsdict

/Users/redacted/Library/Safari/History.db-shm

/usr/lib/dyld

/private/var/folders/qz/kh4jrjrn2b7ffk0zdw9_2x9c0000gn/0/com.apple.LaunchServices.dv/com.apple.LaunchServices-6024-v2.csstore

/usr/share/icu/icudt74l.dat

/System/Library/Frameworks/CFNetwork.framework/Versions/A/Resources/DafsaData.bin

/dev/null

/dev/null

/dev/null


=-=-=-=-=-=-=-=-=


Memory usage history



Mac mini (M4)

Posted on Jan 7, 2025 2:38 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 11, 2025 3:27 PM

Solved!


TL;DR: Uninstalling and reinstalling the 1Password for Safari App resolved this issue.


Apologies for the late reply. I believe that I found the source of the issue: the 1Password Safari Extension App (from the Apple App Store). For unknown reason(s) the app may have been causing the massive run-up in memory usage. I say "may have" only because I do not have empirical proof other than starting fresh fixed it.


I ended up uninstalling the 1PW for Safari App, reinstalling MacOS Sequoia v15.2, downloading and reinstalling 1PW for Safari.


I've been running it now for over 24 hours and the "com.apple.Safari.History" process has remained at under 10 MB (not ~40GB as before). I've visited all of my normal websites including ones utilizing 1PW auto-fill while watching the process in Activity Monitor and none are causing any issues now.


For anyone that follows with similar issues, simply fully uninstalling, rebooting and reinstalling 1PW for Safari may resolve this. I reinstalled MacOS Sequoia but that may not be necessary.


Thank you SO much for the feedback and assistance, it's truly appreciated.


Similar questions

9 replies
Question marked as Top-ranking reply

Jan 11, 2025 3:27 PM in response to Owl-53

Solved!


TL;DR: Uninstalling and reinstalling the 1Password for Safari App resolved this issue.


Apologies for the late reply. I believe that I found the source of the issue: the 1Password Safari Extension App (from the Apple App Store). For unknown reason(s) the app may have been causing the massive run-up in memory usage. I say "may have" only because I do not have empirical proof other than starting fresh fixed it.


I ended up uninstalling the 1PW for Safari App, reinstalling MacOS Sequoia v15.2, downloading and reinstalling 1PW for Safari.


I've been running it now for over 24 hours and the "com.apple.Safari.History" process has remained at under 10 MB (not ~40GB as before). I've visited all of my normal websites including ones utilizing 1PW auto-fill while watching the process in Activity Monitor and none are causing any issues now.


For anyone that follows with similar issues, simply fully uninstalling, rebooting and reinstalling 1PW for Safari may resolve this. I reinstalled MacOS Sequoia but that may not be necessary.


Thank you SO much for the feedback and assistance, it's truly appreciated.


Jan 7, 2025 10:22 PM in response to richsadams

I should have noted that I tried removing all of the history files including "History.db-wal", "History.db-shm", "History.db" and "CloudHistoryRemoteConfiguration" from the Safari Library but when I started Safari again the same issue began immediately.


I also should have noted in my original post that if I open my Mac in Safe Mode and then open Safari, the process "com.apple.Safari.History" does not run. The free memory behaves normally.


Thanks for any advice.

Jan 8, 2025 1:13 AM in response to richsadams

Running the same M4 Mac Mini with the 500 GB SSD of that makes and difference


Can not say I am experiencing any of your outlined issues


The only true differences is, I do not use 1Password at all


Perhaps if you were will to share the Etrecheck Report


We may see something that has been overlooked ?






/


/System/Volumes/Preboot/Cryptexes/App/usr/libexec/com.apple.Safari.History


/usr/lib/dyld


/Library/Preferences/Logging/.plist-cache.jWH8XHp6


/private/var/folders/w0/dnl59pld76b_ldzz4vg413t00000gn/0/com.apple.LaunchServices.dv/com.apple.LaunchServices-6024-v2.csstore


/usr/share/icu/icudt74l.dat


/System/Volumes/Preboot/Cryptexes/Incoming/OS/System/Library/PrivateFrameworks/SafariShared.framework/Versions/A/Resources/en.lproj/Localizable.strings


/System/Volumes/Preboot/Cryptexes/Incoming/OS/System/Library/PrivateFrameworks/SafariShared.framework/Versions/A/Resources/en.lproj/Localizable.stringsdict


/Users/p.phillips/Library/Safari/History.db-shm


/System/Library/Frameworks/CFNetwork.framework/Versions/A/Resources/DafsaData.bin


/dev/null


/dev/null


/dev/null


/Users/xxxx/Library/Safari/History.db-lock


/Users/xxxx/Library/Safari/History.db


/Users/xxxx/Library/Safari/History.db-wal


/Users/xxxx/Library/Safari/History.db-shm

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.

Safari v18.2 History Memory Problem

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