apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Ristic" <ivan.ris...@gmail.com>
Subject Re: APR threads consume a large amount of virtual memory
Date Fri, 30 Jun 2006 21:53:57 GMT
On 6/30/06, Henry Jen <henryjen@ztune.net> wrote:
> Ivan Ristic wrote:
> > I have noticed that my multithreaded APR program consumes a *very*
> > large amount of virtual memory per thread and I can't think of a
> ...
> I believe that's the stack reserved for each thread.

I think you are right. If I create a detached thread (which then
exits), or perform apr_thread_join the memory consumption goes down. I
assume this is when the stack memory is deallocated.

Ivan Ristic, Technical Director
Thinking Stone, http://www.thinkingstone.com
ModSecurity: Open source Web Application Firewall

View raw message