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. 3)Tried out the MaxMemFree to some lower value so that apache process consumes less memory, not sure as it is a correct approach or not? 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
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 [EMAIL PROTECTED] wrote: On Thu, Mar 13, 2008 at 9:15 PM, Arnab Ganguly [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
Re: Need help on memory related issues
On Thu, Mar 13, 2008 at 9:15 PM, Arnab Ganguly [EMAIL PROTECTED] 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 [EMAIL PROTECTED]