users@glassfish.java.net

Re: How can web sessions leak?

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 05 Nov 2008 11:54:46 -0800

Ryan,

On 11/ 5/08 10:42 AM, Ryan de Laplante wrote:
> Hi,
>
> I'm investigating a heap dump of GlassFish and my application that has
> recently had "out of heap space" errors twice over the last few
> weeks. I noticed that there are about 85 web session instances
> hanging around. Some are successful transactions, others incomplete
> or failed transactions. There doesn't seem to be a pattern and I know
> that thousands of other transactions have completed without leaking
> their sessions.
>
> I'm wondering if anyone has a clue what I should be looking for?
> Also, these sessions are no more than a few KB each so I can't see
> this causing my out of heap space exceptions. I'm having hard time
> knowing where to start or what to look for.

Which version of GlassFish are you using?

Several related issues have been fixed in GlassFish v3 Prelude and the
upcoming GlassFish v2.1, including:

  https://glassfish.dev.java.net/issues/show_bug.cgi?id=4276
  https://glassfish.dev.java.net/issues/show_bug.cgi?id=4662
  https://glassfish.dev.java.net/issues/show_bug.cgi?id=5326

Thanks!

Jan