Report this

What is the reason for this report?

Tomcat 8 configure jvm memory

Posted on April 11, 2018

Hi all,

I am having trouble increasing the memory of my jvm tomcat 8. my droplet ubuntu 16.04 has 1 gb of memory.

I configured the setenv.sh within the path opt/tomcat/conf file like this:

export CATALINA_OPTS = "$CATALINA_OPTS -Xms256M"
export CATALINA_OPTS = "$CATALINA_OPTS -Xmx512M"
export CATALINA_OPTS = "$CATALINA_OPTS -XX:MaxPermSize=256M"

When starting tomcat the following error is displayed.

Invalid initial heap size: -Xms256M Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit

I would like some help??

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.