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
  #21  
Old 06-15-2012, 07:50 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
the main problem is i/o. average iowait is 22.05, this is very high.
Code:
~>date;uptime;iostat
Fri Jun 15 22:47:01 EDT 2012
 22:47:01 up 24 days, 15:32,  1 user,  load average: 1.26, 0.97, 0.87
Linux 2.6.18-338.12.1.el5.lve0.8.34ent (xxxx)    06/15/12

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          12.92    0.29    4.64   22.05    0.00   60.09

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
sda             247.39       867.95        27.06 1848352732   57620252
sda1              0.00         0.05         0.01     106678      11988
sda2             37.17       136.88       527.71  291502237 1123779840
sda3              9.93       171.04       105.91  364241245  225538992
sda4              0.00         0.00         0.00          6          0
sda5              1.47        21.51        20.47   45811450   43586016
sda6              0.00         0.00         0.00       2351       1688
sda7             10.13        10.10       530.31   21511492 1129316048
sda8            188.68       528.36       859.50 1125171313 1830352976

Last edited by NiteWave; 06-15-2012 at 07:55 PM..
Reply With Quote
  #22  
Old 06-16-2012, 04:56 AM
gnu.smtp gnu.smtp is offline
Member
 
Join Date: Apr 2012
Posts: 20
Hello,

We have this issue only when the script runs. Does this script need very high number of IO opearations?

Also what is a possible solution to this..Does increasing the frequency of running the script help?
Reply With Quote
  #23  
Old 06-16-2012, 05:26 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
please try:

#cd /usr/local/lsws/admin/misc/
#cp -a cleancache.sh cleancache_000.sh

then edit cleancache.sh, make it do nothing.

then you create a cronjob, to run cleancache_000.sh, at an interval you wish( once per hour or once per day etc), or do not run it at all.

so the impact from the clean script will be 0. monitor for one or 2 days, see if your server are all ok since.
Reply With Quote
  #24  
Old 06-30-2012, 08:51 AM
gnu.smtp gnu.smtp is offline
Member
 
Join Date: Apr 2012
Posts: 20
Hello,

We have tried the same and seems to be much better.

But the question is why the original script is having issue for this server only. We have more than 10 servers running on litespeed and none of those server is having such issues.

Really weird Hope you can make some thing to make the script running more efficiently in the future upgrades.
Reply With Quote
  #25  
Old 06-30-2012, 08:55 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
glad to hear the progress.

I think it may only happen on high iowait server, which already been a big problem.

to improve at the lsws side, maybe you can put
`date` >> /root/cleanup.log

at the beginning of cleancache.sh, to see if it's run too frequently.
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 09:11 AM.



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