LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Page timeout when process hung

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2009, 06:24 AM
closet geek closet geek is offline
Senior Member
 
Join Date: Sep 2008
Posts: 68
Default Page timeout when process hung

Hi,

When a PHP process is hung waiting for a response from an external website the person that triggered the hung process is no longer able to load pages on the same subdomain they simply timeout. What setting would cause this behaviour I can't seem to track it down?

e.g. the person goes to subdomain.theirdomain.com and triggers a PHP script that sits waiting for input from an external domain, the person then tries to load another PHP page on subdomain.theirdomain.com it always times out until the original PHP script finishes or is manually terminated.

Thanks!
Reply With Quote
  #2  
Old 08-07-2009, 10:14 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
It could be ture for suEXEC, each user only get a limited number of PHP processes, if all are busy or hung, no more PHP request can be processed for that user until a PHP process becomes available.

PHP run out of web server process, web server does not have tight control on it. you need to find a way to have PHP terminate the request as quick as possible.
Reply With Quote
  #3  
Old 08-08-2009, 12:30 AM
kc8yds kc8yds is offline
Member
 
Join Date: Apr 2008
Posts: 35
if your script uses sessions put
session_write_close();

as early on in your script -- just after the last use of a $_SESSION variable
Reply With Quote
  #4  
Old 08-08-2009, 03:53 AM
closet geek closet geek is offline
Senior Member
 
Join Date: Sep 2008
Posts: 68
Hi,

We don't use SuExec on this server. We're literally the only site on the server and no one visits the site yet so this can't be a problem with exhausted resources unless I've set a number very low somewhere but I can't find where. Any other ideas?

We don't control the script.

Thanks.
Reply With Quote
  #5  
Old 08-08-2009, 11:19 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Maybe you are using request rate throttling?
http://www.litespeedtech.com/docs/we.../#dynReqPerSec
Reply With Quote
  #6  
Old 08-09-2009, 03:53 AM
closet geek closet geek is offline
Senior Member
 
Join Date: Sep 2008
Posts: 68
Hi,

These are set to 0 which I understand disables them. Can you specifically setup the test case I've outlined to see if you reproduce the problem? It could well be a bug.

Thanks.
Reply With Quote
  #7  
Old 08-09-2009, 08:12 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 729
Maybe it's better if you pm a temp root login for George.
Reply With Quote
  #8  
Old 08-09-2009, 08:26 PM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
Quote:
Originally Posted by closet geek View Post
Hi,

These are set to 0 which I understand disables them. Can you specifically setup the test case I've outlined to see if you reproduce the problem? It could well be a bug.

Thanks.
More information about what your site is doing when accessing the external website would help a lot.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:52 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.