# Big fcgi problem

**URL:** <https://www.ruby-forum.com/t/big-fcgi-problem/93722>\
**Category:** Rails\
**Created:** [April 7, 2006, 3:00pm UTC](https://www.ruby-forum.com/t/big-fcgi-problem/93722 "2006-04-07T15:00:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [April 7, 2006, 3:00pm UTC](https://www.ruby-forum.com/t/big-fcgi-problem/93722/1 "2006-04-07T15:00:55Z")

</div>

Hi all  
My lighty spawn 10 fcgi process, some times, one or two of them will  
eat all most 90% CPU, when i kill them, everything is ok.  
I want a script to auto kill these Big fcgi,  
could you give me some advise?  
regards

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [April 7, 2006, 3:07pm UTC](https://www.ruby-forum.com/t/big-fcgi-problem/93722/2 "2006-04-07T15:07:35Z")

</div>

joe wrote:

> Hi all  
> My lighty spawn 10 fcgi process, some times, one or two of them will  
> eat all most 90% CPU, when i kill them, everything is ok.  
> I want a script to auto kill these Big fcgi,  
> What the hell is it doing spawning 10 processes? Can you post your  
> lighttpd.conf?

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [April 7, 2006, 4:05pm UTC](https://www.ruby-forum.com/t/big-fcgi-problem/93722/3 "2006-04-07T16:05:52Z")

</div>

…  
fastcgi.server = ( “.fcgi” =\>  
( “localhost” =\>  
(  
“socket” =\> “/home/joe/sites/app/temp/lighttpd-fcgi.socket”,  
“bin-path” =\> “/home/joe/sites/app/public/dispatch.fcgi”,  
“bin-environment” =\> ( “RAILS\_ENV” =\> “production” ),  
“min-procs” =\> 1,  
“max-procs” =\> 2,  
“idle-timeout” =\> 60  
)  
)  
)  
…

Alex Y. wrote:

> joe wrote:
> 
> > Hi all  
> > My lighty spawn 10 fcgi process, some times, one or two of them will  
> > eat all most 90% CPU, when i kill them, everything is ok.  
> > I want a script to auto kill these Big fcgi,  
> > What the hell is it doing spawning 10 processes? Can you post your  
> > lighttpd.conf?

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [April 7, 2006, 8:16pm UTC](https://www.ruby-forum.com/t/big-fcgi-problem/93722/4 "2006-04-07T20:16:50Z")

</div>

any advise?  
regards

joe wrote:

> …  
> fastcgi.server = ( “.fcgi” =\>  
> ( “localhost” =\>  
> (  
> “socket” =\> “/home/joe/sites/app/temp/lighttpd-fcgi.socket”,  
> “bin-path” =\> “/home/joe/sites/app/public/dispatch.fcgi”,  
> “bin-environment” =\> ( “RAILS\_ENV” =\> “production” ),  
> “min-procs” =\> 1,  
> “max-procs” =\> 2,  
> “idle-timeout” =\> 60  
> )  
> )  
> )  
> …
> 
> Alex Y. wrote:
> 
> > joe wrote:
> > 
> > > Hi all  
> > > My lighty spawn 10 fcgi process, some times, one or two of them will  
> > > eat all most 90% CPU, when i kill them, everything is ok.  
> > > I want a script to auto kill these Big fcgi,  
> > > What the hell is it doing spawning 10 processes? Can you post your  
> > > lighttpd.conf?

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [April 7, 2006, 10:10pm UTC](https://www.ruby-forum.com/t/big-fcgi-problem/93722/5 "2006-04-07T22:10:04Z")

</div>

joe wrote:

> any advise?  
> regards  
> Not from that on its own… I can’t see how that setup would spawn  
> extra processes unless the originals were dying somehow.

–  
Alex
