# Mongrel Randomly getting TERM

**URL:** <https://www.ruby-forum.com/t/mongrel-randomly-getting-term/96845>\
**Category:** Rails\
**Created:** [July 2, 2006, 3:55pm UTC](https://www.ruby-forum.com/t/mongrel-randomly-getting-term/96845 "2006-07-02T15:55:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hampton](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8edcca/32.png) [@Hampton](https://www.ruby-forum.com/u/Hampton)\
**Post date:** [July 2, 2006, 3:55pm UTC](https://www.ruby-forum.com/t/mongrel-randomly-getting-term/96845/1 "2006-07-02T15:55:36Z")

</div>

Has anyone ever experienced this problem? Every 12-24 hours _one of_ my  
mongrel processes gets a TERM signal and quits.

There is all I get in my mongrel log…

\*\* Mongrel available at 0.0.0.0:8003  
\*\* TERM signal received.

And my rails-log is silent too. No request starting. Just the end of a  
successful request and then nothingness.

The other processes are doing just fine and stay up for good. Anyone  
know  
what’s going on here?

Oh yeah, and its lighty-proxy + mongrel on Ubuntu.

-hampton.

---

<div class="post-metadata">

**Author:** ![Hampton](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8edcca/32.png) [@Hampton](https://www.ruby-forum.com/u/Hampton)\
**Post date:** [July 2, 2006, 9:16pm UTC](https://www.ruby-forum.com/t/mongrel-randomly-getting-term/96845/2 "2006-07-02T21:16:38Z")

</div>

On Sun, 2006-07-02 at 09:55 -0400, Hampton wrote:

> The other processes are doing just fine and stay up for good. Anyone  
> know what’s going on here?
> 
> Oh yeah, and its lighty-proxy + mongrel on Ubuntu.

A few people have reported this, and the only time I’ve seen it was when  
I ran under a Xen VPS and there wasn’t enough ram for the process, so  
Linux went in and started killing processes at random. I believe it  
does this if the CPU or memory gets dominated by a process, but I’m not  
sure how to turn it off.

–  
Zed A. Shaw

> **[Zed A. shaw](https://zedshaw.com/)**
>
> Personal essays and writings by Zed A. Shaw.

[http://mongrel.rubyforge.org/](http://mongrel.rubyforge.org/)  
[http://www.railsmachine.com/](http://www.railsmachine.com/) – Need Mongrel support?

---

<div class="post-metadata">

**Author:** ![Hampton](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8edcca/32.png) [@Hampton](https://www.ruby-forum.com/u/Hampton)\
**Post date:** [July 2, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/mongrel-randomly-getting-term/96845/3 "2006-07-02T21:29:14Z")

</div>

> A few people have reported this, and the only time I’ve seen it was when  
> I ran under a Xen VPS and there wasn’t enough ram for the process, so  
> Linux went in and started killing processes at random. I believe it  
> does this if the CPU or memory gets dominated by a process, but I’m not  
> sure how to turn it off.

it’s probably something with ulimit or rlimit. by default, on the two  
distro ive tried in the past 5 years, there are no limits, which means a  
script can get in an infinite loop, chew up all RAM, chew up all swap,  
then make the system entirely unresponsive with nonstop disk-grinding  
until it is reset…

---

<div class="post-metadata">

**Author:** ![Hampton](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8edcca/32.png) [@Hampton](https://www.ruby-forum.com/u/Hampton)\
**Post date:** [July 2, 2006, 4:41pm UTC](https://www.ruby-forum.com/t/mongrel-randomly-getting-term/96845/4 "2006-07-02T16:41:32Z")

</div>

Hi,

I’ve not been getting a TERM signal, but I have been getting a random  
HUP signal. It is still happening and I have no idea why. There’s a  
thread from mid-June on the mongrel mailing list.

Cheers,  
Bob

On Jul 2, 2006, at 9:55 AM, Hampton wrote:

> The other processes are doing just fine and stay up for good.  
> Anyone know what’s going on here?
> 
> Oh yeah, and its lighty-proxy + mongrel on Ubuntu.
> 
> -hampton.
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

* * *

Bob H. – blogs at \<[http://www.recursive.ca/](http://www.recursive.ca/)  
hutch/\>  
Recursive Design Inc. – [http://www.recursive.ca/](http://www.recursive.ca/)  
Raconteur – [http://www.raconteur.info/](http://www.raconteur.info/)  
xampl for Ruby – [http://rubyforge.org/projects/xampl/](http://rubyforge.org/projects/xampl/)
