Preskočiť na hlavný obsah

java.lang.OutOfMemoryError: PermGen space failure

The "OutOfMemoryError: PermGen space" exception is normally encountered in development process where a long-running JVM is asked to reload builds.


The message is a side effect of an incomplete garbage collection sweep where resources are not properly released upon reload. There is no shortage of debate (Hibernate forum, Sun forum, Spring Framework forum ) regarding which codebase is responsible for this symptom, but the finger of blame has been pointed at CGLIB, Hibernate, Tomcat, and even Sun's JVM.

In general, this is an interoperability issue and can be resolved by changing one of the devel components. Some users have reported success by upgrading to the latest Tomcat 6.0.X release, others have simply switched for another webcontainer implementation (like JBoss, Jetty or Resin).

I prefere the way of resolving this issue to switch from Sun's JDK to ORACLE's one - JRockit implementation.

Obľúbené príspevky z tohto blogu

mysql 5.0 upgrade to 5.1

The 5.1 series of MySQLwas unmasked for the gentoo portage. When upgrading from an older major version (including 5.0), you will be required to rebuild everything linked to the libmysqlclient.so.15 and libmysqlclient_r.so.15. You can do this by installing app-portage/gentoolkit and running: # revdep-rebuild --library libmysqlclient.so.15 # revdep-rebuild --library libmysqlclient_r.so.15 If you use the Portage 2.2 series, you may also use: # emerge @preserved-rebuild The official upgrade documentation is available here: http://dev.mysql.com/doc/refman/5.1/en/upgrading.html Note that existing databases may need converting as well, again including those upgrading from 5.0 to 5.1.