cluettr
02-15-2007, 12:32 PM
OK, I've been pounding my head against the wall.
Scenario:
Moving my website from a 700 mhz 256 MB machine to a 1.8 Ghz 512 MB machine because the existing server was running out of HD space (these are actually desktops). I assumed I would see some sort of improvement in the site. I went from Apache 1.3.3 to Apache 2.2.3 w/ mod_deflate and mod_expires to speed up the rendering of pages. Additionally I installed Xcache and Zend Optimizer which I have now disabled to troubleshoot.
Generally what is wrong:
Since moving the site it has come to a crawl. On the old box the main page would render in under 18 seconds. Yes, that is generally slow but there was no compression or caching involved and the main page is at about 400k. So this would be expected behavior. On the new box I am looking at over a full minute (60 seconds).
Some Details:
Using Firebug under Mozilla I compared the loading of the site on the old box and on the new one. It seems that .js files and .css files in the new site take 1.5 seconds to load a piece compared to sub 100 ms on the old. Caching seems a bit screwy here to since I thought that .js and .css are generally cached anyway. When I do an [F5] in Firefox to open the page bypassing the cache it takes the full 60 seconds. I figured with mod_deflate and mod_expires I'd gain at least something but it seems like I am going backwards here. How can Apache 1.3.3 on a low low low end machine outperform this new box. Something is seriously wrong here but I've looked everywhere I know how. Has anyone run into this? Or does someone have an idea of what could be the culprit?
Here are the Firebug Net Charts:
OLD SITE :: Bypassing the Cache (http://www.cluett.net/old_bypasscache.bmp)
NEW SITE :: Bypassing the Cache (http://www.cluett.net/new_bypasscache.bmp)
NEW SITE :: From Cache (http://www.cluett.net/new_fromcache.bmp)
Scenario:
Moving my website from a 700 mhz 256 MB machine to a 1.8 Ghz 512 MB machine because the existing server was running out of HD space (these are actually desktops). I assumed I would see some sort of improvement in the site. I went from Apache 1.3.3 to Apache 2.2.3 w/ mod_deflate and mod_expires to speed up the rendering of pages. Additionally I installed Xcache and Zend Optimizer which I have now disabled to troubleshoot.
Generally what is wrong:
Since moving the site it has come to a crawl. On the old box the main page would render in under 18 seconds. Yes, that is generally slow but there was no compression or caching involved and the main page is at about 400k. So this would be expected behavior. On the new box I am looking at over a full minute (60 seconds).
Some Details:
Using Firebug under Mozilla I compared the loading of the site on the old box and on the new one. It seems that .js files and .css files in the new site take 1.5 seconds to load a piece compared to sub 100 ms on the old. Caching seems a bit screwy here to since I thought that .js and .css are generally cached anyway. When I do an [F5] in Firefox to open the page bypassing the cache it takes the full 60 seconds. I figured with mod_deflate and mod_expires I'd gain at least something but it seems like I am going backwards here. How can Apache 1.3.3 on a low low low end machine outperform this new box. Something is seriously wrong here but I've looked everywhere I know how. Has anyone run into this? Or does someone have an idea of what could be the culprit?
Here are the Firebug Net Charts:
OLD SITE :: Bypassing the Cache (http://www.cluett.net/old_bypasscache.bmp)
NEW SITE :: Bypassing the Cache (http://www.cluett.net/new_bypasscache.bmp)
NEW SITE :: From Cache (http://www.cluett.net/new_fromcache.bmp)