Hi Michael,
Please share your opinion on the following suggestion by me.
I'd like to have a default java.opts file with maximum memory settings
in the "inst" subdir of the java package (so that it installs in
./share/octave/packages/java-<version> ).
Motivation:
Especially when using the spreadsheet scripts for xml-based spreadsheet
files (ODS, OOXML), the default max memory allocation for java (16 MB)
can easily turn out to be too small (XML, once expanded, is an extremely
memory-hungry file format). This often introduces errors which can be
hard to track down, especially for less experienced users.
Other java programs can also benefit from a larger requested memory
reservation.
AFAIK it won't hurt to include a default java.opts file as both Java and
{Windows / Linux / OSX / ...} memory managers have their own garbage
collector; these will ensure that java only gets memory when it is
really needed and that it will be returned to the OS when it is no
longer in use. It'll be swapped out in due time partly or completely if
java programs stall for some reason or other programs get more priority.
A minor disadvantage can be that java might hold on to a large committed
memory chunk (in the working set) that is really has in use; but that
would be equally valid for any other program. Java's max is 516 MB;
e.g., sometimes my browser (seamonkey) has more than that in use.
I am unaware of other issues here, but then I'm no professional nor a
proficient java or systems programmer. All I can say is that I have had
this setup for almost a year now on 3 PC's and never encountered
problems with it.
I'd suggest a java.opts with (just) the following settings (attached):
-Xms16m
-Xmx512m
(start-up java memory reservation = 16 MB, max = 512 MB)
Thank you,
Philip
-Xms16m
-Xmx512m
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev