![]() |
[RESOLVED] Restart problem (old server isn't killed)
After swith to Litespeed 4.0.12 enterprise (before i use standard version) i have problem with restarting
Litespeed version: freebsd 64bit ent 4.0.12 Before restarting: Code:
root@core2:~# ps aux |grep lshttpCode:
root@core2:~# ps aux |grep lshttpCode:
root@core2:~# ps aux |grep lshttpi tested this on 4.1RC2 and there problem don't exists. |
due to cPanel 11.25 graceful restart issue, we have changed graceful restart of 4.0.12 to finish all pending requests completely, my guess is that there are still requests in process. It takes longer for the lingering process to quit.
Please strace and lsof the running process. if there are active ESTABLISHED connections to port 80, it is still serving requests. |
truss:
Code:
kevent(7,{},0,{},16,{0.100000000 }) = 0 (0x0)lsof: Code:
root@core2:/opt/nginx# lsof -n |grep 84359 |
after few hour old lshttpd is still runing.
|
Please try a force reinstall from web console to apply the latest build of 4.0.12, add some code to deal with it.
|
Quote:
web server quite but root quits first then after wihle no-root server quit and live all lsapi process Code:
root@core2:~# ps aux |grep RAILS|grep in4maxthis is how it looks after few restarts. php isn't stoped too. by the way swithing version don't change symlink to lscgid :) and after that we have (after this test i checked to rc2 for another test) Code:
www 88224 2.9 0.1 19208 9548 ?? D 11:32AM 0:02.18 lshttpd (lshttpd.4.1RC2) |
Please check those PHP and Rails process that refuse to quit with ktrace, LSAPI should check ppid every second, if ppid is -1, means that parent process is dead, LSAPI app should quit. I wonder if those LSAPI app stuck some where.
I will check the lscgid issue. |
Quote:
security.bsd.see_other_uids=0 security.bsd.see_other_gids=0 here are my lsapi config: LSAPI_CHILDREN=4 LSAPI_AVOID_FORK=1 LSAI_MAX_IDLE_CHILDREN=2 LSAPI_MAX_IDLE=600 LSAPI_PPID_NO_CHECK=1 LSAPI_EXTRA_CHILDREN=0 also notice that ANY lsapi process isn't stoped (php/ruby) In 4.1RC2 all works perfectly. |
Quote:
|
Maybe you can try remove LSAPI_PPID_NO_CHECK, as latest LSAPI uses getppid(), instead of kill( ppid, 0 ) to test if parent process is alive or not, so the security setting in FreeBSD does affect kill(), but may not affect getppid() at all.
|
| All times are GMT -7. The time now is 09:43 PM. |