PHP is running fast, but response takes up to 3mins

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
phpNewb
Forum Newbie
Posts: 6
Joined: Fri Feb 03, 2006 2:07 pm

PHP is running fast, but response takes up to 3mins

Post by phpNewb »

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.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: PHP is running fast, but response takes up to 3mins

Post by josh »

Uh that would be a networking issue then, submit a traceroute to your system administrator
User avatar
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

Post by JAB Creations »

PHP is running fast, but response takes up to 3mins
I read this and it immediately reminded me of this one forum I frequent. :twisted:
Post Reply