Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] OutOfMemoryError

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • Cc: xom-interest AT lists.ibiblio.org, m AT lhaza.com
  • Subject: Re: [XOM-interest] OutOfMemoryError
  • Date: Fri, 20 Jan 2006 14:05:33 -0500

Wolfgang Hoschek wrote:
Looks like Gsell Martin is using a streaming NodeFactory, so should be able to process arbitrarily large documents rather than being bounded by a constant limit. Unless his custom NodeFactory code has a hidden memory leak, of course.


I still have not received sufficient information to be sure, but I think his problem is that he has some Base-64 encoded content in his document that is so large the mere act of creating a single String from it is overflowing memory. SAX can break up such large chunks into multiple invocations to chars. XOM does not do this. It assumes you have at least enough memory to hold a single node, and that may not be true here.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page