Harishvk27’s Weblog

November 5, 2008

Fixing Memory Leak in Apache mod_proxy.

Filed under: Apache — harishvk27 @ 5:44 am

Good to work on ‘C’. Recently i had to spend some time on Apache looking out for specific memory leak.

Thanks to Paul for good article http://journal.paul.querna.org/articles/2005/02/23/apr-memory-pools-rock/

The memory leak can be observed when requests are sent on keep-alive connection without closing the connection. As long as the connection is open, in apache we tend to allocate some memory from connection pool for processing each request. So when you have more requests per connection you tend to see apache consuming more memory. If we release the connection and we see that apache frees the memory and don’t see this leaks impact.

For more on this please follow the following link;

http://www.gossamer-threads.com/lists/apache/dev/358549

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.