[rosedu-admins] Probleme Redmine (thrice)
Mircea Bardac
cs at mircea.bardac.net
Sun Jan 23 21:20:52 EET 2011
Salut,
On Jan 23, 2011, at 6:45 PM, Razvan Deaconescu wrote:
> Mircea, nu exista un script care repornea seriviciul (Apache) dacă
> acest consuma prea multă memorie?
Pe elf.cs.pub.ro folosim monit.
Asta este configuratia serviciului pentru apache2 (cred că limitele au fost urcate la 1GB după ce vmchecker-ul a luat-o razna - that also needs to be checked, btw):
"""
check process apache2 with pidfile /var/run/apache2.pid·
start program = "/etc/init.d/apache2 start"
stop program = "/etc/init.d/apache2 stop"
if cpu > 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then restart
if totalmem > 1050.0 MB for 5 cycles then restart
if children > 150 then restart
group server
"""
Mircea
--
MSc, PhD student, Teaching Assistant
University Politehnica of Bucharest, Computer Science Department
More information about the rosedu-admins
mailing list