CPU spikes on small site- possibly apache or php config related
        Posted  
        
            by Mike
        on Server Fault
        
        See other posts from Server Fault
        
            or by Mike
        
        
        
        Published on 2009-11-18T06:14:00Z
        Indexed on 
            2010/04/24
            4:03 UTC
        
        
        Read the original article
        Hit count: 393
        
Hello,
I hope you can help me. I have a site that I'm moving to a new datacenter. The server is pretty much vanilla, no control panel, and also no optimizations. When I hit a page, the site takes an extremely long time to load, despite it being relatively light weight. I ran top to see what was happening, and the cpu jumps to 75%, and drops back down to about 20% while the rest of the page is loading.
Someone suggested that I ran lsof -p on the offending processes, but I'm not sure what I'm looking at. I ran through my httpd.conf file and commented out a bunch of loaded modules that didn't seem necessary, but that didn't help either. Anyone have any ideas?
Output of the lsof http://pastebin.com/mfa113f
© Server Fault or respective owner