apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fritsch ...@sfritsch.de>
Subject Re: APR threadpool and memory pool weirdness
Date Wed, 27 Jul 2011 20:35:03 GMT
On Wednesday 27 July 2011, Cosmin Luță wrote:
> I have a rather strange use case for APR which leads to quick
> memory increase on Linux (at least): a program creates (in a loop)
> memory pools which are passed to tasks in a threadpool. Each task
> will call apr_pool_destroy on its pool (received as an argument).

AFAICS due to the sleeps, you destroy pools at a max rate of 10/25ms 
while you create pools as fast as possible. Your memory usage will 
increase until all pools are created.

View raw message