HTTP 500 status JAVA out of memory error - When Launching the VERDE Management Console

HTTP 500 status JAVA out of memory error - When Launching the VERDE Management Console

Product Line:  VERDE

ISSUE: 

  • The user receives an "HTTP 500 status JAVA out of memory error"
  • JAVA out of memory error in the VERDE Management Console log.

This situation may be caused because the Java Virtual Machine (JVM) is reaching its limit. The JVM heap size is set to 1024 (1GB) by default.

 

SOLUTION:

Increase the size of the JVM in the Tomcat initialization script as explained below. There is no need to increase this value dramatically. VERDE recommends to increase it to 2048 and observe the behavior before considering higher values.

Note:

This can be done while the VERDE server is running, this will not affect running guest sessions.

 

1. Stop Tomcat

/usr/lib/verde/bin/verde-start-tomcat.sh stop


2. Open /usr/lib/verde/bin/verde-start-tomcat.sh and modify the line below so it reads:

JAVA_OPTS="-Xms2048m -Xmx2048m -XX:MaxPermSize=512m"

    There are two lines with this setup. You can ignore the line starting with "trunk.*)" and modify the second line.

3. Start Tomcat:

/usr/lib/verde/bin/verde-start-tomcat.sh start

 

Verify that the VERDE Management Console starts with no error.