How to solve this error java.lang.OutOfMemoryError: Java heap space #694
-
Hi all, I will highly appreciate the support of the community. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi Odou, Please let us know if this solves your issue :) |
Beta Was this translation helpful? Give feedback.
-
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 Practically, you can cause this to always happen by modifying your ixmp configuration file (usually somewhere like $HOME/.local/share/ixmp/config.json). If you see: {
"platform": {
"default": "local",
"local": {
"class": "jdbc",
"driver": "hsqldb",
"path": "/home/username/.local/share/ixmp/localdb/default"
}
}
} …then edit to add the jvmargs, for example like: {
"platform": {
"default": "local",
"local": {
"class": "jdbc",
"driver": "hsqldb",
"jvmargs": "-Xmx10G",
"path": "/home/username/.local/share/ixmp/localdb/default"
}
}
} This is equivalent to passing jvmargs="-Xmx10G" every time you call Of course, the correct choice of heap size depends on your model needs, system available memory, and other factors; there is no one specific size. |
Beta Was this translation helpful? Give feedback.
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…