[jdom-interest] RE: Memory and Speed problems with SAXBuilder

Laurent Bihanic laurent.bihanic at atosorigin.com
Thu Feb 27 01:47:27 PST 2003


Hi,

Malachi de AElfweald wrote:
> Worst performer was SAXBuilder (which I originally used because we were 
> building from
> an InputStream).  Also, SAXBuilder was the ONLY one that required the 
> huge amount of
> heap space.

You are probably using JDOM beta8 with JDK 1.4.1. These two are incompatible 
due to the memory leak bug in StringBuffer introduced in JDK 1.4.1.
For more information, please see 
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

Sun does not plan to fix this bug until JDK 1.5 (Tiger).

To fix this problem, you have 2 solutions:
  1. Stick to JDOM beta8 but downgrade to JDK 1.4.0 or 1.3.1
  2. Stick to JDK 1.4.1 and upgrade to the latest JDOM which includes a 
workaround for the JDK bug.

Laurent




More information about the jdom-interest mailing list