<div>I'm using the jdom package to create an xml export file for an Oracle database i'm running. Unfortunately it is a very large database and the export is apparently trying to read everything into memory before it writes to the file causing a out of Java heap space error and no data written to the file. I've tried increasing virtual memory allocation but i'm still hitting the error.
<div>Is there anyway to have the export write to the file as it is pulling data from the database? Or write data to file in chunks instead of the whole thing at once?</div>