Popular Posts

Monday, February 7, 2011

Explaining java.lang.OutOfMemoryError: PermGen space

If you get the exception java.lang.OutOfMemoryError: PermGen space

we need to set the following environment variable as follows.
Goto MyComputer - RightClick->Advanced tab- RightClick->EnvironmentVariables -RightClick->
SystemVariable-> Click on New button
and add the below.
Variable name is JAVA_OPTS and
Variable Value is -Xms1024m -Xmx1024m -XX:MaxPermSize=128m

No comments:

Post a Comment