Register a HttpSessionListener, and log the session destroy message in 
the sessionDestroyed method.

-- padhu

Michael Schulz wrote:

>A few questions:
>
>1) does the session listener document when sessions are destroyed?
>
>2) are there other servlets in your web app that might be causing the
>activity?
>
>3) what does your access_log indicate in the way of inbound requests?
>
>-Mike
>
>
>-----Original Message-----
>From: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 09, 2002 1:29 PM
>To: [EMAIL PROTECTED]
>Subject: Too Many Sessions!
>
>
>I'm using Tomcat 4.1.12 on a NT 4.0 system. I've been watching my logs and
>I'm noticing a lot of sessions being created for no apparent reason when
>there is no user activity on the system and no activity (as far as I can
>tell) in my servlet. Here's a sample from the logs...
>
>2002-10-09 11:05:15 SessionListener:
>sessionCreated('3A797C529EA64DFE2835FC163C808C74')
>2002-10-09 11:06:15 SessionListener:
>sessionCreated('62DB4B6BBFD87BD901CD67925BB7BA95')
>2002-10-09 11:07:15 SessionListener:
>sessionCreated('35769A4EDF71CA68BAA0B14F6B64348B')
>2002-10-09 11:08:15 SessionListener:
>sessionCreated('D6A1C6EC234A30520747F2F5B09DD202')
>2002-10-09 11:09:15 SessionListener:
>sessionCreated('8B0C9B610F981455C3FE6AA2F91E21E7')
>2002-10-09 11:10:15 SessionListener:
>sessionCreated('A1E38AF2FD1205E17D50FF3076AF5321')
>2002-10-09 11:11:16 SessionListener:
>sessionCreated('86F7A09B20EFE4543C616B06CEC466A5')
>2002-10-09 11:12:16 SessionListener:
>sessionCreated('D412A5666498AC7AB6BF399528ECEAE3')
>2002-10-09 11:13:16 SessionListener:
>sessionCreated('C0BE7ED4A39351037FFD31888895F2FF')
>2002-10-09 11:14:16 SessionListener:
>sessionCreated('3A0636F5D4D9792046D34A93B73C0ACC')
>2002-10-09 11:15:16 SessionListener:
>sessionCreated('E88FF2298D7B759935645E9C1C42DC12')
>2002-10-09 11:16:16 SessionListener:
>sessionCreated('F7AC12D14074EA64011E68B6F172D11E')
>2002-10-09 11:17:16 SessionListener:
>sessionCreated('E92ECABF368D493D153C47C226FF866F')
>2002-10-09 11:18:16 SessionListener:
>sessionCreated('E9F98E0A3EA854651E1B0D4CCF733FC2')
>2002-10-09 11:19:16 SessionListener:
>sessionCreated('F801FDE7AEEBEE752557FB3643508588')
>2002-10-09 11:20:16 SessionListener:
>sessionCreated('97C59E7E75185C5827FA884FA11F61FC')
>2002-10-09 11:21:16 SessionListener:
>sessionCreated('EF50BAF04FE94D93A24F5CD4520BC613')
>
>So you can see that about once per minute a new session is being created. I
>can't see (from the listeners) that any of these sessions are ever
>destroyed. Can anyone give me an idea of why this is happening and if it's
>part of a normal Tomcat process, or might be the result of something stupid
>I might be doing in my servlet.
>
>I'd be happy to provide more info.
>
>Thanks
>
>Cindy
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>  
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to