You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Arnab Ganguly <ag...@gmail.com> on 2008/03/14 02:15:43 UTC

Need help on memory related issues

Hi All,
I am getting a memory leak issue in Apache 2.2.8 on Red-Hat 5.0.
I tried out the following options
1)  MaxRequestPerChild settings to non zero
2)I was  allocating memory by using  apr_palloc  from the  request pool but
later I replaced to normal malloc and added a clean handler in
apr_pool_cleanup_run.

Above changes didn't resulted any improvements.For each request there is a
substantial increase in RSS value and this memory is never returned back to
RAM it seems.I may be doing something major mistake in my module any help
would be highly appreciated.
Just curious any  issue with the ap_get_client_block() function.I am using
this function many times so can it be a problem and what is the work around
for this.
Thanks in advance.
-A

Re: Need help on memory related issues

Posted by Arnab Ganguly <ag...@gmail.com>.
Hi ,
Thanks for the email.Yes the same behavior is observerd without my
module.Also the webserver is handling heavy traffic and it remains busy
through out. Just to update you on the statistics it gets 1000 hits per
minute.

How do I give time to stabilize Apache as it is always heavily loaded and
server status pages show idle worker is 0.Let me know on this.
Regards
-A

On Sat, Mar 15, 2008 at 1:04 AM, Eric Covener <co...@gmail.com> wrote:

> On Thu, Mar 13, 2008 at 9:15 PM, Arnab Ganguly <ag...@gmail.com>
> wrote:
> > For each request there is a
> >  substantial increase in RSS value and this memory is never returned
> back to
> >  RAM it seems.I may be doing something major mistake in my module any
> help
> >  would be highly appreciated.
>
> Does it happen without your module?
>
> If you're using a threaded MPM, are you giving Apache enough time to
> stabilize?   RSS should level out after each thread has had a chance
> to run your hungriest request.
>
>
> --
> Eric Covener
> covener@gmail.com
>

Re: Need help on memory related issues

Posted by Eric Covener <co...@gmail.com>.
On Thu, Mar 13, 2008 at 9:15 PM, Arnab Ganguly <ag...@gmail.com> wrote:
> For each request there is a
>  substantial increase in RSS value and this memory is never returned back to
>  RAM it seems.I may be doing something major mistake in my module any help
>  would be highly appreciated.

Does it happen without your module?

If you're using a threaded MPM, are you giving Apache enough time to
stabilize?   RSS should level out after each thread has had a chance
to run your hungriest request.


-- 
Eric Covener
covener@gmail.com