httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: Parsers test eats all the memory
Date Wed, 12 Jan 2005 23:08:57 GMT
Stas Bekman <> writes:

> the latest svn of apreq2 has just killed my notebook. the parsers test
> exhausts all my memory in a matter of 3 seconds. 

How much RAM you got on there?  There's a loop-in-a-loop 
that's run a few hundred thousand times; it's in t/parsers.c:parse_multipart.
I don't know where that memory is going (I do ack the problem), 
but you could knock the inner loop out (let it loop from 0 to 
1 say) and that should bring your memory usage back to some 
sane figure.

Joe Schaefer

View raw message