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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LiteSpeed Cache > [solved] Litespeed webserver stops working while cleancache script is runnning

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2012, 06:38 AM
gnu.smtp gnu.smtp is offline
Member
 
Join Date: Apr 2012
Posts: 20
Default [solved] Litespeed webserver stops working while cleancache script is runnning

Hello guys,

We have a number of server with litespeed running and most of them is having issues with the cleancache script running. While running these we are not even able to do any thing on litespeed admin, not able to switch to Apache nor even able to get the sites working while running these scripts.

Any body facing the same issue any suggestion or fix for this.

4346 ? DN 0:00 find /tmp/lshttpd/swap/e -type f -mtime +1 -delete
14347 ? DN 0:00 find /tmp/lshttpd/swap/e -type f -mtime +1 -delete

We are not even able to kill these process and only thing we can do is to reboot the server to get the apache/litespeed working.

Any idea why those are not able to get killed ? and what can be done to get this fixed for ever

Last edited by NiteWave; 06-30-2012 at 10:01 PM..
Reply With Quote
  #2  
Old 04-24-2012, 10:41 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by gnu.smtp View Post
...
4346 ? DN 0:00 find /tmp/lshttpd/swap/e -type f -mtime +1 -delete
14347 ? DN 0:00 find /tmp/lshttpd/swap/e -type f -mtime +1 -delete

We are not even able to kill these process and only thing we can do is to reboot the server to get the apache/litespeed working.

Any idea why those are not able to get killed ? and what can be done to get this fixed for ever
/tmp/lshttpd/swap is used by LSWS swap. you need point your cache storage to a different place (out side of /tmp/lshttpd/swap)
Reply With Quote
  #3  
Old 05-05-2012, 02:26 AM
gnu.smtp gnu.smtp is offline
Member
 
Join Date: Apr 2012
Posts: 20
Hello,

Thanks you,

if we move this to home folder, will that be albe to get deletted if needed ? Also Where to get this done ? from litespeed admin panel ?
Reply With Quote
  #4  
Old 05-18-2012, 02:45 PM
Wirta Wirta is offline
New Member
 
Join Date: May 2012
Posts: 1
Default Re:

It's interesting to note that litespeed is having issues with cleancache script. I haven't tried myself but going to give it a try and see how I can help you. I'm not an expert however I will try my best. Good luck and let me know if you're able to solve the problem.
Reply With Quote
  #5  
Old 05-18-2012, 02:50 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by gnu.smtp View Post
Hello,

Thanks you,

if we move this to home folder, will that be albe to get deletted if needed ? Also Where to get this done ? from litespeed admin panel ?
Yes, you can point your cache storage path to somewhere under home folder such as /path/to/home/dir/diskcache. you need to manually create the folder first and point that in LSWS admin console (Configuration => Server => Cache)
Reply With Quote
  #6  
Old 05-30-2012, 06:33 AM
gnu.smtp gnu.smtp is offline
Member
 
Join Date: Apr 2012
Posts: 20
Hello,

We have changed the cache directory and swap directory to /home partition.

But this has not helped with the issue. Also it is not possible to terminate them, once they start running.

We cannot afford this type of frequent downtimes with a paid solution like litespeed.
Reply With Quote
  #7  
Old 05-30-2012, 11:45 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
You need to leave swap directory in /tmp/lshttpd unchanged and ONLY change diskcache directory to a different place (e.g. /home/diskcache). The cleancache script should only purge files under cache directory NOT others (i.e. swap, etc). Your problem is cleancache script removes files under swap as you mixed cache and swap together causing lsws inaccessible.

Last edited by webizen; 05-30-2012 at 11:50 AM..
Reply With Quote
  #8  
Old 05-30-2012, 10:22 PM
gnu.smtp gnu.smtp is offline
Member
 
Join Date: Apr 2012
Posts: 20
Hello,

We had swap set to default, ad made the change when the issue persistsed even after changing cache to /home.

The current setup is as follows.

swap directory : /tmp/lshttpd/

cache directory : /home/litespeed/cache

Caching is disabled on the server. We are monitoring with this setup and will keep you posted.
Reply With Quote
  #9  
Old 05-30-2012, 10:52 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,223
Quote:
swap directory : /tmp/lshttpd/
the default swap is /tmp/lshttpd/swap

is your /tmp NFS ? it may be very slow per some of our past experience.

if so, better to use local disk as /tmp

also, please run iostat to check if some of hard disks have high i/o wait issue.
Reply With Quote
  #10  
Old 05-31-2012, 12:51 AM
gnu.smtp gnu.smtp is offline
Member
 
Join Date: Apr 2012
Posts: 20
Quote:
Originally Posted by NiteWave View Post
the default swap is /tmp/lshttpd/swap
I have changed this to /tmp/lshttpd/swap. But we have problems with cron/script clearing swap directory also.

Quote:
Originally Posted by NiteWave View Post
is your /tmp NFS ? it may be very slow per some of our past experience.
if so, better to use local disk as /tmp
all drives on the server are local.

Quote:
Originally Posted by NiteWave View Post
also, please run iostat to check if some of hard disks have high i/o wait issue.
IO wait goes a bit high when the script/cron runs. But this affects only httpd service. Also we are unable to switch to apache when the issue occurs.

Thank you.
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 05:08 AM.



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