How to Recover from Attempt to Open Large XML File

I attempted to open a 20Meg file (an exported iTunes library). Even after setting the VM to 2014M, Oxygen effectively locks up trying to open the file. Since it's restoring its state on startup, there's no obvious way to break the cycle. How do I break the cycle? Thanks, Eliot ---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>

Hello, If you set 2 GB of memory with the -Xmx parameter in oxygenMac.sh it should be enough for opening a file of 20 MB. Some files need more memory than other files of the same size depending on the file structure and the number of tags but I think that 1.5 GB is always enough for a file of 20 MB. If the heap memory set by -Xmx is not enough Oxygen reports an Out Of Memory error after 1 or 2 minutes and allows you to close and reopen the application without reopening the file. Other option for breaking the cycle if you don't want to wait until the Out Of Memory error is editing the file with the Oxygen preferences and replacing the lines <field name="lastOpenedFiles"> <openedFileInfo-array> <openedFileInfo> <field name="systemID"> ... </openedFileInfo-array> </field> with the lines: <field name="lastOpenedFiles"> <openedFileInfo-array></openedFileInfo-array> </field> The file is called oxyOptionsSa10.3.xml and is located in <user-home>/Library/Preferences/com.oxygenxml. Starting with the next version you can load the file using built-in special support for large files. That reduces the time and memory necessary for loading a very large file so the Out Of Memory is avoided but there are limitations. You can try this feature with the following All Platforms kit: http://www.oxygenxml.com/update/August20/oxygen.tar.gz You set the minimum file size for activating the large file support with the option "Optimize loading in the Text page for files over (MB)" that is available in Preferences -> Editor -> Open/Save. Regards, Sorin ekimber wrote:
I attempted to open a 20Meg file (an exported iTunes library). Even after setting the VM to 2014M, Oxygen effectively locks up trying to open the file. Since it's restoring its state on startup, there's no obvious way to break the cycle.
How do I break the cycle?
Thanks,
Eliot

It's possible I didn't set the the JVM args correctly. Here's what I put in Info.plist: -Xss650K -Xms256M -Xmx2048M -XX:SoftRefLRUPolicyMSPerMB=10 -XX:+UseParallelGC The behavior I'm seeing is that eventually Oxygen *tries* to put up an error message but the contents of the message dialog never draw. This is of course OSX Leopard with Oxygen 10.3. Cheers, E. On 8/31/09 2:12 AM, "Sorin Ristache" <sorin@oxygenxml.com> wrote:
Hello,
If you set 2 GB of memory with the -Xmx parameter in oxygenMac.sh it should be enough for opening a file of 20 MB. Some files need more memory than other files of the same size depending on the file structure and the number of tags but I think that 1.5 GB is always enough for a file of 20 MB. If the heap memory set by -Xmx is not enough Oxygen reports an Out Of Memory error after 1 or 2 minutes and allows you to close and reopen the application without reopening the file.
Other option for breaking the cycle if you don't want to wait until the Out Of Memory error is editing the file with the Oxygen preferences and replacing the lines
<field name="lastOpenedFiles"> <openedFileInfo-array> <openedFileInfo> <field name="systemID"> ... </openedFileInfo-array> </field>
with the lines:
<field name="lastOpenedFiles"> <openedFileInfo-array></openedFileInfo-array> </field>
The file is called oxyOptionsSa10.3.xml and is located in <user-home>/Library/Preferences/com.oxygenxml. Starting with the next version you can load the file using built-in special support for large files. That reduces the time and memory necessary for loading a very large file so the Out Of Memory is avoided but there are limitations. You can try this feature with the following All Platforms kit:
http://www.oxygenxml.com/update/August20/oxygen.tar.gz
You set the minimum file size for activating the large file support with the option "Optimize loading in the Text page for files over (MB)" that is available in Preferences -> Editor -> Open/Save.
Regards, Sorin
ekimber wrote:
I attempted to open a 20Meg file (an exported iTunes library). Even after setting the VM to 2014M, Oxygen effectively locks up trying to open the file. Since it's restoring its state on startup, there's no obvious way to break the cycle.
How do I break the cycle?
Thanks,
Eliot
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>

Hi Eliot, If you force quit oXygen then it will not try to reopen any files at the next start. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com ekimber wrote:
It's possible I didn't set the the JVM args correctly. Here's what I put in Info.plist:
-Xss650K -Xms256M -Xmx2048M -XX:SoftRefLRUPolicyMSPerMB=10 -XX:+UseParallelGC
The behavior I'm seeing is that eventually Oxygen *tries* to put up an error message but the contents of the message dialog never draw.
This is of course OSX Leopard with Oxygen 10.3.
Cheers,
E.
On 8/31/09 2:12 AM, "Sorin Ristache" <sorin@oxygenxml.com> wrote:
Hello,
If you set 2 GB of memory with the -Xmx parameter in oxygenMac.sh it should be enough for opening a file of 20 MB. Some files need more memory than other files of the same size depending on the file structure and the number of tags but I think that 1.5 GB is always enough for a file of 20 MB. If the heap memory set by -Xmx is not enough Oxygen reports an Out Of Memory error after 1 or 2 minutes and allows you to close and reopen the application without reopening the file.
Other option for breaking the cycle if you don't want to wait until the Out Of Memory error is editing the file with the Oxygen preferences and replacing the lines
<field name="lastOpenedFiles"> <openedFileInfo-array> <openedFileInfo> <field name="systemID"> ... </openedFileInfo-array> </field>
with the lines:
<field name="lastOpenedFiles"> <openedFileInfo-array></openedFileInfo-array> </field>
The file is called oxyOptionsSa10.3.xml and is located in <user-home>/Library/Preferences/com.oxygenxml. Starting with the next version you can load the file using built-in special support for large files. That reduces the time and memory necessary for loading a very large file so the Out Of Memory is avoided but there are limitations. You can try this feature with the following All Platforms kit:
http://www.oxygenxml.com/update/August20/oxygen.tar.gz
You set the minimum file size for activating the large file support with the option "Optimize loading in the Text page for files over (MB)" that is available in Preferences -> Editor -> Open/Save.
Regards, Sorin
ekimber wrote:
I attempted to open a 20Meg file (an exported iTunes library). Even after setting the VM to 2014M, Oxygen effectively locks up trying to open the file. Since it's restoring its state on startup, there's no obvious way to break the cycle.
How do I break the cycle?
Thanks,
Eliot
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

In the Oxygen editor, I have set my line length in Preferences->Editor->Text-> print margin to 200. I have to turn on "show print margin" to set it to the length I require: 200 characters. Then I turn off "show print margin" and the 200 remains while I am editing. However, oxygen keeps resetting that length to "80" at what appear to be random times. What I want is for Oxygen to always allow 200 characters before wrapping the text, even when I open a file with "format when opening". Acttually, I don't want any line wrapping at all, if possible. Can you help? Thanks, Mark

Hello, The value of the option "Print margin column" remains 200 as you set it in Preferences -> Editor -> Pages -> Text and a vertical line is painted in Text mode at a distance of 200 characters from the left margin of the editor. This is the print margin enabled and disabled with the option "Show print margin". The wrap limit used by the Format and Indent action, by the option "Format and indent the document on open" and by the option "Hard line wrap (Limit to "Line width - Format and Indent")" is set with the option called "Line width - Format and Indent". So you have to set the value 200 in the option "Line width - Format and Indent" instead of "Print margin column". All these wrap options are available in Preferences -> Editor -> Format. You disable the automatic line wrapping by disabling the option "Format and indent the document on open". By default this option is disabled. Regards, Sorin Mark Wilson wrote:
In the Oxygen editor, I have set my line length in Preferences->Editor->Text-> print margin to 200. I have to turn on "show print margin" to set it to the length I require: 200 characters. Then I turn off "show print margin" and the 200 remains while I am editing. However, oxygen keeps resetting that length to "80" at what appear to be random times.
What I want is for Oxygen to always allow 200 characters before wrapping the text, even when I open a file with "format when opening". Acttually, I don't want any line wrapping at all, if possible.
Can you help?
Thanks, Mark

Hi Mark, You may check also the Indent selection action. That performs basic indenting without splitting any line. It is available from the contextual menu -> Source -> Indent selection with default shortcut CTRL+I (CMD+I on Mac). Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Mark Wilson wrote:
In the Oxygen editor, I have set my line length in Preferences->Editor->Text-> print margin to 200. I have to turn on "show print margin" to set it to the length I require: 200 characters. Then I turn off "show print margin" and the 200 remains while I am editing. However, oxygen keeps resetting that length to "80" at what appear to be random times.
What I want is for Oxygen to always allow 200 characters before wrapping the text, even when I open a file with "format when opening". Acttually, I don't want any line wrapping at all, if possible.
Can you help?
Thanks, Mark
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Thanks for the tips. I have a huge file that now has hundreds of folded lines. It there a way to save it without formatting so that when I open it again, all the lines will be unfolded? Mark -------------------------------------------------- From: "George Cristian Bina" <george@oxygenxml.com> Sent: Wednesday, September 02, 2009 2:56 AM To: "Mark Wilson" <mark@knihtisk.org> Cc: <oxygen-user@oxygenxml.com> Subject: Re: [oXygen-user] Maintaining line length
Hi Mark,
You may check also the Indent selection action. That performs basic indenting without splitting any line. It is available from the contextual menu -> Source -> Indent selection with default shortcut CTRL+I (CMD+I on Mac).
Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Mark Wilson wrote:
In the Oxygen editor, I have set my line length in Preferences->Editor->Text-> print margin to 200. I have to turn on "show print margin" to set it to the length I require: 200 characters. Then I turn off "show print margin" and the 200 remains while I am editing. However, oxygen keeps resetting that length to "80" at what appear to be random times.
What I want is for Oxygen to always allow 200 characters before wrapping the text, even when I open a file with "format when opening". Acttually, I don't want any line wrapping at all, if possible.
Can you help?
Thanks, Mark _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

