users@glassfish.java.net

Re: How can web sessions leak?

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 05 Nov 2008 17:25:34 -0800

On 11/ 5/08 01:23 PM, Ryan de Laplante wrote:
>
>>
>> Ryan, we're down to 9.1 UR2 patch 4 (see
>> http://blogs.sun.com/GlassFishForBusiness/entry/sjs_as_9_1_u23).
>> Maybe some of these issues are fixed already (sorry I haven't checked).
>> -Alexis
>
> Thank you. I am aware of these patch releases and reviewed the list
> of changes again today and didn't see anything that resembled the
> problem I am having. Upgrading is not a simple task for us because
> it involves a complete re-install and sometimes up to 4 hours of
> configuration. We've tried the upgrade feature in the setup and found
> that it corrupted our domain.xml and the server wouldn't start.
>
>>> I could create a patch based on SJSAS 9.1 UR2 and have you try to
>>> reproduce the issue.
>>>
>>> Let me know if that would work for you.
>>>
>>> Thanks,
>>> Jan
>
> Thanks, I'll let you know if we require that. I imagine the proper
> way to go about this would be to open a support incident so that it
> can be tracked.
>
>
> I managed to get the NetBeans Profiler working and took snapshots
> before the transaction, after the transaction, then after 10 minutes
> when the session is configured to expire. I don't really understand
> what I'm looking at because it looks like the session objects might
> still be there. Is there a better way to diagnose this?
> System.out.println? :)

One good place to add diagnostic output would be in

   
appserv-webtier/src/java/org/apache/catalina/session/ManagerBase.remove(Session).

There, you could add:

  System.out.println(session.getIdInternal());

This would tell us if the reaper thread is getting a chance to remove
sessions
that have been invalidated or have expired.


Jan


>
>
> Thanks,
> Ryan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>