Adapt the RAM allocation

From Documentation

Jump to: navigation, search

This tutorial aims at explaining how to adapt the RAM allocation for openLCA for better performance. It applies to all versions of openLCA since 1.1.

More information about the openLCA project are available here: http://www.openlca.org/index.html.

Introduction

As a Java application, openLCA consumes not more RAM (Random Access Memory) than specified in the config.ini. After installation, the threshold value is set at 512 MB. This follows the minimum requirements specifications. Note that the computer needs still additional RAM to run the operating system and so on.

If you use openLCA on a computer that has more RAM available, you should change the threshold to higher values. This will increase calculation speed and overall application performance.

Modifying the config.ini

The RAM settings are specified in a small file called config.ini. If you used the installer, you find it under "programs", in the same directory as openLCA.exe.

OpenLCA-RAM-01.png

You can open openLCA.ini with a normal text editor. In a German operating system, it looks like this (and in English, you have an English file menu, and also the entry "en" instead of "de"):

OpenLCA-RAM-02.png

The RAM allocation is specified by the entry -Xmx512M, 512M means 512 MB. Before doing any modifications to the file, you should create a save copy.

OpenLCA-RAM-03.png

Then, for a 32 bit application, you can change the entry in the original config.ini to e.g. "-Xmx1300".

OpenLCA-RAM-04.png

On WinXP systems, you can simply save the modified config.ini, and restart openLCA.

On Win7 and Vista systems, you will not be allowed to save the config.ini in the program folder, even not as admin. However, you can save the file at another place, and then copy the file again back into the program folder, overwriting the old config.ini.

Troubleshooting

Changing the config.ini is quite safe. What can happen is:

Personal tools
Namespaces
Variants
Actions
openLCA help menu
openLCA Website
Toolbox