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.
HELP NEEDED - Local apache server running slow
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
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.
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.