How to increase Tomcat's memory allocation – Knowligent
How to increase Tomcat's memory allocation

How to increase Tomcat's memory allocation

HomeHow to, TechHow to increase Tomcat's memory allocation

Helps reduce poor performance issues

Heap size in tomcat

If you are experiencing performance issues with Tomcat, a common cause is the lack of JVM (Java Virtual Machine) memory allocation. The default maximum heap size is 64 MB or 128 MB. You can increase the maximum application heap size by setting the JVM parameter -Xmx.

For example, -Xmx512m allows up to 512 MB of heap to be allocated to the JVM. To modify this parameter, right-click the My Computer icon and select the Advanced tab. Click the Environment Variables button:

Create the CATALINA_OPTS variable and set the desired value, for example “-server -Xmx256m“.