+1 vote

How to assign more memory to openLCA?

  • Possibly solves "java heap space" errors
  • Speeds up calculation time
asked by (620 points)
edited by

2 Answers

+1 vote
answered by (5.2k points)
Best answer
If you run into a Java heap space error or get an OutOfMemory error you can increase the amount of allocated memory for openLCA in the preferences.

In the menu, select 'File -> Preferences', in the dialog select 'Configuration' and specify a new value for 'Maximum memory usage in MB', e.g. 4096 if you want to assign 4GB.

For the changes to apply, you will need to restart openLCA.

If you still run into problems, you can try to disable logging in the 'Logging' tab of the preferences, by setting Level to Info, unchecking the 'Show log console' box and closing the 'Console' tab afterwards.
+1 vote
answered by (17.5k points)
edited by

You can also do this via the openLCA.ini file in the openLCA installation folder.

To change this navigate to the folder in which the openLCA.exe file lies (make sure openLCA is closed). Open the file openLCA.ini in the same folder with a text editor and change the numbers between -Xmx and M to the amount of memory that you would like to allocate to openLCA.


Save and start openLCA.

Backup your openLCA.ini before applying changes! Don't delete the original folder before you assured that the new folder has been set-up correctly (create a test database and check whether it shows up in the new folder)!

ask.openLCA is a question-and-answer (Q&A) website on Life Cycle Assessment (LCA) and also the public (User2User) support platform for openLCA, openLCA Nexus, data.openLCA and the LCA Collaboration Server.

Learn how it works or browse through our archived forum.

Receive guaranteed and prioritised professional support (Business2Customer) via GreenDelta's HelpDesk.

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.

ask.openLCA is run by GreenDelta, the creators of openLCA.

LCA Collaboration Server