On Wed, Oct 1, 2008 at 11:11 AM, Ben Collins-Sussman
[EMAIL PROTECTED] wrote:
In the long term, I think we need to question the utility of having
APR do memory recycling at all. Back in the early 90's, malloc() was
insanely slow and worth avoiding. In 2008, now that we're running
apache with
Ben Collins-Sussman wrote:
Our solution:
Over at Google, we simply hacked APR to *never* hold on to blocks for
recycling. Essentially, this makes apr_pool_destroy() always free()
the block, and makes apr_pool_create() always call malloc() malloc.
Poof, all the memory leak went away
On Thu, Oct 2, 2008 at 2:44 AM, Mladen Turk [EMAIL PROTECTED] wrote:
Ben Collins-Sussman wrote:
Our solution:
Over at Google, we simply hacked APR to *never* hold on to blocks for
recycling. Essentially, this makes apr_pool_destroy() always free()
the block, and makes apr_pool_create()
Ben Collins-Sussman wrote:
On Thu, Oct 2, 2008 at 2:44 AM, Mladen Turk [EMAIL PROTECTED] wrote:
Ben Collins-Sussman wrote:
Our solution:
Over at Google, we simply hacked APR to *never* hold on to blocks for
recycling. Essentially, this makes apr_pool_destroy() always free()
the block, and
I stupidly used random() and srandom() in my module to generate
random filenames at high volume and, well, sigh. Anyhow, the page
at http://apr.apache.org/docs/apr/1.3/group__apr__random.html lacks
tutorial value. Anyone written up the *right* way to use these? -T
Tim Bray wrote:
I stupidly used random() and srandom() in my module to generate random
filenames at high volume and, well, sigh. Anyhow, the page at
http://apr.apache.org/docs/apr/1.3/group__apr__random.html lacks
tutorial value. Anyone written up the *right* way to use these? -T
Ignore
Hi Bojan,
First, I'd like to say thank you for the quick response. The ttl is in
fact in microseconds. The documentation seems to be incorrect:
apr_memcache_server_create() ttl - time to live in seconds of a client
connection.
Also, if you look at the apr_reslist_create() documentation, it
On Thu, 2008-10-02 at 21:08 -0700, peter baer wrote:
Also, if you look at the apr_reslist_create() documentation, it states
that the ttl if non-zero, sets the maximum amount of time a resource
may be available while exceeding the soft limit. . Why then is the
destructor being called for all
On Oct 2, 2008, at 8:11 PM, Paul Querna wrote:
Tim Bray wrote:
I stupidly used random() and srandom() in my module to generate
random filenames at high volume and, well, sigh. Anyhow, the
page at http://apr.apache.org/docs/apr/1.3/group__apr__random.html
lacks tutorial value. Anyone