LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > litespeed stuck

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2009, 01:08 AM
jackc jackc is offline
Member
 
Join Date: Apr 2007
Posts: 33
Default 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...
Reply With Quote
  #2  
Old 10-18-2009, 05:25 PM
jackc jackc is offline
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.
Reply With Quote
  #3  
Old 10-18-2009, 06:15 PM
mistwang mistwang is offline
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.
Reply With Quote
  #4  
Old 10-28-2009, 11:59 PM
jackc jackc is offline
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.
Reply With Quote
  #5  
Old 10-29-2009, 02:40 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
Quote:
Originally Posted by jackc View Post
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..
Reply With Quote
  #6  
Old 10-29-2009, 02:44 AM
jackc jackc is offline
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.
Reply With Quote
  #7  
Old 10-29-2009, 02:51 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
Quote:
Originally Posted by jackc View Post
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.
Reply With Quote
  #8  
Old 10-29-2009, 02:54 AM
jackc jackc is offline
Member
 
Join Date: Apr 2007
Posts: 33
no, it was cleaning php opcode caches.
Reply With Quote
  #9  
Old 10-29-2009, 03:35 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
Quote:
Originally Posted by jackc View Post
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.
Reply With Quote
  #10  
Old 10-29-2009, 10:10 AM
mistwang mistwang is offline
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.