Regardless of the application server used, when trying to deploy an application, the following error message is displayed:
java.lang.OutOfMemoryError: Java heap Space
The application then fails to deploy.
The default initial and/or maximum heap sizes configured are too small.
The required action varies based on the application server:
The settings described below should be made to the following file:
If this file does not already exist, rename standalone.custom.(bat|sh).example to standalone.custom.(bat|sh) before proceeding.
Once you've identified the appropriate memory settings, you can override the default memory settings by setting the USER_MEM_ARGS variable as desired. Configure the variable as follows, changing the memory values to your desired minimum and maximum memory settings:
The heap dump setting is already configured in the standalone.conf file provided in the configure script. You do not need to set the property again unless you want to change the default memory settings, which match the examples given here.
Once you've identified the appropriate memory settings, you can override the default memory settings in setenv.sh|bat file (located in the <APPIAN_HOME>/tomcat/apache-tomcat/bin directory). Configure the heap related variables as follows:
Once you've identified the appropriate memory settings, set the JVM arguments for server start by completing the following in the WebLogic Administrative Console:
In the Arguments input box, enter the following, changing the below values to desired ones:
This article applies to all versions of Appian.
Last Reviewed: February 2021
© 2021 Appian. All rights reserved.