[Mono-bugs] [Bug 443569] New: Memory leak in asp.net (low level) for each unique URL request.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 10 18:03:58 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=443569


           Summary: Memory leak in asp.net (low level) for each unique URL
                    request.
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: amirshim at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


For each unique url, memory gets allocated and never released.  Easily
reproducible on both SVN and 2.0 (xsp2 and mod_mono).  Create IHttpHandler that
does nothing, and request lots of different urls (see bash script).

This is a show stopper on websites with many urls.

//----------- Do nothing IHttpHandler ----------
using System;
using System.Web;

namespace test1
{
  public class test2 : System.Web.IHttpHandler {
    public virtual void ProcessRequest(HttpContext context) {}
    public bool IsReusable { get { return false; } }
  }
}


----- web.config ---------
<httpHandlers>
  <add verb="*" path="*" validate="true" type="test1.test2, test1"/>
</httpHandlers>


------ bash script to request lots of different urls -----------
#!/bin/bash
for ((i=0;i<=1000;i++)); do
echo $i
wget -q "http://localhost:8080/$i" -O -
done


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list