On Fri, Apr 05, 2013 at 01:57:18AM -0700, Bogdan Andu wrote:

> The scripts a dead simple, only opening between 1 and 4 tcp connections to
> app. layer, retrieve response and format it out in html - dead simple.
> 
> There
> are precompiled and loaded in memory the few modules I need, so they are not
> loaded at every request, but I will also follow your suggestions.
> 
> Thank you
> for the link,

Not that some memory as reported by top is *shared* mem. You can't
just add it all up.

        -Otto

> 
> Bogdan
> 
> 
> 
> 
> ________________________________
>  From: Stuart
> Henderson <[email protected]>
> To: [email protected] 
> Sent: Friday, April 5,
> 2013 11:19 AM
> Subject: Re: default apache consumes memory
>  
> Sounds like a
> memory leak (allocated memory not getting freed), I would
> think the most
> likely place for this is in the perl scripts you're
> running.
> http://modperlbook.org/html/14-2-6-Memory-Leakage.html has some
> suggestions
> for tracking these down.
> 
> There is also maxrequestsperchild which might hide
> (but not fix)
> the problem.
> 
> 
> On 2013-04-05, Bogdan Andu <[email protected]>
> wrote:
> > Hello,
> >
> > I have an OpenBSD box running default apache server? that
> its sole
> > task is to present data, nothing more, nothing less.
> >
> > The logic
> of the
> > applications is handled by an app. layer that never exceeds 40 Mbytes
> RAM and
> > handles concurently all the connections (tcp based) from apache
> children while
> > the apache children 
> > tend to allocate continously memory
> without de-allocating
> > it
> >
> > The apache ver is 1.3, from base install
> running mod_perl highly
> > optimized through startup.pl mechanism, and perl
> scripts that 
> > communicate
> > with app. layer. The processing amount is
> minimized on the apache server.
> > It
> > listens on localhost and proxied by
> relayd for ssl acceleration.
> >
> > In two weeks
> > all apache children totalize
> aprox. 800 MBytes RAM
> >
> > Is there any tweaking
> > variable to tell apache to
> deallocate memory when is no more needed in the
> > same way the app. layer does
> ?
> >
> > Thank you in advanced,
> >
> > Bogdan

Reply via email to