Forum Moderators: phranque

Message Too Old, No Replies

New apache server loading very slow

slow apache response

         

vollmarj

1:41 am on Mar 17, 2007 (gmt 0)

10+ Year Member



Hello, I recently migrated my webserver from a old temporary machine to my fast Core2 4GB DDR2 800 server. Sites were loading kind of slow on the old machine because the hardware just couldn't support it. I used the exact same apache config on the new server and... woah the sites are loading even slower. I'm talking about like 14 second on my LAN.

The browser status while waiting for the site to load is waiting for mydomain.com. At first I was thinking slow dns resolution because it takes forever to begin loading the page and then boom it loads quick. After browsing around the site for a while it begins to speed up. If I go to another virtual host on the same server, we start all over again. Slow loading!

I changed the traffic back to my other server and it still loads at expected (much faster) times. It seems like my new apache server is just taking forever to respond to the http requests. Like I said, I'm using the same config files.

Please help.

jdMorgan

5:24 am on Mar 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please tell us more about your server -- What OS are you running? And more about your network -- Routers, subnets? Where are your your DNS servers? Does your server have multiple NICs in it, or any other complications?

The "speeds up after surfing" bit may be due to your browser caching... What happens if you disable your browser's cache -- Do you still see a speedup after surfing a particular site for awhile?

Jim

vollmarj

9:04 pm on Mar 17, 2007 (gmt 0)

10+ Year Member



About the cache, that isn't why its speeding up. The server has no complications and actually has nearly identical environment to the old server. It's running on windows just like the old one. Ping times to the new server are slightly faster on average.

vollmarj

9:31 pm on Mar 17, 2007 (gmt 0)

10+ Year Member



Wow i believe i solved the problem! I realized that my old server only had one NIC. The new one is only using one as well, but VMWare creates virtual adapters. I told apache to only bind to the correct NIC and vola it worked.