From bd10fa34e6a98b0b8719a5c8c8099e5715859cdc Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Thu, 12 Jan 2012 22:55:22 +0200 Subject: [PATCH] Increased puppet-check memory limit to 160 MB --- puppet/files/puppet-check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/puppet/files/puppet-check b/puppet/files/puppet-check index 980cfb7..9b63cd2 100755 --- a/puppet/files/puppet-check +++ b/puppet/files/puppet-check @@ -33,9 +33,9 @@ end begin Process.kill(0, pid) - # check memory usage and restart if over 256M + # check memory usage and restart if over 160M rss = `ps -o rss -p '#{pid}'`.to_a.last.to_i / 1024 - if rss > 128 + if rss > 160 err = sprintf("puppetd memory usage too high (%d MB), on host '%s' sending HUP\n", rss, Socket.gethostname) Syslog.warning err