Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I use Safari as my browser, but I've found that it frequently hangs for 20, 30 seconds (sometimes longer), often times when I wake it up from sleep and/or when I open a new tab.

Though I'm not sure it would be helpful, the next time it does it I'll see if I can sample the process and report back with the results. In the meantime, is there something I can try? I'm running on a mid-2007 MacBook so, while I think I have enough processing power (2x2.16Ghz) and memory (2GB), I suspect it's a disk issue.

Is there something I can do to reduce disk usage? Should I clear my cache (this isn't a problem), my history (I want to keep this if possible) or both?

edit: Is there any way to determine what plugins I have installed? I have RescueTime and Evernote, so either of them could be the culprit, but I know that there are programs that like to install hidden extensions, so that could be the problem as well.

By the way, here's that sampling output summary - I've cut out the call tree as it was way too long to post:

Total number in stack (recursive counted multiple, when >=5):
        21       _pthread_start
        21       thread_start
        7       __semwait_signal
        7       mach_msg
        7       mach_msg_trap
        7       pthread_cond_wait$UNIX2003
        6       CFRunLoopRunSpecific
        5       CFRunLoopRunInMode

Sort by top of stack, same collapsed (when >= 5):
        __semwait_signal        2058
        mach_msg_trap        2030
        semaphore_wait_signal_trap        589
        select$DARWIN_EXTSN        588
        0x0        294
        __workq_ops        294
        semaphore_timedwait_signal_trap        294
        kevent        293
        pread$UNIX2003        116
        fsync$UNIX2003        50
        WebCore::BinaryPropertyListSerializer::appendStringObject(WebCore::String const&)        42
        WTF::HashMap<WebCore::String, unsigned long, WebCore::StringHash, WTF::HashTraits<WebCore::String>, WTF::HashTraits<unsigned long> >::get(WebCore::String const&) const        19
        write$UNIX2003        19
        __dtoa        15
        WebCore::IntegerArrayHash::equal(WebCore::IntegerArray const&, WebCore::IntegerArray const&)        13
        WebCore::String::characters() const        11
        WTF::HashMap<WebCore::IntegerArray, unsigned long, WebCore::IntegerArrayHash, WebCore::IntegerArrayHashTraits, WTF::HashTraits<unsigned long> >::get(WebCore::IntegerArray const&) const        7
        __memcpy        7
        WebCore::String::isEmpty() const        6
        __sfvwrite        6
        WebCore::BinaryPropertyListSerializer::addAggregateObjectReference(unsigned long)        5
        __vfprintf        5
Sample analysis of process 18283 written to file /dev/stdout
share|improve this question
    
You can type about:plugins in the Safari address bar to get a list of installed browser plugins. –  arathorn Aug 14 '09 at 20:26
    
@arathorn: I just get a blank page when I try to visit about:plugins. You sure that works for Safari? –  Kyle Cronin Aug 14 '09 at 20:36
    
@Kyle Cronin: Whoops, my mistake. You actually just to to the Help menu and select Installed Plug-ins. –  arathorn Aug 19 '09 at 0:21
    
if you send me the whole stacktrace I can give you a more accurate idea of where is Safari blowing. (Hint gmail at my last name) ;) –  Martín Marconcini May 3 '11 at 14:06
add comment

3 Answers 3

In my book, Adobe Flash is always the first culprit for issues with browser stability and responsiveness. Try installing ClickToFlash and see if that helps things.

share|improve this answer
    
Thanks for the tip - I've actually had CTF installed for a while. Could it be another plugin perhaps? –  Kyle Cronin Aug 14 '09 at 20:06
add comment

Did you update to Safari 4.0.3 yet? I was having problems with 4.0.2

share|improve this answer
    
It seems to be better, but I don't know if that was the update or the restart that did it. I'm going to accept this answer unless Safari starts acting up again. –  Kyle Cronin Aug 15 '09 at 15:27
add comment

Go to Java Preferences -> Disable java-SE

Then try to open webpage in Safari again.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.