X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=help%2Fhelp%2Fhtml%2Fmemory.html;h=80bffa331cff12eacf38405ac301b6af580cc54e;hb=2f160359d38a4d475b0f96eb7da61f823d9ef7bd;hp=9437a60e1c8619787181a43ddd8e1c51356099ba;hpb=44d68d55d9c85bf7b28853feeebc4b901c4a8392;p=jalview.git diff --git a/help/help/html/memory.html b/help/help/html/memory.html index 9437a60..80bffa3 100755 --- a/help/help/html/memory.html +++ b/help/help/html/memory.html @@ -28,18 +28,18 @@ Memory Usage Settings for Jalview +

When launched as an Application, Jalview will automatically + configure the amount of memory allocated to the program to be 90% of + physical memory. You may wish to change this behaviour - + particularly if you are working on a machine that runs other memory + intensive processes.

- Jalview sometimes runs out of memory. This is because of the way - that Java runs on a computer - what is actually run is a program - called a virtual machine (the JVM) which executes the java - instructions. The JVM has limits on the memory that can be allocated - to the java program - and you might need to increase them if you are - working with particularly large datasets.
If Jalview has - not explicitly told you that it has run out of memory, then a common - sign is that a function that normally works seems to have no effect - when working with a larger set of sequences (this might include open - dialog boxes for saving PNG files, or when interpreting the result - of a web service calculation). + Signs that Jalview is Running out of Memory
If + Jalview has not explicitly told you that it has run out of memory, + then a common sign is that a function that normally works seems to + have no effect when working with a larger set of sequences (this + might include open dialog boxes for saving PNG files, or when + interpreting the result of a web service calculation).

Jalview Memory Usage Monitor: If you are concerned about @@ -52,105 +52,95 @@ window's background.

- Increasing the memory available to Jalview
The way - you increase the memory settings for the JVM depends on which - installation of Jalview you use: + Increasing the memory available to Jalview
The + amount of memory allocated is defined wheb Jalview is launched + because of the way that Java runs on a computer - what is actually + run is a program called a Java virtual machine (a JVM) which + executes the java program instructions. The JVM has limits on the + memory that can be allocated to the java program - and it is often + necessary to adjust them if you are working with particularly large + datasets, or need to make room for other processes on the machine.
+
Jalview 2.11 includes a launcher that automatically + configures the proportion of memory allocated to Jalview's JVM. By default it requests up to 90% of available memory whilst ensuring that at least 0.5G is available to the operating system and at least 0.5G is available to the Java runtime platform, or a specified 'maximum memory limit' - which ever is smaller. The amount of memory requested can be altered in a number of different ways:

+ For linux and other unixes you will have to install a Java 1.8 + JRE (we recommend the ones found at https://adoptopenjdk.net/)
+
You will also need to reference the "appdir" release + folder with all of the Jalview jar files. + Assuming the java (or java.exe on Windows) + commands are available to you, you can run, e.g.
+      java -Xmx1500m -cp "/PATH_TO_RELEASE_DIR/*" jalview.bin.Jalview
+      
Or on Windows
+      java.exe -Xmx1500m -cp "\PATH_TO_RELEASE_DIR\*" jalview.bin.Jalview
+      
Note: for this to work the classpath argument wildcard must be simply + a '*' and not '*.jar'.

+ You can also add other Jalview + command line arguments as above after the jalview.bin.Jalview + class name, but you cannot use jvl files + if launching Jalview in this way. -

- Please Note: We do modify the default memory settings in - Jalview from time to time, so you may find different numbers to - those shown in the examples above. -

- Jalview doesn't start... What do the - memory settings mean ? - -

The 1000m value corresponds to the maximum number of megabytes - of space that java objects can occupy. The 500m is the initial heap - size that java will run in - increasing this can speed up memory - allocation if you know you will need 500 meg of memory to begin with - (ie it should speed up loading large alignments).

-

If, after setting the initial and maximum heap size to some - large value, you cannot actually start Jalview, then the max and - initial sizes are too big for your machine (there seems to be a - physical limit related to physical RAM - email the usual address to - enlighten us if you know better!). Our experiments found 1000m to be - the biggest setting that could be used on a 1GB machine. Just try - reducing the sizes until Jalview starts up properly!

-

- We increased the default memory in Jalview 2.10.5 to 1G. To launch - Jalview with the pre 2.10.5 default memory allocation, use the Jalview - 256MB JNLP. -

-