If the lines are wrapped by applying format and indent automatically on opening the file (the option "Format and indent the document on open") just press Ctrl-Z before closing the file to undo the format and indent. If the lines were wrapped in a previous Oxygen session there is no Oxygen action that will undo the wrapping. You have to create the unfolded format that you want by joining the lines manually and save the file after that. Regards, Sorin Mark Wilson wrote:
Thanks for the tips. I have a huge file that now has hundreds of folded lines. It there a way to save it without formatting so that when I open it again, all the lines will be unfolded? Mark
-------------------------------------------------- From: "George Cristian Bina" <george@oxygenxml.com> Sent: Wednesday, September 02, 2009 2:56 AM To: "Mark Wilson" <mark@knihtisk.org> Cc: <oxygen-user@oxygenxml.com> Subject: Re: [oXygen-user] Maintaining line length
Hi Mark,
You may check also the Indent selection action. That performs basic indenting without splitting any line. It is available from the contextual menu -> Source -> Indent selection with default shortcut CTRL+I (CMD+I on Mac).
Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Mark Wilson wrote:
In the Oxygen editor, I have set my line length in Preferences->Editor->Text-> print margin to 200. I have to turn on "show print margin" to set it to the length I require: 200 characters. Then I turn off "show print margin" and the 200 remains while I am editing. However, oxygen keeps resetting that length to "80" at what appear to be random times.
What I want is for Oxygen to always allow 200 characters before wrapping the text, even when I open a file with "format when opening". Acttually, I don't want any line wrapping at all, if possible.
Can you help?
Thanks, Mark _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Thanks, I simply made a copy of the document using an XSLT style sheet and reopened it. Perfect! Thanks, Mark -------------------------------------------------- From: "Sorin Ristache" <sorin@oxygenxml.com> Sent: Wednesday, September 02, 2009 8:04 AM To: <oxygen-user@oxygenxml.com> Subject: Re: [oXygen-user] Maintaining line length
If the lines are wrapped by applying format and indent automatically on opening the file (the option "Format and indent the document on open") just press Ctrl-Z before closing the file to undo the format and indent. If the lines were wrapped in a previous Oxygen session there is no Oxygen action that will undo the wrapping. You have to create the unfolded format that you want by joining the lines manually and save the file after that.
Regards, Sorin
Mark Wilson wrote:
Thanks for the tips. I have a huge file that now has hundreds of folded lines. It there a way to save it without formatting so that when I open it again, all the lines will be unfolded? Mark
-------------------------------------------------- From: "George Cristian Bina" <george@oxygenxml.com> Sent: Wednesday, September 02, 2009 2:56 AM To: "Mark Wilson" <mark@knihtisk.org> Cc: <oxygen-user@oxygenxml.com> Subject: Re: [oXygen-user] Maintaining line length
Hi Mark,
You may check also the Indent selection action. That performs basic indenting without splitting any line. It is available from the contextual menu -> Source -> Indent selection with default shortcut CTRL+I (CMD+I on Mac).
Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Mark Wilson wrote:
In the Oxygen editor, I have set my line length in Preferences->Editor->Text-> print margin to 200. I have to turn on "show print margin" to set it to the length I require: 200 characters. Then I turn off "show print margin" and the 200 remains while I am editing. However, oxygen keeps resetting that length to "80" at what appear to be random times.
What I want is for Oxygen to always allow 200 characters before wrapping the text, even when I open a file with "format when opening". Acttually, I don't want any line wrapping at all, if possible.
Can you help?
Thanks, Mark _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (4)
-
ekimber
-
George Cristian Bina
-
Mark Wilson
-
Sorin Ristache