I have been banging my head against the wall all day trying to figure this out. My web site's response times are normal some of the time, but other times it takes up to (and sometimes over) 3 minutes to get a response. It's seemingly sporadic, but almost always happens with AJAX calls. But here's the kicker, the PHP code is running very fast every time, it just takes for ever for the browser to get the response. My friends all get the same result (from different internet connections).
Example: When logging into my site, I can enter my username and password then click the login button. If I wait, it will take a few minutes to load the 'logged in' page, but if I click a link while waiting for the respone (I mean right after hitting the submit button), the page will load quickly, and it shows that I'm logged in. In other words, my PHP code is executing quickly, it's just taking 2 to 4 minutes for the browser to receive the resulting page. The page size is very small, it's not that I'm trying to load a huge page.
There are no errors in my Apache, PHP, or my SQL logs. All requests show a 200 code in my apache2 access log. I've also tried turning off KeepAlive in the Apache config, but the problem remains. Any help or guidance here would be very appreciated. Thanks in advance.
PHP is running fast, but response takes up to 3mins
Moderator: General Moderators
Re: PHP is running fast, but response takes up to 3mins
Uh that would be a networking issue then, submit a traceroute to your system administrator
- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
Re: PHP is running fast, but response takes up to 3mins
I read this and it immediately reminded me of this one forum I frequent.PHP is running fast, but response takes up to 3mins