[oXygen-user] Can't edit 11 meg file
George Cristian Bina
Fri Nov 23 12:44:37 CST 2007
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
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
>
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
More information about the oXygen-user
mailing list