[jdom-interest] Memory usage when processing a large file

Dennis Sosnoski dms at sosnoski.com
Sun Oct 7 19:35:06 PDT 2001


Hi Benjamin,

I've run some tests using documents up to just over 1MB (nt.xml, the New Testament
marked up with element wrappers for the text). The JDOM document took a little over
3MB of the Java heap, though I didn't look at total usage by the JVM (as seen by the
system).

Have you looked at how your memory usage scales for smaller documents? You might also
try pausing the program at various points and see when your memory usage goes
offscale. I'd personally suspect the database interface code more than JDOM, though,
unless your documents are very unusual (lots of entities that expand to huge amounts
of text, for instance).

  - Dennis

Benjamin Kopic wrote:

> Hi
>
> We have an application that processes a data feed and loads it into a
> database. It builds a JDom Document using SAXBuilder and Xerces, and then it
> uses Jaxen XPath to retrieve data needed.
>
> The problem is that when we parse a 7MB feed the memory usage by Java jumps
> to 110MB. Has anyone else used to process relatively large data feeds with
> JDom?
>
> Best regards
>
> Benjamin Kopic
> E: ben at kopic.org
> W: www.kopic.org
> T: +44 (0)20 7794 3090
> M: +44 (0)78 0154 7643
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com




More information about the jdom-interest mailing list