# Monit apache2 and fastcgi

**URL:** <https://www.ruby-forum.com/t/monit-apache2-and-fastcgi/104149>\
**Category:** Rails\
**Created:** [May 14, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/monit-apache2-and-fastcgi/104149 "2007-05-14T20:04:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henrik\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f9b8f/32.png) [@Henrik\_O](https://www.ruby-forum.com/u/Henrik_O)\
**Post date:** [May 14, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/monit-apache2-and-fastcgi/104149/1 "2007-05-14T20:04:43Z")

</div>

I’ve installed monit to stop my server hanging (don’t know why, it’s  
an dual-core processor and 2gb memory, wich should be plenty for our  
needs).

I should like to also monitor the fastcgi processes, but I can’t find  
any pidfile. How can I monitor that?

- Henrik

---

<div class="post-metadata">

**Author:** ![Henrik\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f9b8f/32.png) [@Henrik\_O](https://www.ruby-forum.com/u/Henrik_O)\
**Post date:** [May 14, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/monit-apache2-and-fastcgi/104149/2 "2007-05-14T23:41:24Z")

</div>

On 14 May 2007, at 20:01, Henrik O. wrote:

> I’ve installed monit to stop my server hanging (don’t know why, it’s  
> an dual-core processor and 2gb memory, wich should be plenty for our  
> needs).

fcgi could well be your problem here if you’re using Apache, it gave  
me nothing but stale processes. I then moved to Lighttpd + FCGI for a  
while and now our servers use Apache 2.0 + Pound + Mongrel cluster or  
Apache 2.2 + Mongrel cluster and it’s never been more stable than  
this (although memory use is a bit higher, but with 2 GB of memory  
this clearly isn’t an issue).

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![Henrik\_O](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f9b8f/32.png) [@Henrik\_O](https://www.ruby-forum.com/u/Henrik_O)\
**Post date:** [May 15, 2007, 12:49pm UTC](https://www.ruby-forum.com/t/monit-apache2-and-fastcgi/104149/3 "2007-05-15T12:49:39Z")

</div>

If you’re using spawn-fcgi, look at the “-P” flag mentioned in this  
ticket…

[http://trac.lighttpd.net/trac/ticket/137](http://trac.lighttpd.net/trac/ticket/137)

Wes Ratcliff

On May 14, 1:01 pm, Henrik O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
