[jdom-interest] OutOfMemoryError
Joerg Erdmenger
joe at woerd.com
Tue Nov 26 01:54:31 PST 2002
Hi there,
I've done a search on the archives but haven't found a satifying answer to the
following:
I'm trying to use JDOM on a 1.6M xml input file containing roughly 32000
lines. I've tried to open it using code like this
SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
Document importDoc = builder.build(importFile);
It constantly fails on builder.build() with an OutOfMemeoryError. That doesn't
change if I increase the JVM max memory to even 256M.
How can that be? And is there anyway round that?
Any ideas? Clearly a 1.6M xml file can't use up more than 200M of RAM when
read in, can it?
Joerg
More information about the jdom-interest
mailing list