Problem opening a large XML file in Oxygen Author mode

Having trouble installing Oxygen? Got a bug to report? Post it all here.
rockymeranaam
Posts: 2
Joined: Fri Sep 11, 2009 11:13 pm

Problem opening a large XML file in Oxygen Author mode

Post by rockymeranaam »

Hi ,

Greetings.

I have been struggling to open a large XML file(6 MB) with Oxygen.
Intially I was trying to open the file from MarkLogic database by WebDav but since i was getting the memory problem consistently I tried opening the file locally and I still get the following error.

Please restart after allocating more memory to oxygen.
For this modify the parameter -Xmx in the startup script, for example -Xmx700m.
In case you were running a diff tool when this problem occurred you can try to use another algorithm next time.
For more details see the 'Performance problems' and 'Setting a parameter in the startup script' sections of the User Manual.


If you just want to inspect the file, please use the Large File Viewer available from the Tools menu.

I have already modified the parameter -Xmx256m to -Xmx1024m in start up. I am not using a diff tool. The problem occurs on Mac and PC.

I have also observed that if i am able to open a file as big as 5MB in oxygen in teh Text mode it would definately throw a memory problem when I navigate to the Author mode.

Appreciate your inputs.

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

Re: Problem opening a large XML file in Oxygen Author mode

Post by sorin_ristache »

Hello,

We never got the OutOfMemory error for so small files (5 MB or 6 MB) with 1 GB of memory ( -Xmx1024m). Did you set the memory parameter -Xmx in the correct file? That is on Windows the file oxygen.vmoptions if you start Oxygen with the icon shortcut (the oxygen.exe launcher) or the file oxygen.bat if you start Oxygen with the oxygen.bat script, on Mac OS X the file Info.plist inside the Oxygen bundle.

If you set the -Xmx1024m parameter in the correct script and you still get OutOfMemory for a 6 MB file we can investigate the problem if you send the file via the Technical Support page or you can try also the large file editor that will be included in the beta version of the next Oxygen version that we will announce today or tomorrow on the Oxygen-user mailing list.


Regards,
Sorin
rockymeranaam
Posts: 2
Joined: Fri Sep 11, 2009 11:13 pm

Re: Problem opening a large XML file in Oxygen Author mode

Post by rockymeranaam »

Hi Sorin,

Thanks for your respone.

On pc I made changes to following files.

1. oxygen.vmoptions
2. author.vmoptions
3. largeFileViewer.vmoptions

and added -Xmx1500m , The Oxygen Author mode works if i have only one xml file open in Author mode. If I have multiple large files open it would still tend to throw memory problem.

I have asked our editors to work with one file at a time.
Also want to mention that the editors are connected to Marklogic database through webdav and are opening file over webdav to edit them as needed.

Best Regards,

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

Re: Problem opening a large XML file in Oxygen Author mode

Post by sorin_ristache »

Is the -Xmx parameter on a separate line in the .vmoptions file? Each parameter must be on a separate file in any .vmoptions file.

What is the total size of the files that are opened and edited at the same time in Oxygen when you get the OutOfMemory error? What does the label "JVM Memory Used: ... Total: ..." say after each file is opened (before you get the OutOfMemory error, of course)?


Regards,
Sorin
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Problem opening a large XML file in Oxygen Author mode

Post by sorin_ristache »

For 1 GB of memory allocated in the Java virtual machine for opening files (the -Xmx parameter) the usual upper limit for the total size of the opened files is around 70 MB (depending on the file structure, the nesting level of XML elements) so it would be surprising or quite unusual to get an OutOfMemory for a 6 MB file or a set of files with a sum total under 50 MB or 60 MB.


Regards,
Sorin
Post Reply