Search code examples
javatomcatpermgen

How to handle PermGen space exception in Tomcat?


I am getting a PermGen Space Exception whenever I deploy my web application. I tried some JVm option in NetBeans but still unable to resolve the issue.


Solution

  • Add this JVM parameter: -XX:MaxPermSize=128m (or 256m or 512m). Here's a related article as well that lists some other useful JVM options.