I’ve been having some rather odd Safari problems today for the first time since I can remember. I really dig Safari, it’s everything I want in a browser and getting better with each release. I’ve been using Safari since the public beta back in January 2003 back when Mac OS X 10.2 was the main OS.
Anyway this afternoon I noticed that Safari kept using 100% CPU and becoming un responsive. I kept force quitting it but the problem kept coming back after about 10 mins. I tried the usual repair permissions, delete preferences and caches etc to no avail. I then thought I would try the Safari 4 Developer Preview, I downloaded it and installed it. It was perfectly stable and very fast, can’t wait for the finial release of that badboy! At this point I was still stumped as to why 3.2.1 was holding the CPU hostage but Safari 4 was fine. I uninstalled Safari 4 and reinstalled 3.2.1.. On restarting everything seemed fine but yet again it took all the CPU, back where I started. Just launching Safari and then closing the window and waiting would cause the CPU to be held hostage again.
I ran a filesystem trace to see what files Safari was touching, I basically sat and waited until the high CPU condition happened then took a look to see what files were accessed. After an hour of watching and timing the problem it seemed that Safari was continuously reading from the filesystem which is what was causing the massive CPU load. It was triggered by an unusual cache file hit, I did a check to see what network connections were established and saw some odd looking google server addresses, it then dawned on me that Safari 3.2 features anti-phishing protection that uses a blacklist provided by google.
This also explained why the the Safari 4 Developer Preview worked correctly as it doesn’t yet have the anti-phishing stuff. I turned off the anti-phishing stuff in Safari 3.2.1 and sure enough everything went back to normal. Me being me I was still bothered because why would it suddenly cause problems, it’s been working fine until today. I went back and took a look at the cache files it was using for the blacklists, I thought that corruption of some kind was most likely so I deleted them. I then re-enabled the anti-phishing mode in Safari 3.2.1, now been three hours and all is well again.
sudo rm -r /private/var/folders/*
Relaunch Safari and all should be well. I couldn’t find any references to this problem online so I though I would post something.
13 Comments
Thank you, thank you, thank you!
I turned off Safari’s anti-phishing feature/bug, and now it’s responsive and not using 100% CPU!
Although, on my system, the directory you mentioned above doesn’t exist. iBook G4 running 10.4.11 — perhaps it’s stored somewhere else in 10.4.
Posted at 4:29 pm January 1, 2009
A family member has the same setup as you. I’ll take a look in to it tomorrow and get back to you.
Posted at 4:51 pm January 1, 2009
I had the same problem. Disabling anti-phishing feature solved the problem.
–
Sceptic
Posted at 10:53 pm January 2, 2009
Sorry what I mean in this post is disable it, then delete the saved stuff and obviously re-enable it. Mines worked fine ever since.
Posted at 2:19 am January 3, 2009
The files on my machine (running 10.4.11) were at /private/var/tmp/folders* and thanks for taking the time to track this down. It was driving me away from Safari!
Posted at 3:18 am January 28, 2009
Thanks for the location on Tiger, might help someone else out.
Posted at 10:28 am January 31, 2009
Thanks for this post, Safari had been driving me nuts with its CPU usage and because it stopped following hyperlinks in that state, too. I found I needed to turn the fraud check off, quit safari, delete the directory, and only then re-start safari and turn the fraud check back on. Just deleting that directory (Tiger one) and turning fraud check off then on by itself didn’t help, it went straight back to 100% CPU etc.
I’m only using Safari because I need 3 browsers to be able to do things with different google accounts at the same time…
Posted at 8:26 pm February 10, 2009
My wife was trying to convince me of an existing problem
i told her there is none and she should stay away from badly coded websites
then i also experienced the problem
i did feel lucky in google with “safari 3.2.1 browser cpu load 10.4″
disabled it (there was no folder) and it worked decently again!
Posted at 1:22 pm February 18, 2009
Yeeesssss,
disabling anti-pishing solved my problem too.
It’s funny: There are a lot of threads regarding Safari’s high CPU usage in the web. However, they mostly suspect Flash to be the root cause.
Thank you.
Posted at 9:02 pm March 17, 2009
I originally thought of Flash and it’s true it does waste a lot of CPU on nothing good. But for me that didn’t explain the high CPU usage when nothing was open.
The high CPU load seems to be down to the database for the phising sites being corrupted, turning it of does solve the root problem of the high CPU usage but doesn’t solve the phising problem. By deleting the database allows you to re-enable the filter, since I did it I’ve never had another problem.
Posted at 9:17 pm March 17, 2009
thank you very much! I was searching exactly for that and I wasn’t able to find it elsewhere.
have a great day!
luca
Posted at 9:28 pm April 1, 2009
Thank you very much indeed for posting this.
The SafeBrowsing.db files on my 10.4.11 MacMini PowerPC are located at ~/Library/Caches/com.apple.Safari
We were disconnected from the internet for several weeks, I don’t know whether that contributed to triggering this problem.
Posted at 2:00 pm June 5, 2009
[...] sensei klo orang japan bilang..hehe).. dan akhirnya masalahku pun dapat diatasi di sini. . di sini.. atau di sini … Penggunaan CPU 100% ini ternyata dipengaruhi oleh fitur anti pishing [...]
Posted at 7:16 am December 13, 2010