How to auto restart litespeed if failed?

#1
How to auto restart litespeed if failed? the auto-restart on server configuration doesnt seem to work, my site has went down twice and it never came back up with that auto-restart thingy.

i had to login to ssh and manually type restart in order to come back up
 
Last edited:
#3
no lshttpd are running while it crashed, auto restart is on yes.

i cant even get into the console neither.

it crashes when it runs out of ram and it wouldnt come back up or auto-restart
 

mistwang

LiteSpeed Staff
#4
Which process used up the memory? lshttpd? PHP?
lshttpd will not able to start new process if memory is used up, have to release the memory first.
 
#7
thanks, i've done what you adviced me.

Offtopic question:

Is there a way to limit bandwidth usage on a virtual host?

I meant like how hosting companies limit a user's monthly bandwidth limit to like 100gb, is there a way litespeed can do it?
 

mistwang

LiteSpeed Staff
#8
Hosting control panels usually analyze the access log or dedicate traffic log and limit the usage. You can do the same with LiteSpeed.

LiteSpeed internally will not provide this feature.
 

Xorlev

Well-Known Member
#9
As far as I know, not directly. But you can use the bytelogging ability of Litespeed and have an automated process tally the bandwidth every so often and automatically shut down a site using the various methods at your disposal, namely rewrite rules.
 
#10
I'm using the litespeed 4.0.13 enterprice version. i got the same issue the auto-restart on server configuration doesnt seem to work. the site was went down 2-3 times per day, i have to ssh manually restart the litespeed.

my case is different, there are 2 lshttpd was running with 100% CPU usage, my linux box still have ard 1GB ++ free memory available when the litespeed went down.

btw i have enable both Auto Restart and Auto Fix 503 Error.
 

mistwang

LiteSpeed Staff
#11
If it happen repeatedly, please contact bug@litespeedtech.... for instruction on using debug build of LSWS and "strace", "gdb" to help identifying the issue.
 
Top