[Mono-bugs] [Bug 602560] mdoc assemble takes a lot of memory.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jun 11 11:22:06 EDT 2010



--- Comment #1 from Jonathan Pryor <jpryor at novell.com> 2010-06-11 15:22:05 UTC ---
Now when I perform steps (1)-(5), System Monitor shows that mono is taking 
~30MB of RAM to assemble netdocs.zip, and is able to build with `ulimit -v

Fixed in trunk r158835 and mono-2-6 r158836.

2010-06-11  Jonathan Pryor  <jpryor at novell.com>

    * Monodoc/ecma-provider.cs: Reduce memory requirements when assembling
      ECMA documentation.  The problem was that we parse all the XML files
      in order to extract //summary and //remarks members, and then stored
      the XmlNodes for these members.  XmlNode keeps a ref to the creating
      XmlDocument, thus keeping the XmlNode around requires keeping the
      entire XmlDocument around; result: ~350+MB RAM is needed to assemble
      netdocs.zip (in ../../docs).  To fix, import the XmlNodes that we
      actually care about into an otherwise empty XmlDocument, so that we 
      only save the nodes we need. Result: ~32MB RAM is needed.
      Fixes #602560.

Configure bugmail: http://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