Tag Archives: permgen space

Eclipse and Tomcat:java.lang.OutOfMemoryError: PermGen space

When run web application in eclipse with tomcat server you maybe get this issue:

java.lang.OutOfMemoryError: PermGen space

 

Solution

Increase JVM parameters

-XX:PermSize=<size>
-XX:MaxPermSize=<size>

You do as follow step to do that:

  • Open server on eclipse server tab
  • Choose Open launch configuration
  • Open Agurment-> add above parameters with increase to VM agurment session

For example i usually use

-XX:PermSize=256m
-XX:MaxPermSize=256m