Problem with large XML-Files (OutOfMemory)

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
chrishaase
Posts: 8
Joined: Thu Mar 31, 2005 2:13 pm
Location: Hannover, Germany

Problem with large XML-Files (OutOfMemory)

Post by chrishaase » Wed May 11, 2005 3:13 pm

Hello!

I've some problems working with large XML-Files (OutOfMemory Error).
Running <oxygen> on a P4 3Ghz system with 512 MB RAM and WinXP.

The XML-File I've tried to open is about 8 MB (not really a large filesize, but contains a huge number of nodes).

Is there a trick for better working with large and complex XML files?

Greetings,
Christian

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Thu May 12, 2005 10:23 am

Hello,

If the file is larger than 5 or 6 MB the display needs a large amount of memory so you should increase the maximum memory available to <oXygen/> more than 256 MB, probably 350 MB is enough. For instructions about how to do this please see

http://www.oxygenxml.com/doc/ug-oxygen/ ... ement.html

I hope this helps,
Sorin

resglowing
Posts: 1
Joined: Tue May 17, 2005 4:23 am
Location: Manassas, VA

What about VERY large files?

Post by resglowing » Tue May 17, 2005 4:34 am

I'm dealing with files that are 650MB and sometimes larger. I have 3.5 GB of RAM. I've also set the Xmx to 2000. However I still get the out of memory error. Is there anyway to minimize the amount of processing and memory usage Oxygen uses?

Also, when I try to set Xmx larger than 2000, oxygen crashes on OSX even though I have 3 GB available after the system loads. The error I get in the consol is:

Error occurred during initialization of VM
Could not reserve enough space for object heap
crashdump[353]: JavaApplicationStub crashed


Thanks

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Tue May 17, 2005 9:35 am

Hello,

A file larger than 50 MB is too large to be edited in <oXygen/>. The required memory is too large and the operation is slow. Please try to split your document in smaller fragments using external entities or the XInclude support provided by <oXygen/>:

http://www.oxygenxml.com/doc/WorkingWit ... uments.pdf
http://www.oxygenxml.com/doc/ug-oxygen/ ... -documents
http://www.oxygenxml.com/xinclude_support.html

Best regards,
Sorin

Post Reply