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

Alex Rosen arosen at novell.com
Thu Feb 27 07:14:07 PST 2003


The beta 8 problem was not limited to JDK 1.4.1. I know it happened on
JDK 1.2.2 also, and I thought it happened on JDK 1.4.0 as well, but I'm
not positive.

Alex

>>> Laurent Bihanic <laurent.bihanic at atosorigin.com> 2/27/2003 4:47:27
AM >>>

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

_______________________________________________
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