This directive might help:

http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidprocesslifetime

If you set that to something low, it'll kill idle processes after a
certain amount of time

also the http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidmaxprocesses

Just be careful that you have good reasons for cutting down usage. Is
it comsuming all the RAM ? If so, you might want to consider moving
some of the bits of your witty app out into shared libraries to make
each executable smaller.

Also why not just use it 'as is' using the witty built in web server
and threading. If you need to have apache on port 80, you might still
be able to just have apache proxy requests to a single witty app with
lots of threads.

Kind Regards,
Matthew Sherborne

On Wed, Mar 16, 2011 at 5:48 PM, Mohammed Rashad
<[email protected]> wrote:
>
>
> On Wed, Mar 16, 2011 at 9:18 AM, Matthew Sherborne <[email protected]>
> wrote:
>>
>> Hi Mohammed,
>>
>> This looks like a good link:
>> http://forums.techarena.in/software-development/1346754.htm
>> And the official docs are here:
>> http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
>
> I added FcgidZombieScanInterval  to fastcgi config file but still i get some
> unused processes which cannot be killed.If I kiil it it will start again in
> unused processes.
> here is the output of ps command
> $ ps -A|grep vgis.wt
>  6909 ?        00:00:00 vgis.wt
>  6920 ?        00:00:00 vgis.wt
>>
>>
>> Hope that helps.
>>
>> Kind Regards,
>> Matthew Sherborne
>>
>> On Tue, Mar 15, 2011 at 9:16 PM, Mohammed Rashad
>> <[email protected]> wrote:
>> > I am using apache2 mod_fastcgi. what to do with it to cleanup the
>> > processes
>> >
>> > On Tue, Mar 15, 2011 at 4:21 PM, Matthew Sherborne
>> > <[email protected]>
>> > wrote:
>> >>
>> >> Cleaning up  the application processes is the job of the fastcgi
>> >> spawner
>> >> script.
>> >>
>> >> Basically Wt itself will just run as an app. I doensn't know how many
>> >> brothers and sisters it has.
>> >>
>> >> Also, fastcgi can leave old processes open and re-use them later,
>> >> depending on how you have configured it.
>> >>
>> >> Are you using apache's mod_fcgi ? or lighthttpd's spawn_fcgi ?
>> >>
>> >> This shows how to limit the number of procs with spawn_fcgi ..
>> >> http://forum.slicehost.com/comments.php?DiscussionID=3671#Item_3
>> >>
>> >> This shows it with apache's mod_fcgi ..
>> >> http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiConfig
>> >>
>> >> Kind Regards,
>> >> Matthew Sherborne
>> >>
>> >>
>> >>
>> >> On Tue, Mar 15, 2011 at 7:15 PM, Mohammed Rashad
>> >> <[email protected]> wrote:
>> >> > when running Wt application as a FastCGI it creates a lot of process
>> >> > on
>> >> > system even though it is running as a single instance of application.
>> >> > Is it a BUG in my code or Wt's
>> >> >
>> >> > Why Wt doesn't cleanup unused processess
>> >> >
>> >> > --
>> >> > Thanks && Regards
>> >> > Rashad
>> >> >
>> >> >
>> >> >
>> >> > ------------------------------------------------------------------------------
>> >> > Colocation vs. Managed Hosting
>> >> > A question and answer guide to determining the best fit
>> >> > for your organization - today and in the future.
>> >> > http://p.sf.net/sfu/internap-sfd2d
>> >> > _______________________________________________
>> >> > witty-interest mailing list
>> >> > [email protected]
>> >> > https://lists.sourceforge.net/lists/listinfo/witty-interest
>> >> >
>> >> >
>> >
>> >
>> >
>> > --
>> > Thanks && Regards
>> > Rashad
>> >
>
>
>
> --
> Thanks && Regards
> Rashad
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to