Re: [OT] how to programmatically expire inactive sessions?

2012-10-11 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shanti, On 10/10/12 2:55 PM, Shanti Suresh wrote: I am also just curious how much active heap you are really using. From the previous heapdumps the script generated, what size are these? Was there a reason you needed a hu

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shanti, On 10/10/12 2:55 PM, Shanti Suresh wrote: > I am also just curious how much active heap you are really using. > From the previous heapdumps the script generated, what size are > these? Was there a reason you needed a huge heap like 25GB? Yes.

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Shanti Suresh
Hi Kirill, I am also just curious how much active heap you are really using. From the previous heapdumps the script generated, what size are these? Was there a reason you needed a huge heap like 25GB? What is the lowest heap size you have tried so far? You may need to invoke the script 10 seco

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Mark Thomas
On 10/10/2012 19:30, Kirill Kireyev wrote: > Thanks Mark! > > So currently ContainerBackgroundProcessor is sleeping: > 0x5f31027.4 > "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio=10 > tid=0x0306c800 nid=0x5f31 sleeping[0x7fa2e9dcb000] > > What should

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Kirill Kireyev
Thanks Mark! So currently ContainerBackgroundProcessor is sleeping: 0x5f31    0    27.4    "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio=10 tid=0x0306c800 nid=0x5f31 sleeping[0x7fa2e9dcb000] What should

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Mark Thomas
On 10/10/2012 19:24, Kirill Kireyev wrote: > Thanks Shanti! > > I think your hypothesis is that these sessions remain active, due to > client-side polling. However, I don't think that's the case - these > sessions are listed as *inactive* (or rather inactive for longer than 20 > mins) in the Tomca

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Kirill Kireyev
Thanks Shanti! I think your hypothesis is that these sessions remain active, due to client-side polling. However, I don't think that's the case - these sessions are listed as *inactive* (or rather inactive for longer than 20 mins) in the Tomcat manager web

Re: how to programmatically expire inactive sessions?

2012-10-10 Thread Shanti Suresh
Hi Kirill, At this point, I'm thinking that perhaps a network traffic capture might give you some clues. Just see the kind of traffic coming in to the server. You may use wireshark easily to both capture and see traffic. Setup up a capture filter to capture traffic to and from your server machi

Re: how to programmatically expire inactive sessions?

2012-10-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kirill, On 10/9/12 2:36 PM, Kirill Kireyev wrote: > I never modified/extended the Tomcat code, so I doubt it. This has nothing to do with Tomcat's code: HttpSessionBindingListener and HttpSessionListener are servlet-API interfaces that you might impl

Re: how to programmatically expire inactive sessions?

2012-10-09 Thread Kirill Kireyev
I never modified/extended the Tomcat code, so I doubt it. Could it be that I'm allocating too much heap memory (-Xmx2M), so that Tomcat doesn't feel the urgency to clean up? Is is possible that you have a broken HttpSessionBindingListener or HttpSessi

Re: how to programmatically expire inactive sessions?

2012-10-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kirill, On 10/9/12 12:22 PM, Kirill Kireyev wrote: > I think I figured it out. It seems /manager/text/expire only lists > the expiration info, instead of expiring sessions. Also, wget > wasn't authenticating me properly. Instead I used curl against th

Re: how to programmatically expire inactive sessions?

2012-10-09 Thread Kirill Kireyev
I think I figured it out. It seems /manager/text/expire only lists the expiration info, instead of expiring sessions. Also, wget wasn't authenticating me properly. Instead I used curl against the html interface:     curl --anyauth -u xxx:yyy --data "idle=20" -d pa

how to programmatically expire inactive sessions?

2012-10-07 Thread Kirill Kireyev
Hi, I'm trying to force expirations of inactive sessions in Tomcat. (For some reason, sessions that are inactive longer than timeout don't expire automatically - not sure why?) I can do it just fine, from the Tomcat Manager web app, by clicking the "Expire