Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] Recycling jdom elements ?

Paul Libbrecht

2005-09-05

Replies:

Hi,

My little experience:
Since I introduced jdom parsing, xpath evaluation, modification, and
output in my process (which was purely text based originally,
processing fine thousands of text snippets), I am starting to get
OutOfMemoryErrors... This is all running inside Ant itself inside jEdit
and, in there, I am able to invoke System.gc() by a click. I am able to
avoid the OutOfMemoryError by doing enough of these clicks (a bit
sporty sometimes).

I will call System.gc() programmatically later... but in the meantime,
I realize that it would be very meaningful to recycle JDOM elements
(and, in particular, lists in them) instead of garbage-collecting them.

Has anyone made modifications to JDOM's code for this ?

thanks

paul

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.