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.
Asked
Active
Viewed 3,977 times
0
-
1You should take a look at the questions already asked in this regard. 1) http://stackoverflow.com/questions/88235/how-to-deal-with-java-lang-outofmemoryerror-permgen-space-error 2) http://stackoverflow.com/questions/473011/recurring-permgen-in-tomcat-6 Then it is only a matter of configuring the Tomcat installation in Netbeans. – Vineet Reynolds Sep 03 '09 at 06:29
1 Answers
3
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.

bluish
- 26,356
- 27
- 122
- 180

Taylor Leese
- 51,004
- 28
- 112
- 141
-
thanks for your reply, i tried this option,but still showing the same issue. – vipin k. Sep 03 '09 at 06:36
-
2Did you try the other options as well in the article (-XX:+UseConcMarkSweepGC, -XX:+CMSPermGenSweepingEnabled, -XX:+CMSClassUnloadingEnabled)? – Taylor Leese Sep 03 '09 at 06:51
-
-