On Sat, Apr 12, 2008 at 11:56:29AM -0400, Jim Jagielski wrote:
> 
> On Apr 10, 2008, at 7:51 PM, Basant Kukreja wrote:
> >>Any more details in which situations you see memory leaks? The same  
> >>leaks
> >>should happen on trunk as well.
> >Yes, I verified that it leaks with trunk version too.
> >
> 
> A little more info would be appreciated :)
> 
Just create a file say
test2.html in htdocs/testsub/ directory which contains :
----------------------------------
hello world.
<repeat 500 times above line.>
----------------------------------
Alias /testsub/ "/usr/local/apache2/htdocs/testsub/"
LoadModule substitute_module modules/mod_substitute.so
<Directory "/usr/local/apache2/htdocs/testsub">
    Options FollowSymLinks
    AllowOverride None
    AddOutputFilter SUBSTITUTE html
    Substitute s/hello/hi/n
</Directory>

Now run the stress using ab :
ab -c 400 -n 400000 http://hostname/testsub/test2.html

Notice the size of httpd process. It will keep increasing to several GBs.
I tested with worker mpm (httpd-2.2.6) 64 bit on Solaris x86.
<IfModule worker.c>
ListenBackLog     50000
StartServers         2
ThreadLimit        500
ThreadsPerChild    500
MinSpareThreads    100
MaxSpareThreads    1000
ThreadsPerChild    500
MaxClients         1000
MaxRequestsPerChild  0
</IfModule>

Reply via email to