users@glassfish.java.net

Re: How can web sessions leak?

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Wed, 05 Nov 2008 15:04:58 -0500

Jan Luehe wrote:
> 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
We're using SJSAS 9.1 UR2 with a support contract. So, these bug fixes
did not go into later update releases, correct? I don't think we can use
GlassFish V3 Prelude because I read somewhere that it isn't a full Java
EE 5 app server and we use a lot of Java EE 5 features. For GlassFish
2.1 we'll need to test our product on it before going into production.

Ideally I would be able to reproduce the problem first, then try
GlassFish 2.1 and see if I can still reproduce the problem.


Thanks,
Ryan