Tuesday, 4 August 2009

Glassfish and Eclipse : Cutting down the number of "out of PermGen space" errors

We've run into an issue where making and re-deploying several changes to a webapp on glassfish causes PermGen space errors. This behaviour has been observed when using the glassfish adapter in Eclipse whilst working on a JSF(1.2) application.

For a quick fix, edit your domains\{domain-name}\config\domain.xml and look for a line specifying the -XX:MaxPermSize. Try upping the value somewhat:

No comments: