[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Monit memory usage

From: Yogi
Subject: Monit memory usage
Date: Sun, 25 Mar 2007 16:17:37 -0700


Monit seems to be using up increasing amounts of memory over a period
of time. I have it setup to monitor 15 Mongrel processes running
Rails, and I noticed today that monit's memory usage was 3.5+ GB (it
has been running for about a week).

After restarting monit, it seems like memory goes up by 500 Kb each
cycle (10 sec). Is this expected/unusual or could my configuration be
wrong? Any help appreciated.

I'm running Monit 4.9 on Mac OS X Server 10.8.4. Here are my config files:

1) /etc/monitrc:

set daemon 10
set mailserver localhost
set mail-format { from: address@hidden }
set alert address@hidden
set logfile syslog facility log_daemon

set httpd port 2812 and
  use address localhost  # only accept connection from localhost
  allow localhost        # allow localhost to connect to the server and

include "/etc/web/conf/monit/*.monitrc.include"

2) /etc/web/conf/monit/beta.monitrc.include:

#----- mongrel-beta:8200 -----
check process mongrel-beta-8200 with pidfile
  start program = "/opt/local/bin/mongrel_rails start -d -e beta -p 8200"
  stop program  = "/opt/local/bin/mongrel_rails stop  -p 8200"

  if totalmem is greater than 75.0 MB for 5 cycles then restart
# eating up memory?
  if cpu is greater than 50% for 2 cycles then alert
# send an email to admin
  if cpu is greater than 80% for 3 cycles then restart
# hung process?
  if loadavg(5min) greater than 10 for 8 cycles then restart
# bad, bad, bad
  if 3 restarts within 5 cycles then timeout
# something is wrong, call the sys-admin

  if failed url
# check for response
      with timeout 10 seconds
      then restart

  group mongrel-beta

... 14 more mongrel-beta process entries like above

- Yogi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]