How to auto restart litespeed if failed?

Discussion in 'Install/Configuration' started by herotm, Jan 20, 2008.

  1. herotm

    herotm New Member

    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: Jan 20, 2008
  2. mistwang

    mistwang LiteSpeed Staff

    That's pretty strange, is there any lshttpd process running when you restarted it manually?

    Have you set Auto Restart to yes?
  3. herotm

    herotm New Member

    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
  4. mistwang

    mistwang LiteSpeed Staff

    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.
  5. herotm

    herotm New Member

    php is, is there an automated process to do that?
  6. mistwang

    mistwang LiteSpeed Staff

    You should limit the memory PHP can use, reduce number of PHP processes, prevent it from using all your memory.
  7. herotm

    herotm New Member

    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?
  8. mistwang

    mistwang LiteSpeed Staff

    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.
  9. Xorlev

    Xorlev New Member

    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. 1mb

    1mb New Member

    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.
  11. mistwang

    mistwang LiteSpeed Staff

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

Share This Page