Re: Scripts are fast locally, but slow on remote server
| From: | Jochem Maas | Date: | Wed, 16 Jan 2008 22:01:26 +0000 |
| Subject: | Re: Scripts are fast locally, but slow on remote server | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267449@lists.php.net to get a copy of this message | ||
Richard Lynch schreef:
Are you relying on autoload or anything of that nature to load in class files, perhaps?garanteed that it's not an autoload related problem. and Im willing to bet it's a dns related issue - I remember similar problems reported on the list and it always came down to dns.
On Wed, January 16, 2008 1:02 am, Dave M G wrote:PHP list, I have a set of PHP scripts that seem to be efficient and quick enough both on my home testing environment, and a few different web-hosting services I use. However, on one particular web-hosting service, there is often a very painful 10 second (!) lag when first loading up the scripts. This long lag time can sometimes be manifest not just on the first page loaded, but the second and maybe third as well. But then after the first initial pages are loaded, the site seems to speed up to what I would consider normal download pages for times. There are some pages on the site that are not driven by these PHP scripts, and they load up very quickly, indicating that only my PHP scripts are affected. So the problem seems to be, as far as I can tell, that something about my PHP scripts is combining with some setting of this one web-hosting server to create some kind of slowdown. Is there any way I can diagnose a situation like this to get to the root of the problem? Perhaps there are common discrepancies between server settings that I can look out for? Any advice would be much appreciated. Thank you. -- Dave M G Articlass - open source CMS http://articlass.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php