How to handle PermGen space exception in Tomcat?
Question
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow