PermGen Errors

Keep getting PermGen out of memory errors? This is very prevalent during debugging as many platforms, such as JBoss, use up the space by re-creating classes with different classloaders (which is what you want when you’re debugging and restarting applications).

There is a relatively easy fix though… increase the size allocated by the JVM on startup.

java -XX:PermSize=64m -XX:MaxPermSize=256m com.elegando.MainClass

You can obviously add those same parameters to your JBoss application server launcher.

Categorized as Uncategorized Tagged