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: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • To: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] OutOfMemoryError
  • Date: Fri, 20 Jan 2006 08:06:08 -0800

Also make sure not to accumulate all the root level indentation whitespace Text nodes, otherwise an OOM is just a matter of time. For example see http://dsd.lbl.gov/nux/api/nux/xom/xquery/ StreamingPathFilter.html

Wolfgang.

On Jan 20, 2006, at 4:35 AM, Elliotte Harold wrote:

Gsell Martin wrote:

If the content is greater than about 50 MB, this fails due to an
OutOfMemoryError. The reason is that 'makeText(String data)' of the
underlying NodeFactory provides the content as String, already. This is
very memory consuming for big contents. To avoid it, I intended to
handle the problem on SAX level and developed a quick and (sofar) dirty
solution by overwriting the XOMHandler. The code to use it is this:

What does your own XOM handler do differently? Can we see the code?


--
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
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest





Archive powered by MHonArc 2.6.24.

Top of Page