Skip to content

OutOfMemory

A JAVA process will throw an OutOfMemory-exception if heapspace or metaspace is exhaused.

The heapspace can controlled via JAVA-Parameter -Xms and -Xmx

The Metaspace can be controlled via JAVA-Parameter -XX:MetaspaceSize and -XX:MaxMetaspaceSize

If OutOfMemory occures try to increase the values of these parameters. Wildfly: bin\standalone.conf.bat tomEE: bin\setenv.sh or setenv.bat ElasticSearch : config\jvm.options