12/06/2011

java.lang.OutOfMemoryError: PermGen space

It is an basic Hibernate/JPA + IceFaces/JSF application running on Tomcat 6 and JDK 1.6.
this Exception Can be occur when redeploying the application.



Solution:
The solution this tag flags to JVM command line when Tomcat is started
" -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled "
Stop the tomcat &
go into tomcat bin directory tomcat6w.exe

3 comments: