[jdom-interest] Java heap space error, please help.

Rustican rustican at gmail.com
Wed May 23 07:57:44 PDT 2007

Yeah, it's a large database i'm dealing with.  I simply don't have enough
memory to allocate to avoid the error.

I was looking at possible solutions and found some documentation about a SAX
+ DOM Mix (SAXDOMIX) that sounds interesting.  Link:

Has anyone implemented anything like this before.  I don't have much
experience using JDOM and none using SAX.  I'm greateful for any help.

On 5/22/07, Hielke Hoeve <hielke.hoeve at gmail.com> wrote:
> On 22/05/07, Jason Hunter <jhunter at servlets.com> wrote:
> > What do you mean that you increased virtual memory?  In Java the best
> > thing to do is increase the heap size.
> >
> > java -Xms128m -Xmx512m Foo
> >
> > Maybe you have more than 512M to throw at the problem.  If that doesn't
> > work, then you can change your code to write elements at a time and let
> > them GC so you won't run out of memory.  You just need to do a little
> > manual work for the root element wrapper.
> He will probably need more if it's a very large database. Oracle can
> go crazy on it's database size.
> Hielke
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20070523/3d164d2c/attachment.htm

More information about the jdom-interest mailing list