views:

569

answers:

1

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.

+1  A: 

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.

Taylor Leese
thanks for your reply,i tried this option,but still showing the same issue.
vipin k.
Did you try the other options as well in the article (-XX:+UseConcMarkSweepGC, -XX:+CMSPermGenSweepingEnabled, -XX:+CMSClassUnloadingEnabled)?
Taylor Leese
I agree, Taylor L. Also, upping permgen just delays the inevitable.
opyate