Tomcat performance issues

Last Updated : Jun 03, 2026 |

If you observe that the Tomcat server is crashing or stopping frequently then verify the Exceptions stack in logs at $CATALINA_HOME/logs/catalina.out. If you observe this issue is because of java.lang.OutOfMemoryError, increase the permgen memory size of the tomcat server.

Solution

Procedure

  1. Edit the file /etc/profile.d/epm.sh.
  2. Change the line -XX:PermSize=256m -XX:MaxPermSize=320m to -XX:PermSize=256m -XX:MaxPermSize=512m.