Often time, Tomcat may hits the following java.lang.OutOfMemoryError: PermGen space error. java.lang.OutOfMemoryError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) It’s usually happened after the Tomcat restarts a few times. 1. Solution By defa
![Tomcat - java.lang.OutOfMemoryError: PermGen space - Mkyong.com](https://cdn-ak-scissors.b.st-hatena.com/image/square/e6b4dfd4f9f121afe7b1d1c5ddd5f364925a519e/height=288;version=1;width=512/https%3A%2F%2Fmkyong.com%2Fwp-content%2Fuploads%2F2023%2F08%2Fmkyong-opengrap-logo.png)