From 6aaeb4fa592ac8c3a1473217935af678d1842ae2 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Mon, 29 Sep 2014 12:32:28 +0800 Subject: [PATCH] Halve the number of munin-html jobs, to prevent OOM errors due to fork count. Should prevent mails like these: Cron nice /usr/share/munin/munin-html Killed Cron nice /usr/share/munin/munin-html fork failed: Cannot allocate memory at /usr/share/perl5/Munin/Master/HTMLOld.pm line 776. --- modules/munin/templates/munin.conf.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/munin/templates/munin.conf.erb b/modules/munin/templates/munin.conf.erb index 80d0c7e9f..21997e475 100644 --- a/modules/munin/templates/munin.conf.erb +++ b/modules/munin/templates/munin.conf.erb @@ -10,4 +10,7 @@ rrdcached_socket /var/run/munin/rrdcached.sock/sock #html_strategy cgi graph_strategy cgi +# Reduce memory usage spikes and OOM mails +max_html_jobs 3 + includedir /etc/munin/munin-conf.d -- 2.20.1