Page 1 of 1

HELP NEEDED - Local apache server running slow

Posted: Sat May 28, 2005 10:20 am
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.

Posted: Sat May 28, 2005 10:26 am
by timvw
are you having problems with name resolving?

might want to edit your /etc/hosts file...

Posted: Sat May 28, 2005 3:33 pm
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.