|
|

10-17-2009, 01:08 AM
|
|
Member
|
|
Join Date: Apr 2007
Posts: 33
|
|
litespeed stuck
i'm a new litespeed user, just got litespeed installed on some servers replacing apache.
tonight i notice litespeed on one of the servers got stuck somehow, unable to access litespeed admin panel, unable to open up websites, while server load is very low and not much network activity. i checked everything and can't find out why it's stuck, finally i had to kill the litespeed process and restart litespeed, then everything works fine again.
is there a way to prevent this problem? except use a http service monitor...
|

10-18-2009, 05:25 PM
|
|
Member
|
|
Join Date: Apr 2007
Posts: 33
|
|
|
it seems litespeed got stuck when directadmin doing daily log rotation and backup, not sure why just this server has this problem.
|

10-18-2009, 06:15 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
If I/O wait is very high, it may affect the lshttpd, please try "strace -tt -T -p <pid_lshttpd>" see what is going on.
AIO in 4.1 will solve this issue.
|

10-28-2009, 11:59 PM
|
|
Member
|
|
Join Date: Apr 2007
Posts: 33
|
|
|
this problem start happening on another server, with very low i/o wait.
strace result is too long.
|

10-29-2009, 02:40 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,227
|
|
Quote:
Originally Posted by jackc
it seems litespeed got stuck when directadmin doing daily log rotation and backup, not sure why just this server has this problem.
|
it may relate to the log rotation.
for example:
Code:
/etc/logrotate.d>cat syslog
/var/log/kernel /var/log/messages {
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
for lsws log, it's not necessary to execute the postrotate command:
Code:
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
can you find out the log rotate script of DirectAdmin, and try to change it.
update: following example is better than syslogd:
Code:
/etc/logrotate.d>cat httpd
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
Last edited by NiteWave; 10-29-2009 at 03:18 AM..
|

10-29-2009, 02:44 AM
|
|
Member
|
|
Join Date: Apr 2007
Posts: 33
|
|
|
it's possible caused by high i/o when the system was cleaning /tmp
really hope the next release fix this problem because it's annoying.
|

10-29-2009, 02:51 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,227
|
|
Quote:
Originally Posted by jackc
it's possible caused by high i/o when the system was cleaning /tmp
really hope the next release fix this problem because it's annoying.
|
/tmp/lshttpd is used by lshttpd, can't be deleted when lsws is running.
|

10-29-2009, 02:54 AM
|
|
Member
|
|
Join Date: Apr 2007
Posts: 33
|
|
|
no, it was cleaning php opcode caches.
|

10-29-2009, 03:35 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,227
|
|
Quote:
Originally Posted by jackc
no, it was cleaning php opcode caches.
|
I used to use APC, and never experienced "lsws stuck" when cleaning APC cache. Maybe you can try the built-in clean-up function in the opcode cache you're using if it exists, instead of shell command rm.
|

10-29-2009, 10:10 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,590
|
|
|
If there are enough memory on your server, you can move php opcode cache to under /dev/shm.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 02:02 AM.
|
|