[jdom-interest] java.lang.OutOfMemoryError

DAVID.ARCHER at chase.com DAVID.ARCHER at chase.com
Thu Mar 8 11:26:03 PST 2001

  JDK 1.3
  Xerces (one that ships with JDOM)
  JDOM b-6

I am trying to read a 90 MB XML file and keep getting
java.lang.OutOfMemoryError 's.  I have added -Xms320m -Xmx320m to my
command lind but it still fails.

It happens at the following line:

  Document doc = builder.build(new File(filename));

There appears to be about 130,000 records with approximately 20 elements
for each.  It is a simple XML file of the form:

      ... etc ...

Does anyone have any suggestions?


D Archer

More information about the jdom-interest mailing list