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

Phill_Perryman at Mitel.COM Phill_Perryman at Mitel.COM
Thu Feb 27 08:27:07 PST 2003


I have run into the memory problem parsing an 800k file.

I have been to the jdom.org site and only seem to have two options, the 
beta8 with the problems or the very latest cvs code with severe sounding 
warnings on it.

It there a milestone release available in binary anywhere.

/Phill
IS Dept, Software Engineer.
phill_perryman at mitel.com
http://www.mitel.com
Tel: +44 1291 436023




"Alex Rosen" <arosen at novell.com>
Sent by: jdom-interest-admin at jdom.org
27/02/2003 15:14

 
        To:     <laurent.bihanic at atosorigin.com>, <malachi at tremerechantry.com>
        cc:     <jdom-interest at jdom.org>
        Subject:        Re: [jdom-interest] RE: Memory and Speed problems with  SAXBuilder


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
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030227/0dac2b59/attachment.htm


More information about the jdom-interest mailing list