posted to this is not a weblog
on dec 7th, 2008 at 14:52

tagged nerd, openbsd, rails, ruby
and commented on once

share this page

i'm using god on openbsd (kqueue) to monitor a dozen mongrel processes for various rails sites on one of my servers. i started using it just to have a simple way of restarting each collection of processes when i need to load new code or just start them when the machine boots up. eventually, i added cpu and memory checks to kill processes that go stray for too long, which doesn't happen that often.

however, now the task that constantly uses too much memory and cpu is... the very task that is supposed to be watching for tasks using too much memory and cpu.

USER       PID %CPU %MEM   VSZ   RSS TT  STAT  STARTED       TIME COMMAND
root     29381 10.7  4.2 95096 87316 p0- R     29Nov08  789:23.83 /usr/local/bin/ruby /usr/local/bin/god -c /etc/god/dualism.god --no-syslog

i think i need a god god now, or my god config needs a rule to watch itself and then commit suicide when it starts using more resources than all of the tasks it's watching. stupid.

one comment

Mike (authentic) on september 23rd, 2009 at 19:24:15:

You should thank God that your not on the "Winders" (pronounced with a Texas accent" platform!


leave your comment or contact me

if you want to be able to mark your comment as authentic or delete it later, include your e-mail address (it won't be shown on the site). you'll be e-mailed instructions with a copy of your comment.

basic html allowed; be nice
required


optional, gravatar-ized


optional