Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i have a 1and1 account dedicated linux machine never had a problem with it. httpd and mysqld seem to be running just fine. ping and trace are also fine..

one domain on the machine is www.hundig.com

any ideas where i could look why it is so slow or not loading at all? when i reboot it seems faster. just rebooting httpd doesnt change anything.

(tried doing a local curl and it doesnt load. a curl on google works fine. must be local)

share|improve this question
add comment

1 Answer

  1. Open the site in Firefox with enabled Firebug. It'll show you, on which file it hangs. For each file it shows dns resolve time and download time.
  2. Watch top output and look for excessive load, memory consumption, etc.
  3. Enable harder logging of php (E_WARNING at least) and look into php error log
  4. Enable slow log in MySQL and look for slow SQL queries.

About bad local curl - try to wget http://www.hundig.com. If the server has problem with dns resolve of the domain, and php script is trying to download something from this url, that could be the slowing down place. But it doesn't explain "faster after reboot"

Regards,

Martin

share|improve this answer
    
i figured out it must have something to do with apache... not sure yet what though –  travolto Jun 7 '10 at 16:31
    
seems like it hangs but it doesnt use more memory than usual –  travolto Jun 7 '10 at 16:31
    
I'd add strace to the suggestions made by mkudlacek. Try to strace your httpd processes when the site is slow. –  Marco Ramos Jun 8 '10 at 1:18
add comment

Your Answer

 
discard

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