503 errors

Dani

Well-Known Member
#1
Hi,

I've lately been flooded with 503 - graceful restarts. which hasn't been there before. We haven't upgraded that much so I cannot pinpoint the errors, is there a way for LS to log these errors somehow?

2007-09-27 21:34:17.962 [NOTICE] The maximum number of file descriptor limit is set to 12000.
2007-09-27 21:34:17.962 [NOTICE] [config:server:epsr:phpLsapi]'Process Limit' probably is too low, adjust the limit to: 1900.
2007-09-27 21:34:17.964 [NOTICE] [child: 1274] Successfully change current user to www-data
2007-09-27 21:34:17.964 [NOTICE] [Child: 1274] Core dump is enabled.
2007-09-27 21:34:17.964 [NOTICE] [AutoRestarter] new child process with pid=1274 is forked!
2007-09-27 21:34:17.964 [NOTICE] [child: 1276] Successfully change current user to www-data
2007-09-27 21:34:17.965 [NOTICE] [Child: 1276] Core dump is enabled.
2007-09-27 21:34:17.965 [NOTICE] [Child: 1276] Setup swapping space...
2007-09-27 21:34:17.965 [NOTICE] [Child: 1276] LiteSpeed/3.2.3 Enterprise starts successfully!
2007-09-27 21:34:17.967 [NOTICE] [AutoRestarter] new child process with pid=1276 is forked!
2007-09-27 21:34:17.967 [NOTICE] [Child: 1274] Setup swapping space...
2007-09-27 21:34:17.967 [NOTICE] [Child: 1274] LiteSpeed/3.2.3 Enterprise starts successfully!
2007-09-27 21:34:18.228 [NOTICE] [AutoUpdate] Checking for new releases...
2007-09-27 21:35:21.001 [NOTICE] There are 35 '503 Errors' in last 30 seconds, request a graceful restart
 

admin

Administrator
Staff member
#2
Do you have access logging enabled? you need to find out which script causes the 503 error. You can turn off "503 auto fix".
 

Dani

Well-Known Member
#3
no i dont but if the 503 would appear there I'd have no problem turning it on for a short while. What's the worst thing that can happen having the auto fix off?
 

Dani

Well-Known Member
#4
ok I found that 2-3 url:s are causing the 503

[30/Sep/2007:21:40:49 +0200] "GET /profile/check_new_stuff HTTP/1.1" 503 401 "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
[30/Sep/2007:21:40:49 +0200] "GET /get_ad HTTP/1.1" 503 401 "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; SIMBAR Enabled; S


but all these "scripts" return is a text like "a:b:c" where a||b||c == 1-100

This is a header from the check_new_stuff url "when it's working"

Response Headers
Content-Encoding gzip
Vary Accept-Encoding
Date Mon, 01 Oct 2007 09:29:16 GMT
Server LiteSpeed
Connection Keep-Alive
Keep-Alive timeout=5, max=100
X-Powered-By PHP/5.2.3
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache
Content-Type text/html
Content-Length 25


Does this say it gzipped it? Even thought my gzip is set to 300?
Maybe it has something to do with the short length? /get_ad returns 45-60bytes text.

thanks




**edit

I just realized that since this is a php file the output will surely not look what size the output is since the settings only touch the static files

"Min Static File Size (bytes)"

Any chance for a dynamic one? :)
 
Last edited:

mistwang

LiteSpeed Staff
#5
The response was gzipped. It is hard to apply the limit for dyanmic request as somtimes the real body size is unknown when the web server need to send back the response header.
 

Dani

Well-Known Member
#6
so you also think the file is to small perhaps? maybe I can fill it with some junk just to get around the 503 errors? =)
 

mistwang

LiteSpeed Staff
#7
I don't think it is because the file is too small. Something wrong on the PHP part. Does it only happen during the peak hour? Maybe you get too many PHP processes, so end up with resource limit error, like "Process Soft/Hard Limit". You should turn off "503 auto fix" and strace the PHP process when having the 503 problem.
 

Dani

Well-Known Member
#8
not a bad guess, that was correct. I lowered the ls_php connections and the problem was fixed :) superb help as allways.
 
Top