mod_fcgid - how to limit max processes per fcgi image

2009-10-01 Thread Barry Scott

With  mod_fastcgi I can to the following:

FastCgiServer /usr/local/onelan/html/dsm.fcgi -processes 1 -idle-timeout 200
FastCgiServer /usr/local/onelan/html/dsmxml.fcgi -processes 1 
-idle-timeout 30


Which creates two servers running waiting for request with only once 
instance of each.


I cannot see how to achieve the same result with mod_fcgid.

The promising MaxProcessCount seems to apply to all processes
which is not what I want. I assume that if I set MaxProcessCount
to 2 then I might get two dsm.fcgi processor of one of each.

Is there a way to limit max processes per image?

Barry



Re: mod_fcgid - how to limit max processes per fcgi image

2009-10-01 Thread Jeff Trawick
On Thu, Oct 1, 2009 at 11:28 AM, Barry Scott barry.sc...@onelan.co.ukwrote:

 With  mod_fastcgi I can to the following:

 FastCgiServer /usr/local/onelan/html/dsm.fcgi -processes 1 -idle-timeout
 200
 FastCgiServer /usr/local/onelan/html/dsmxml.fcgi -processes 1 -idle-timeout
 30

 Which creates two servers running waiting for request with only once
 instance of each.

 I cannot see how to achieve the same result with mod_fcgid.

 The promising MaxProcessCount seems to apply to all processes
 which is not what I want. I assume that if I set MaxProcessCount
 to 2 then I might get two dsm.fcgi processor of one of each.

 Is there a way to limit max processes per image?


close (and probably close enough)

See
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgiddefaultmaxclassprocesscount


Re: mod_fcgid - how to limit max processes per fcgi image

2009-10-01 Thread Barry Scott

Jeff Trawick wrote:
On Thu, Oct 1, 2009 at 11:28 AM, Barry Scott barry.sc...@onelan.co.uk 
mailto:barry.sc...@onelan.co.uk wrote:


With  mod_fastcgi I can to the following:

FastCgiServer /usr/local/onelan/html/dsm.fcgi -processes 1
-idle-timeout 200
FastCgiServer /usr/local/onelan/html/dsmxml.fcgi -processes 1
-idle-timeout 30

Which creates two servers running waiting for request with only
once instance of each.

I cannot see how to achieve the same result with mod_fcgid.

The promising MaxProcessCount seems to apply to all processes
which is not what I want. I assume that if I set MaxProcessCount
to 2 then I might get two dsm.fcgi processor of one of each.

Is there a way to limit max processes per image?


close (and probably close enough)

See  
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgiddefaultmaxclassprocesscount




That works for me. Thanks.

I must say that I prefer the flexibility of mod_fastcgi in setting up 
the process limits / image.


Barry