quality@glassfish.java.net

Re: Is anyone else hitting 'OutOfMemoryError: PermGen space' on a regular basis with GlassFish 3.0 ?

From: Paul Merlin <eskatos_at_n0pe.org>
Date: Thu, 12 May 2011 09:56:32 +0200

Gang :)

Quoting "Manfred Riem" <mriem_at_manorrock.org>:
> I am not saying it is easy to fix. However the set of libraries that I am
> using is not causing any problems with regard to PermGen space, so your set of
> libraries is causing the problem. Not the application server, and it is
> very hard for the application server to solve the problem.

IMHO the container *cannot* solve the problem because it's totally use-case
dependant. The hypothetical solution would be different each time a library
introduce the issue.


> Hence my admonition to investigate which library is causing it.

I would definetely go that way and either push a fix upstream or eradicate this
library from my toolset.

If you're stuck with this library you could do something hardcore like "kill"
the incriminated references using reflection on application undeployment. But
this means you know how to find them and you're doing something ilegal in JEE
terms.


/Paul