quality@glassfish.java.net

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

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Thu, 12 May 2011 07:48:51 +0200

Hi Manfred

On 11 May 2011 19:10, Manfred Riem <mriem_at_manorrock.org> wrote:

> Hi Richard,
>
>
>
> 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.
>
>
>
> Hence my admonition to investigate which library is causing it.
>

Being hypothetical here :
If 20% of the 10's of thousands of open source libraries out there cause
this problem. I think the problem is with the application server.
If 5% of the same libraries cause this issue, then I agree, fix the
libraries.

Do you agree with the above ?

I am going to forward an email I saw on the Glassfish user list that I think
is a MaxPerm gen issue manifesting.

regards
Richard




>
>
> Regards,
> Manfred
>
>
>
> *From:* Richard Kolb [mailto:rjdkolb_at_gmail.com]
> *Sent:* Wednesday, May 11, 2011 10:50 AM
>
> *To:* quality_at_glassfish.java.net
> *Subject:* Re: Is anyone else hitting 'OutOfMemoryError: PermGen space' on
> a regular basis with GlassFish 3.0 ?
>
>
>
> Hi Manfred
>
> But you must realize this is a known issue , and now documented issue,
> http://java.net/jira/browse/GLASSFISH-13053
>
> Have a look at this blog by Frank Kieviet (Oracle): - Quite difficult to
> understand, since it's not a simple matter
> http://blogs.oracle.com/fkieviet/entry/classloader_leaks_the_dreaded_java
>
> and then how to 'Fix':
> http://blogs.oracle.com/fkieviet/entry/how_to_fix_the_dreaded
> http://blogs.oracle.com/fkieviet/entry/more_on..._how_to_fix
>
> regards
> Richard
>
> On 11 May 2011 16:44, Manfred Riem <mriem_at_manorrock.org> wrote:
>
> Hi Matthias,
>
>
>
> While I understand where you are coming from I would seriously investigate
> which library is causing this problem. I routinely redeploy applications
> and
> I do not hit PermGen space errors for a long long long (months) while.
>
>
>
> I know that it is not a fix, but if you can isolate the culprit you might
> be
>
> able to replace it with a better library.
>
>
>
> Regards,
> Manfred
>
>
>
>
>
> *From:* matthias.fraass_at_tricoder.net [mailto:matthias.fraass_at_gmail.com]
> *Sent:* Wednesday, May 11, 2011 7:51 AM
> *To:* quality_at_glassfish.java.net
> *Subject:* Re: Is anyone else hitting 'OutOfMemoryError: PermGen space' on
> a regular basis with GlassFish 3.0 ?
>
>
>
> Hi Folks,
>
>
>
> sad but true: One of the important features of a app server - to redeploy
> one application while the others are still running - has been defeated by
> this :(. I just can't trust on "I guess PermGen space will be enough after
> this redeployment" in a production environment.
>
>
>
> So this bug (more of a GC design error...) made us restart our production
> app servers after every redeployment.
>
> Which means we can only restart it at 01:00 am.
>
> Which means that there are no monitored redeployments during office times.
>
>
>
> That was really a big disappointment in JEE.
>
>
>
> -Matthias
> ------------------------------
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1325 / Virus Database: 1500/3629 - Release Date: 05/10/11
>
>
> ------------------------------
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1375 / Virus Database: 1500/3630 - Release Date: 05/11/11
>