Slow Site Loading (yet it's fast on another server)

Laeelin

Member
Jan 17, 2004
7
0
151
We have 2 servers.

one for development, and one for deployment.

dev.oursite.com is an exact copy.

The home page loads in 1.5 seconds on that server.

The same page (just HTML with a few images and a couple javascript files) loads in 4.5 seconds on the other server (our live server)

When I check the server status on the live server I see:
Server Load 0.38 (2 cpus)
Memory Used 36.1 %
Swap Used 0.00 %
Total Bandwidth Usage 5.54 Gig

Where could the bottleneck be? (note: the same hosting company hosts both sites)
Anything else I should check?

Thanks
David
 
C

cPanelBilly

Guest
If you dont have root on your server you need to contact your hosting company. They could be using something to throttle you or apache is at max clients or any number of other possibilities.
 

Laeelin

Member
Jan 17, 2004
7
0
151
I do have root access.

Apache
.91 requests/sec - 6.6 kB/second - 7.2 kB/request
6 requests currently being processed, 4 idle servers

WK_KKK_K__......................................................
................................................................

<clip> 30 more lines of "." removed </clip>

Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"L" Logging, "G" Gracefully finishing, "." Open slot with no current process


Any other suggestions?
Thanks
David
 
C

cPanelBilly

Guest
Check your resolvers on the server... If you are doing rdns lookups for some reason and the nameservers are slow it could be causing it. Other than that you really need to strace the process see whats taking the extra time.