[Fwd: Re: [jdom-interest] Writing large XML files]

Mike Brenner mikeb at mitre.org
Wed May 14 04:32:09 PDT 2003


"Subrahmanian, Sundararaman V [IT]" wrote:
> I am using jdom-b8 and jdk version java 1.3.1-b24.  I have the following
> questions:
> 2.  Will going over to jdom-b9 help?  I would not want to do this right now.

Yes, should upgrade to java 1.4.1 and jdom-b9 to help performance.
Doing so might catch your problem, although the code might also
contain bugs that need fixing. The memory should no longer be a problem,
but if it is, try incremental garbage collection and
giving a larger initial heap size and a smaller maximum heap size.

Also, when upgrading to java 1.4.1, always compile with 
the option source 1.4 and run with the option -ea, so that
assertions will work. Use assertions throughout the code to
catch bugs.




More information about the jdom-interest mailing list