Hi all,
System: Debian GNU/Linux 5.0.3 2.6.26-2-686 #1 SMP Thu May 28 15:39:35 UTC 2009 i686 GNU/Linux
Mem: 2596644k
Cpu: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Litespeed: lsws-3.3.14
Problem is the following:
In test for our web application based on litespeed+rails we need to change system time from 1 to 40 days.
But when time is changed all process under base one are die. So we got 503.
LSAPI_MAX_IDLE: 12000000 (~340days!)
from ptrace
open('/tmp/lshttpd/.rtreport.tmp', <O_WRONLY|O_CREAT|O_TRUNC> (01101)) = 15 (0x0000000f)
fstat64(15, 0xbf86e394) = 0
fcntl64(15, 2, 1) = 0
time(NULL) = 1328076000 (0x4f28d4e0)
write(15, 0xbf86d4a0, 72) = 72 (0x00000048)
write(15, 0xbf86d490, 216) = 216 (0x000000d8)
write(15, 0xbf86e060, 69) = 69 (0x00000045)
write(15, 0xbf86e060, 67) = 67 (0x00000043)
write(15, 0xbf86e060, 65) = 65 (0x00000041)
write(15, 0xbf86e060, 71) = 71 (0x00000047)
close(20) = 0
unlink('/tmp/lshttpd/portal:_.sock.362') = 0
kill(24192, SIGTERM) = 0
kill(24192, SIGUSR1) = 0
gettimeofday(<timeval tv_sec=1328076000, tv_usec=94094>, NULL) = 0
write(3, 0xbf86b380, 64) = 64 (0x00000040)
close(17) = 0
unlink('/tmp/lshttpd/frontend:_.sock.317') = 0
kill(24191, SIGTERM) = 0
kill(24191, SIGUSR1) = 0
gettimeofday(<timeval tv_sec=1328076000, tv_usec=97133>, NULL) = 0
write(3, 0xbf86b380, 66) = 66 (0x00000042)cnuapp 24343 0.0 7.1 207060 186076 ? S 00:29 0:00 | | \_ RailsRunner.rb FrontEnd integration US 1.8.7.248
write(15, 0x081bfe75, 4) = 4
close(15) = 0
ps aufx before changing time:
root 20964 0.0 0.0 108 28 ? Ss Jan31 0:00 \_ runsv lsws
cnuapp 22433 0.1 0.1 6244 3672 ? S Jan31 0:08 | \_ /export/web/stable/lsws-3.3.14/tmp/cnuapp/bin/lshttpd -d
cnuapp 24300 24.7 7.3 207060 190308 ? Ss 00:27 0:36 | \_ RailsRunner.rb FrontEnd integration US 1.8.7.248
cnuapp 24343 0.0 7.1 207060 186076 ? S 00:29 0:00 | | \_ RailsRunner.rb FrontEnd integration US 1.8.7.248
cnuapp 24301 24.7 6.3 182656 165896 ? Ss 00:27 0:36 | \_ RailsRunner.rb Portal integration US 1.8.7.248
cnuapp 24344 0.0 6.2 182656 161600 ? S 00:29 0:00 | \_ RailsRunner.rb Portal integration US 1.8.7.248
ps aufx after changing time:
root 20964 0.0 0.0 108 28 ? Ss Jan31 0:00 \_ runsv lsws
cnulog 20965 0.0 0.0 124 48 ? S Jan31 0:00 | \_ svlogd -tt ./main
cnuapp 22433 0.1 0.1 6244 3672 ? S Jan31 0:08 | \_ /export/web/stable/lsws-3.3.14/tmp/cnuapp/bin/lshttpd -d
Application cannot up so fast and return 503
Second time request to application work OK
Any ideas why it's happening?
System: Debian GNU/Linux 5.0.3 2.6.26-2-686 #1 SMP Thu May 28 15:39:35 UTC 2009 i686 GNU/Linux
Mem: 2596644k
Cpu: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Litespeed: lsws-3.3.14
Problem is the following:
In test for our web application based on litespeed+rails we need to change system time from 1 to 40 days.
But when time is changed all process under base one are die. So we got 503.
LSAPI_MAX_IDLE: 12000000 (~340days!)
from ptrace
open('/tmp/lshttpd/.rtreport.tmp', <O_WRONLY|O_CREAT|O_TRUNC> (01101)) = 15 (0x0000000f)
fstat64(15, 0xbf86e394) = 0
fcntl64(15, 2, 1) = 0
time(NULL) = 1328076000 (0x4f28d4e0)
write(15, 0xbf86d4a0, 72) = 72 (0x00000048)
write(15, 0xbf86d490, 216) = 216 (0x000000d8)
write(15, 0xbf86e060, 69) = 69 (0x00000045)
write(15, 0xbf86e060, 67) = 67 (0x00000043)
write(15, 0xbf86e060, 65) = 65 (0x00000041)
write(15, 0xbf86e060, 71) = 71 (0x00000047)
close(20) = 0
unlink('/tmp/lshttpd/portal:_.sock.362') = 0
kill(24192, SIGTERM) = 0
kill(24192, SIGUSR1) = 0
gettimeofday(<timeval tv_sec=1328076000, tv_usec=94094>, NULL) = 0
write(3, 0xbf86b380, 64) = 64 (0x00000040)
close(17) = 0
unlink('/tmp/lshttpd/frontend:_.sock.317') = 0
kill(24191, SIGTERM) = 0
kill(24191, SIGUSR1) = 0
gettimeofday(<timeval tv_sec=1328076000, tv_usec=97133>, NULL) = 0
write(3, 0xbf86b380, 66) = 66 (0x00000042)cnuapp 24343 0.0 7.1 207060 186076 ? S 00:29 0:00 | | \_ RailsRunner.rb FrontEnd integration US 1.8.7.248
write(15, 0x081bfe75, 4) = 4
close(15) = 0
ps aufx before changing time:
root 20964 0.0 0.0 108 28 ? Ss Jan31 0:00 \_ runsv lsws
cnuapp 22433 0.1 0.1 6244 3672 ? S Jan31 0:08 | \_ /export/web/stable/lsws-3.3.14/tmp/cnuapp/bin/lshttpd -d
cnuapp 24300 24.7 7.3 207060 190308 ? Ss 00:27 0:36 | \_ RailsRunner.rb FrontEnd integration US 1.8.7.248
cnuapp 24343 0.0 7.1 207060 186076 ? S 00:29 0:00 | | \_ RailsRunner.rb FrontEnd integration US 1.8.7.248
cnuapp 24301 24.7 6.3 182656 165896 ? Ss 00:27 0:36 | \_ RailsRunner.rb Portal integration US 1.8.7.248
cnuapp 24344 0.0 6.2 182656 161600 ? S 00:29 0:00 | \_ RailsRunner.rb Portal integration US 1.8.7.248
ps aufx after changing time:
root 20964 0.0 0.0 108 28 ? Ss Jan31 0:00 \_ runsv lsws
cnulog 20965 0.0 0.0 124 48 ? S Jan31 0:00 | \_ svlogd -tt ./main
cnuapp 22433 0.1 0.1 6244 3672 ? S Jan31 0:08 | \_ /export/web/stable/lsws-3.3.14/tmp/cnuapp/bin/lshttpd -d
Application cannot up so fast and return 503
Second time request to application work OK
Any ideas why it's happening?
Last edited: