Skip to content

How to solve this error java.lang.OutOfMemoryError: Java heap space #694

Answered by khaeru
ODOU asked this question in MESSAGE modeling
Discussion options

You must be logged in to vote

Underlying the message_ix package is another one called ixmp that handles data storage. By default, when using current versions of message_ix and ixmp, you are using something called the ixmp JDBCBackend, which is built in Java.

The ixmp.JDBCBackend documentation gives some examples of how to pass arguments for starting the Java Virtual Machine (JVM); the one particular example is about increasing the Java heap space (-Xmg4G means to allocate 4 GB of memory for the JVM; this is fully explained in the further linked Java documentation).

Practically, you can cause this to always happen by modifying your ixmp configuration file (usually somewhere like $HOME/.local/share/ixmp/config.json). If…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@khaeru
Comment options

@brendandanaher
Comment options

@glatterf42
Comment options

@meng25meng
Comment options

@SongminYu
Comment options

Answer selected by glatterf42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants