# Mongrel\_cluster : up to 500 MiB memory

**URL:** <https://www.ruby-forum.com/t/mongrel-cluster-up-to-500-mib-memory/155301>\
**Category:** Mongrel\
**Created:** [December 10, 2008, 11:36am UTC](https://www.ruby-forum.com/t/mongrel-cluster-up-to-500-mib-memory/155301 "2008-12-10T11:36:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akyrho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4491bb/32.png) [@akyrho](https://www.ruby-forum.com/u/akyrho)\
**Post date:** [December 10, 2008, 11:36am UTC](https://www.ruby-forum.com/t/mongrel-cluster-up-to-500-mib-memory/155301/1 "2008-12-10T11:36:43Z")

</div>

Hi everyone,

I’ve got some trouble with my RoR application running with apache  
(2.2.9) and mongrel (1.1.5).

The site i manage has about 20’000 visits a day, and we run 14 mongrel  
instances switched with mongrel\_cluster (1.0.5). The fact is, sometime,  
half of my mongrel instances are raising something like 500MiB memory  
and don’t seem to work anymore.

The server itself has 8 CPU’s and 8Go of RAM.

I read different how-to’s about mongrel and mongrel\_rails but most of  
them are just talking about how to start with mongrel.

I would like to know if there is a way to monitor mongrel instance  
and/or how to improve my configuration?

If anyone has a suggestion, it’ll be very helpfull.

---

<div class="post-metadata">

**Author:** ![akyrho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4491bb/32.png) [@akyrho](https://www.ruby-forum.com/u/akyrho)\
**Post date:** [December 11, 2008, 5:36am UTC](https://www.ruby-forum.com/t/mongrel-cluster-up-to-500-mib-memory/155301/2 "2008-12-11T05:36:12Z")

</div>

You didn’t specify exactly what you want to monitor but a lot of  
people use Monit to monitor their mongrel clusters:  
[Easy, proactive monitoring of processes, programs, files, directories, filesystems and hosts | Monit](http://mmonit.com/monit/)

I have also heard people talk about using ‘god’

[http://weblog.redlinesoftware.com/2008/4/4/using-god-to-monitor-mongrels](http://weblog.redlinesoftware.com/2008/4/4/using-god-to-monitor-mongrels)

Quoting C??d B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![akyrho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4491bb/32.png) [@akyrho](https://www.ruby-forum.com/u/akyrho)\
**Post date:** [December 31, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-up-to-500-mib-memory/155301/3 "2008-12-31T15:32:33Z")

</div>

CÃ©d B. wrote:

> Hi everyone,
> 
> I’ve got some trouble with my RoR application running with apache  
> (2.2.9) and mongrel (1.1.5).
> 
> The site i manage has about 20’000 visits a day, and we run 14 mongrel  
> instances switched with mongrel\_cluster (1.0.5). The fact is, sometime,  
> half of my mongrel instances are raising something like 500MiB memory  
> and don’t seem to work anymore.

There are some patches on ruby-core that discuss a sweller GC maybe that  
would help.  
[http://www.ruby-forum.com/topic/170608#new](http://www.ruby-forum.com/topic/170608#new)
