diff --git a/Python/etc/monit/services b/Python/etc/monit/services index 867af8d..892d82a 100644 --- a/Python/etc/monit/services +++ b/Python/etc/monit/services @@ -46,7 +46,7 @@ service("apache", has("intranet-server") and "if failed host intranet.crans.org port 443 type tcpssl protocol http timeout 30 seconds then restart", "if cpu is greater than 60% for 2 cycles then alert", "if cpu > 80% for 5 cycles then restart", - "if totalmem > 500.0 MB for 5 cycles then restart", + has("users") and "if totalmem > 4 GB for 5 cycles then restart" or "if totalmem > 500.0 MB for 5 cycles then restart", "if children > 250 then restart", "if loadavg(5min) greater than 10 for 8 cycles then restart", ],