We have two GoDaddy servers storing a Facebook application. One is for testing and the other is for production. Both have the same code, but the test server responds much faster.
Both servers configurations are:
- OS: Centos 5.3
- PHP: 5.3.1
- MySQL: 5.5.21
And they both have the same hardware.
We are trying to trace the problem, first we've tested our code by monitoring the usage of our php&mysql usage percents by top
. We've manage not exceeding 10%. I'm reminding that both servers has the SAME code.
Secondly, we've changed the MySQL configuration file at the production to be exactly as the testing server, but this didn't help either.
As we tested our application with firebug
, we've discovered a lot of lag in some .php
files. Some .php
file requests take 2 seconds on the testing server and 13 seconds on the production server. As this lag persisted ONLY in the production server, we've compared the result of both of the phpInfo()
results.
The differences can be seen here:
Differences from phpinfo() results
Every difference is listed in this form:
******Testing //A result from our testing server (Empty means not exist)
******Production //A result from our production server (the SLOW one)
HTTP_CACHE_CONTROL
Do you see any differences that can cause performance issues ?
Thanks.