Increased puppet-check memory limit to 160 MB
This commit is contained in:
parent
a98f085ab7
commit
bd10fa34e6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue