Memory Leak v1.2.10 (and v1.2.11c)

Topics: Developer Forum, Project Management Forum, User Forum
Apr 19, 2007 at 12:03 PM
Hi, I've been using iirf for quite some time and lately stumbled uppon a very nasty bug which causes memory leak. My w3wp.exe process started to grow to unreasonable sizes and I tracked it down to these simple two lines:

RewriteCond %{REMOTE_ADDR} 195\.225\.177\.0-9+
RewriteRule .+ a F,L

what these are supposed to do is simply block all ip-s in 195.225.177.*, which works but as I said causes a severe memory leak.
Apr 25, 2007 at 7:13 PM
Can you tell me if there is a similar leak in the latest version of IIRF ?
Apr 25, 2007 at 7:13 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Apr 28, 2007 at 5:48 PM
I updated the work item, happens in latest (1.2.11c) as well.
May 3, 2007 at 7:35 PM
Edited May 3, 2007 at 8:23 PM
Thank you, flopp. I updated the workitem and propped a new release. can you test again?
May 4, 2007 at 3:00 PM
Hi, just checked, seems to be better but still leeks some memory.
Normally the process hovers around 50mb. With the RewriteCond on, in older versions it just kept rising and was around 200mb after 2 hours. With v1.2.12b I stopped it at around 95mb after 2 hours which is better but...
May 24, 2007 at 1:17 PM
Hey, any news regarding the leak?

P.S. It seems to happen with every RewriteCond that evaluates to false not only IP or at least with HTTPS as well (secure / not)

Jun 13, 2007 at 1:19 AM
No news from me on this.

This is a volunteer effort and I have simply not had the time to follow up on this.
It's on my list.


Jun 13, 2007 at 6:58 PM
No worries,
thanks for the reply and the great filter.

Jun 13, 2007 at 10:32 PM
Hey folks, just to let you know I added a comment to work item 9024 concerning a memory leak when using RewriteCond and I can confirm it occurs when evaluating User Agent conditions too. I'm using the filter and love it but I've had to remove all conditional rules.

Jun 14, 2007 at 12:30 AM
I am a bit confused here and a bit of a newbie to url rewriting, can some tell me if this memory leak effects me?

The only rule I have in my INI file is:

RewriteRule ^/(?!index.cfm)(.+)$ /index.cfm?v=$1

Should I look for another product to handle my url rewriting or does this leak not a problem for me?
Jun 14, 2007 at 9:49 AM
Hi ievolve, I've been using the filter on my live website using approximately 9 RewriteRule for 3 days now and have not seen a problem with memory leaks. I only see this problem when I added RewriteCond statements to my ini file. However, I only have a limited set of simple rules. In my experience with IIS 6.0 it's pretty easy to spot when it's leaking - just keep an eye on the memory used by your w3wp.exe process.