Hi there,

I'd echo what Perrin has said, but if only for the archives I need to ask:

On Fri, 9 Jan 2004, Simon Clewer wrote:

> [snip] we're using heaps of memory.
> 
> Does anybody know how we can reduce the amount of memory we use ? - is there
> some smart way to actually share the images.

There are some tips in the mod_perl Guide, have you seen them?

> Up to now the problem has been OK because we simply paid to put 2
> Gig on board, but we had nearly 1000 users yesterday

Not concurrently? :)

> We're on a 2.4.20 Linux with Apache 1.3.28  and mod_perl 1.28

Can you be a bit more specific about the kernel?  You've seen

http://www.gossamer-threads.com/perl/mailarc/gforum.cgi?post=99891;search_string=shared%20children;guest=1993236&t=search_engine#99891

I take it?

It seems to me that your application has grown out of control.  You
need to work on a redesign (which should not limit its scope purely to
the technical issues) but obviously the customers are coming in *now*
so in parallel with firefighting you have to maintain what's there.

I'm sure there's no need to hammer the memory consumption like that.
There's absolutely no need to use a 60M process to get a user to fill
in a form.  Have you considered using multiple servers?  Some people
use a light frontend/heavy backend approach, some use mod_perl servers
for both front and back ends.  You might be able to split the codebase
that way without too much disruption.

Is the load growing rapidly?  Seems to me you aren't far from the
point where you'd benefit from load balancing and failover, even if
only for your peace of mind.  OTOH that's a whole new can of worms.

73,
Ged.



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to