> I recently moved one of my older Rails apps on a FreeBSD 5.5 box to
mongrel
> as well. Everything runs quickly and wonderfully - when it's running! My
> problem is that over time each one of my 5 mongrel processes die.
There's
> nothing in the mongrel.log telling me why they die. They just die.
You'll have to be more specific than that. "Die" could mean they crash
and the process goes away, or that the process stops responding to
requests. For the first kind you'll need to turn on core dumps and do
a gdb inspect after. With the second one you've gotta list out the
various gems you're using and when you find a dead mongrel then attach
to it with strace or gdb to find out where it's blocked.
Die meaning, dead...process is crashed and gone. How do I turn on core
dumps? This a mongrel switch?
My question then is two-fold
>
> 1: Why are my mongrel processes dying? Where's the log information?
> 2: Can these guys be automatically restarted somehow???
Yes, monit works great, other folks like runit. There's a bunch of
tutorials for both.
Got a good starting point (besides google) for running either with a
mongrel_cluster?
Thanks for the quick response.
--------------------
seth at subimage interactive
-----
http://www.subimage.com
http://sublog.subimage.com
-----
http://www.getcashboard.com
http://dev.subimage.com/projects/substruct
_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users