Litespeed restarts multiple times a day

skooboy

Active Member
#21
This is all from February:

/usr/local/lsws/logs/lsrestart.log
Sun Feb 1 03:22:03 EST 2015
restart, LSWS running: 1
Sun Feb 1 23:13:19 EST 2015
restart, LSWS running: 1
Mon Feb 2 01:02:07 EST 2015
restart, LSWS running: 1
Mon Feb 2 02:25:53 EST 2015
restart, LSWS running: 1
Mon Feb 2 23:24:26 EST 2015
restart, LSWS running: 1
Tue Feb 3 23:26:24 EST 2015
restart, LSWS running: 1
Wed Feb 4 23:28:23 EST 2015
restart, LSWS running: 1
Thu Feb 5 01:17:10 EST 2015
restart, LSWS running: 1
Thu Feb 5 02:40:57 EST 2015
restart, LSWS running: 1
Thu Feb 5 03:28:33 EST 2015
restart, LSWS running: 1
Thu Feb 5 03:29:04 EST 2015
restart, LSWS running: 1
Thu Feb 5 23:38:04 EST 2015
restart, LSWS running: 1

/usr/local/cpanel/logs/safeapacherestart_log
[2015-02-01 23:13:22 -0500] info [safeapacherestart] Restart elapsed seconds: 4
[2015-02-02 01:02:10 -0500] info [safeapacherestart] Restart elapsed seconds: 3
[2015-02-02 02:25:56 -0500] info [safeapacherestart] Restart elapsed seconds: 3
[2015-02-02 23:24:29 -0500] info [safeapacherestart] Restart elapsed seconds: 4
[2015-02-03 23:26:27 -0500] info [safeapacherestart] Restart elapsed seconds: 3
[2015-02-04 23:28:26 -0500] info [safeapacherestart] Restart elapsed seconds: 4
[2015-02-05 01:17:13 -0500] info [safeapacherestart] Restart elapsed seconds: 3
[2015-02-05 02:41:00 -0500] info [safeapacherestart] Restart elapsed seconds: 3
[2015-02-05 03:28:36 -0500] info [safeapacherestart] Restart elapsed seconds: 3
[2015-02-05 23:38:07 -0500] info [safeapacherestart] Restart elapsed seconds: 3

Mostly at least once a day. The days with multiple restarts were when I changed Apache config. I tried disabling mod_security and xcache to no avail.
 

tina

Well-Known Member
#22
We experienced this problem for many days (from Christmas till Feb 2nd) with one of our servers.

After we saw this thread a few days ago, we performed the following, and it seems to have fixed the issue.

In WHM:

1. Apache Configuration > Piped Log Configuration: ON

2. Apache Configuration > Log Rotation: ON (Everything!)

3. Tweak Settings > Log Rotation Threshold: 300 MB (default)

In LiteSpeed admin:

1. Configuration > Server > Log > Server Log > Rolling Size: 0

Via SSH, run:

/usr/local/lsws/admin/misc/lsup.sh -f -v 4.2.21

After that, no more problems. Of course, it is possible that performing only one of the items above will fix the issue. But try them all (like what we did) and see what happens.
 
Top