[Catalyst] How to reduce the memory footprint?

Julien Sobrier julien at sobrier.net
Mon Nov 23 21:25:05 GMT 2009


Right, nprocs=3D5

I thought 100M RES/300M VIRT meanst 100M per process, and 300M shard among
perl processes.

I don't have many other processes running on the box. If I turn off
catalyst, I use less than 250MB or memory. With Catalyst, I'm over 800MB
with some occasional swapping.


On Mon, Nov 23, 2009 at 1:00 PM, Tomas Doran <bobtfish at bobtfish.net> wrote:

>
> On 23 Nov 2009, at 18:18, Julien Sobrier wrote:
>
>  Hello,
>> I have quite a small Catalyst application that runs with FastCGI +
>>  FCGI::ProcManager::MaxRequests
>>
>> I run 5 instances of FastCGI. Each instance was taking about 90MB of
>> memory. I tried to reduce the memory fooprint by reducing the number of
>> libraries I used. The memory usage is now 120MB per instance! The memory
>> increase is probably due to other changes.
>>
>
> When you say '5 instances', you mean you have nprocs =3D 5, right?
>
> This _isn't_ using 100Mb per instance - all of the application is loaded
> into memory before fork() is called, so it will mostly be shared (by copy=
 on
> write) memory.
>
> Cheers
> t0m
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20091123/18366=
014/attachment.htm


More information about the Catalyst mailing list