[Mono-bugs] [Bug 626129] New: OutOfMemoryException - With a large number of defects it is impossible to save/view results.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 27 17:52:04 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=626129

http://bugzilla.novell.com/show_bug.cgi?id=626129#c0


           Summary: OutOfMemoryException - With a large number of defects
                    it is impossible to save/view results.
    Classification: Mono
           Product: Mono: Tools
           Version: SVN
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: eric.zeitler at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=378763)
 --> (http://bugzilla.novell.com/attachment.cgi?id=378763)
patch to use SAX instead of DOM xml writer

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.0 Safari/534.3

When there are a large number of defects it becomes impossible to save/view
them due to a massive amount of memory use.

Encountered after an analysis run with around 250,000 defects; all rules
enabled on .NET Framework 2 profile.

Looking at the XmlResultWriter/HtmlResultWriter code it seems a DOM tree is
created before serializing to disk; I have created a patch that uses the SAX
commands directly; providing much faster output and without the memory
overhead.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

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


More information about the mono-bugs mailing list