HELP NEEDED - Local apache server running slow

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

HELP NEEDED - Local apache server running slow

Post by RobertGonzalez »

My local machine is running apache with MySQL and PHP4. I am developing an app that on my local machine is taking about 7 to 9 seconds to return a query result. When I run this app on my hosted server (also Apache, MySQL and PHP4), the same query takes about 0.07 seconds to return. Anyone have any idea what might cause this or how I might correct this so I can develop locally with some similarity to the actual server performance?

As always your help is much appreciated.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

are you having problems with name resolving?

might want to edit your /etc/hosts file...
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

I have no answer but I've had the same problems once and by sharing the info, it might help.
I simply reinstalled everything (server, php, sql's aso) and the speed again was set to what the network card could handle.

Never happened on the *nix platforms whatsoever, so I'm guessing that somewhere the sockets got fubared dealing with windows internal traffic management.

As temporary solution/test, try changing the port being used for the sql server, see if that helps.
Post Reply