
I'm trying to open & edit an 11 meg file. When I do it errors with: "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." What gives? This is an 11 meg file; not 11 gig, not 11 tere. 11 meg! If I need to resort to vim, why am I spending money on oXygen?

Dear Timothy, In order to edit it Oxygen keeps the whole file in memory. The amount of memory needed to open a file is several times larger than the file size when opening it in Text mode and is lower when opening it in Grid or Author mode. Also the Tree Editor available in Oxygen has a much smaller memory footprint. It also depends on the file structure and whether it has many long lines. You can find out how much memory is available for Oxygen by opening the About dialog and reading the "JVM memory used - Total" field. The standard total memory setting in Oxygen should be more than enough to open an 11 MB file. If you give us access to the file maybe we could take a look at it and see if we can improve anything in the Oxygen memory usage. If the archived version of the file is above 1 MB maybe you could post a link with it. Regards, Radu -- Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Timothy Reaves wrote:
I'm trying to open & edit an 11 meg file. When I do it errors with:
"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."
What gives? This is an 11 meg file; not 11 gig, not 11 tere. 11 meg! If I need to resort to vim, why am I spending money on oXygen? _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

On Nov 23, 2007, at 5:33 AM, Radu Coravu wrote:
Dear Timothy,
In order to edit it Oxygen keeps the whole file in memory. The amount of memory needed to open a file is several times larger than the file size when opening it in Text mode and is lower when opening it in Grid or Author mode. Also the Tree Editor available in Oxygen has a much smaller memory footprint. It also depends on the file structure and whether it has many long lines.
You can find out how much memory is available for Oxygen by opening the About dialog and reading the "JVM memory used - Total" field. The standard total memory setting in Oxygen should be more than enough to open an 11 MB file. If you give us access to the file maybe we could take a look at it and see if we can improve anything in the Oxygen memory usage. If the archived version of the file is above 1 MB maybe you could post a link with it.
Ya, I understand all of that. But you seem to think it is fine that an 11 meg file can't be opened. 11 meg! I don't need an excuse for why an application running on a laptop with 4 gig of memory can't edit an 11 meg file. For pete' sake, stop and look at your friggin response! It's an 11 meg file.

Dear Timothy, oXygen is a Java application. Java has an automatic memory management performed by the Java garbage collection. That means the memory is allocated and it is not released explicitly by the application and only when the allocated memory is close to the maximum memory the garbage collection starts and detects the unused memory to be released. That means that an application has the maximum memory that it will use already defined when it starts. So no matter if you have 1G, 4GB or 10GB a Java application will take the same fixed amount of maximum memory that was specified at its startup, if no maximum memory is specified then the default value of the JVM will use used (that is in general 64MB). Now, there are multiple structures that oXygen keeps to help you editing. 11MB of raw XML can easily mean 10 times more memory when you need to keep more than the characters in memory. Add the memory for other open files, their schemas that are loaded for content completion, etc. and the maximum memory oXygen has at its disposal can be easily reached. From our experience you should not have any issues with files in the 10MB range with the default memory settings from oXygen. However, it may be possible to have some particularities in that file to cause a larger memory consumption and that is why we are interested to see that file, if possible of course. It may be better to send us a link to the file or eventually zip it and send it to our support email support@oxygenxml.com. Best Regards, George --------------------------------------------------------------------- George Cristian Bina - http://aboutxml.blogspot.com/ <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Timothy Reaves wrote:
On Nov 23, 2007, at 5:33 AM, Radu Coravu wrote:
Dear Timothy,
In order to edit it Oxygen keeps the whole file in memory. The amount of memory needed to open a file is several times larger than the file size when opening it in Text mode and is lower when opening it in Grid or Author mode. Also the Tree Editor available in Oxygen has a much smaller memory footprint. It also depends on the file structure and whether it has many long lines.
You can find out how much memory is available for Oxygen by opening the About dialog and reading the "JVM memory used - Total" field. The standard total memory setting in Oxygen should be more than enough to open an 11 MB file. If you give us access to the file maybe we could take a look at it and see if we can improve anything in the Oxygen memory usage. If the archived version of the file is above 1 MB maybe you could post a link with it.
Ya, I understand all of that. But you seem to think it is fine that an 11 meg file can't be opened. 11 meg! I don't need an excuse for why an application running on a laptop with 4 gig of memory can't edit an 11 meg file. For pete' sake, stop and look at your friggin response! It's an 11 meg file.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hey I am just observing this thread ... On the jre when you start eclipse i belive you can set the amount of memory allowed to be used by java ... After googling "man java" i found this in the man page ... *-Xmx*/n/ Specifies the maximum size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 2 MB. Append the letter *k* or *K* to indicate kilobytes or the letter *m* or *M* to indicate megabytes. The default value is 64MB. Exam- ples: -Xmx83886080 -Xmx81920k -Xmx80m Not sure this will help ... but if you start eclipse with a "large" number you may be ok is my guess ... Keep in mind I am just a bystandard ... Jim ps I would assume turning off oxygen features such as "auto completion", etc ... would allow a document not to need as much memory ... but i have been wrong before ... you could try crippling oxygen in your options ... again this is a guess ... Timothy Reaves wrote:
On Nov 23, 2007, at 5:33 AM, Radu Coravu wrote:
Dear Timothy,
In order to edit it Oxygen keeps the whole file in memory. The amount of memory needed to open a file is several times larger than the file size when opening it in Text mode and is lower when opening it in Grid or Author mode. Also the Tree Editor available in Oxygen has a much smaller memory footprint. It also depends on the file structure and whether it has many long lines.
You can find out how much memory is available for Oxygen by opening the About dialog and reading the "JVM memory used - Total" field. The standard total memory setting in Oxygen should be more than enough to open an 11 MB file. If you give us access to the file maybe we could take a look at it and see if we can improve anything in the Oxygen memory usage. If the archived version of the file is above 1 MB maybe you could post a link with it.
Ya, I understand all of that. But you seem to think it is fine that an 11 meg file can't be opened. 11 meg! I don't need an excuse for why an application running on a laptop with 4 gig of memory can't edit an 11 meg file. For pete' sake, stop and look at your friggin response! It's an 11 meg file.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (4)
-
George Cristian Bina
-
James Don
-
Radu Coravu
-
Timothy Reaves