[Catalyst] How to reduce the memory footprint?

Tomas Doran bobtfish at bobtfish.net
Mon Nov 23 21:00:31 GMT 2009


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 = 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




More information about the Catalyst mailing list