Re: Problem with session timeout

2023-07-25 Thread Christopher Schultz

Helge,

On 7/25/23 05:24, Wiemann, Helge (ESI) wrote:
we have a problem that we have set the tomcat timeout to 10 minutes. But 
after a successful login with a realm, the user is automatically logged 
out, sometimes after one minute, sometimes other times.


I have downloaded the source code, want to set a breakpoint. Does 
anybody know a code place in tomcat where I can set a breakpoint when 
the session timeout is handled?


If you just want to find out what is killing your session, you could 
register an HttpSessionListener and dump stack traces to the log any 
time a session is either created or destroyed.


Thanks,
-chris

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with session timeout

2023-07-25 Thread Jonathan S. Fisher
Find all implementations of Session, then set breakpoiunt on
session.invalidate() would be a good place to start. Another good place
would be your SessionManager as it has several interesting methods.

The JVM's JDI does not allow you to set breakpoint on an interface, but
some IDE's have a magic trick where they'll find the implementations for
you and set the breakpoints on the implementations as they're loaded.

On Tue, Jul 25, 2023 at 4:25 AM Wiemann, Helge (ESI)
 wrote:

> Hi all,
>
>
>
> we have a problem that we have set the tomcat timeout to 10 minutes. But
> after a successful login with a realm, the user is automatically logged
> out, sometimes after one minute, sometimes other times.
>
>
>
> I have downloaded the source code, want to set a breakpoint. Does anybody
> know a code place in tomcat where I can set a breakpoint when the session
> timeout is handled?
>
>
>
> Best regards,
>
>
>
> Helge
>
>
>
>
>
>
>
>   
>
> Helge Wiemann
> Application Developer
>
> Mary-Somerville-Str. 4, DE- 28359 Bremen
> T: +49 800 000 6898
>
> helge.wiem...@adp.com
>
>
>
> [image: LinkedIn] [image: Twitter]
> [image: Facebook]
> [image: YouTube]
> [image: Instagram]
> 
>
> ADP Employer Services
> GmbH; Sitz der Gesellschaft: Neu-Isenburg; Registergericht: Amtsgericht 
> Offenbach am
> Main HRB 11980;
> Geschäftsführer Martijn Brand (Vorsitzender), Virginia Magliulo;
> Aufsichtsratsvorsitzende: Marcela Uribe
>
>
> This message and any attachments are intended only for the use of the
> addressee and may contain information that is privileged and confidential.
> If the reader of the message is not the intended recipient or an authorized
> representative of the intended recipient, you are hereby notified that any
> dissemination of this communication is strictly prohibited. If you have
> received this communication in error, notify the sender immediately by
> return email and delete the message and any attachments from your system.
>


-- 
Jonathan | exabr...@gmail.com
Pessimists, see a jar as half empty. Optimists, in contrast, see it as half
full.
Engineers, of course, understand the glass is twice as big as it needs to
be.


Problem with session timeout

2023-07-25 Thread Wiemann, Helge (ESI)
Hi all,

we have a problem that we have set the tomcat timeout to 10 minutes. But after 
a successful login with a realm, the user is automatically logged out, 
sometimes after one minute, sometimes other times.

I have downloaded the source code, want to set a breakpoint. Does anybody know 
a code place in tomcat where I can set a breakpoint when the session timeout is 
handled?

Best regards,

Helge



 [cid:image001.png@01D9BEEA.8EF13F20] 
Helge Wiemann
Application Developer

Mary-Somerville-Str. 4, DE- 28359 Bremen
T: +49 800 000 6898

helge.wiem...@adp.com

[LinkedIn][Twitter][Facebook][YouTube][Instagram]
ADP Employer Services GmbH; Sitz der Gesellschaft: Neu-Isenburg; 
Registergericht: Amtsgericht Offenbach am Main HRB 11980;
Geschäftsführer Martijn Brand (Vorsitzender), Virginia Magliulo; 
Aufsichtsratsvorsitzende: Marcela Uribe


This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, notify the sender immediately by return email and delete the message 
and any attachments from your system.


Re: Pinned threads for HTTP2 using Virtual Threads on Tomcat 10.1.7

2023-07-25 Thread Mark Thomas
Never mind. Pretty much as soon as I hit send I managed to trigger the 
issue.


Mark


On 25/07/2023 10:19, Mark Thomas wrote:

Daniel,

How did you trigger the pinning? I'm running some basic tests with 
-Djdk.tracePinnedThreads=short and I'm not seeing any pinned threads 
reported.


Mark


On 07/07/2023 13:45, Daniel Andres Pelaez Lopez wrote:

Mark,

Thanks for letting me know. I will wait for the August release to test.

Regards.


El jue, 6 jul 2023 a las 15:13, Mark Thomas () 
escribió:



6 Jul 2023 20:09:01 Daniel Andres Pelaez Lopez :


I am aware Tomcat community did a great effort to move Tomat to
Virtual Threads friendly, but I am not sure why HTTP2 was not part of
that effort?


The plan was always to see where the bottlenecks were as folks start to
experiment with Loom support and fix issues as they arose. It helps 
focus

effort on where it is really needed.

These fixes look fairly simple. We should be able to get them done for
the August releases (the July releases have already been tagged). We can
make -dev builds available earlier or you can build Tomcat from 
source to

test the changes if you are interested.

As it happens I've spent most of today looking at ThreadLocal vs
SynchronizedStack vs new Object() in various places in the Tomcat code
base without reaching a clear conclusion. Which kind of proves the point
that if we guess where bottlenecks might be we'll probably be wrong.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Pinned threads for HTTP2 using Virtual Threads on Tomcat 10.1.7

2023-07-25 Thread Mark Thomas

Daniel,

How did you trigger the pinning? I'm running some basic tests with 
-Djdk.tracePinnedThreads=short and I'm not seeing any pinned threads 
reported.


Mark


On 07/07/2023 13:45, Daniel Andres Pelaez Lopez wrote:

Mark,

Thanks for letting me know. I will wait for the August release to test.

Regards.


El jue, 6 jul 2023 a las 15:13, Mark Thomas () escribió:



6 Jul 2023 20:09:01 Daniel Andres Pelaez Lopez :


I am aware Tomcat community did a great effort to move Tomat to
Virtual Threads friendly, but I am not sure why HTTP2 was not part of
that effort?


The plan was always to see where the bottlenecks were as folks start to
experiment with Loom support and fix issues as they arose. It helps focus
effort on where it is really needed.

These fixes look fairly simple. We should be able to get them done for
the August releases (the July releases have already been tagged). We can
make -dev builds available earlier or you can build Tomcat from source to
test the changes if you are interested.

As it happens I've spent most of today looking at ThreadLocal vs
SynchronizedStack vs new Object() in various places in the Tomcat code
base without reaching a clear conclusion. Which kind of proves the point
that if we guess where bottlenecks might be we'll probably be wrong.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org