LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   503 Errors (http://www.litespeedtech.com/support/forum/showthread.php?t=2926)

zoom 04-26-2009 04:38 PM

503 Errors
 
I seem to be getting lot's of 503 errors which requires me to restart the LiteSpeed webserver. I'm not sure why it's happening. At first I thought it might be a php memory leak, now I'm wondering if it's a configuration issue. Thoughts?

Max Connections: 20
PHP_LSAPI_MAX_REQUESTS=60
PHP_LSAPI_CHILDREN=20
Initial Request Timeout 800
Persistent Connection Yes
Server Command $SERVER_ROOT/fcgi-bin/lsphp5
Backlog 100

Here are what the process look like (typically when I have the 503 errors there are lot's of these processes):

lsws 30312 0.0 0.3 22972 8372 ? SN 12:42 0:00 lsphp5
lsws 30353 0.0 0.2 19368 5384 ? SNs 11:55 0:00 lsphp5

anewday 04-26-2009 07:47 PM

Why set PHP_LSAPI_MAX_REQUESTS so low? I would raise it a lot more.

mistwang 04-27-2009 07:04 AM

Are you using the latest 4.0.2?
You may need to strace those lsphp5 processes. Maybe it was caused by a bad script. Also, check stderr.log and error.log


All times are GMT -7. The time now is 02:17 AM.