How To Set Tomcat JVM Heap Size in Eclipse?

If JVM head size for Tomcat is not enough, you would get the error java.lang.OutOfMemoryError. If you are using eclipse, it is easy to increase the available heap size by using the server configurations. Look at the below steps to configure the VM arguments passed to JVM for running the tomcat server.

1. Open Server Configuration

Double click on the server name to open the configurations.

Tomcat in Eclipse

2. Open Launch Configuration

Click on the Open launch configuration to open the configuration properties.

Tomcat Configurations

3. Update VM Arguments

Go to Arguments tab and add the JVM arguments to the field “VM arguments”.


Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This

Share this post with your friends!