I get this error: “java.lang.OutOfMemoryError: Java heap space”

If you experience this error, you have likely tried to estimate a large model. Since Onyx runs multiple estimation processes in parallel, it requires a large amount of memory to store the intermediate results. We experienced that the default memory limit of JAVA, in which Onyx is written, is too low. In most cases, you can allow Onyx to allocate more memory by starting Onyx from the console with an additional flag specifying the memory allowance. This flag is called “-Xmx” and is followed by the maximum amount of memory allowed. To allow 500 Megabyte of memory, start Onyx like this:

java -Xmx500M -jar onyx.jar

Try to increase this value until the allocated memory is sufficient to run your model. We keep working on reducing the memory requirements of Onyx.