RE: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-04-11 Thread Rose Mary P T
formula: (connectionCount – keepAliveCount) is still considered a reliable way to determine the number of virtual threads that are created or active at any point in time when using useVirtualThreads="true". I would appreciate any insights or clarifications on this. Thanks, Rose Mary

Re: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-04-09 Thread Mark Thomas
whether the following executor and connector setup in Tomcat 10.1.36 is correct? className="org.apache.catalina.core.StandardVirtualThreadExecutor"/> That should work. Although I do wonder on why you have configured an executor here. There isn't really any point with vir

RE: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-04-09 Thread Rose Mary P T
Hi Mark, I hope this message finds you well. I just wanted to send a quick reminder regarding the email I sent on 3rd April,2025 about Monitoring Virtual Threads via JMX / MBeans in Tomcat . If you haven’t had the chance to review it yet, I would greatly appreciate your thoughts or any updates

RE: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-04-03 Thread Rose Mary P T
#workerThreadName. Please see the screenshot : * [cid:image001.png@01DBA4BE.812049C0] I would greatly appreciate your insight into this matter, especially if the configuration provided requires any adjustments or if there are specific conditions I need to be aware of for the virtual threads to function as

Re: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-04-03 Thread Mark Thomas
fic aspects to investigate further. Any guidance on what to focus on next would be greatly appreciated. Additionally, could you suggest if there is any MBean attribute that can help identify whether the threads being used are virtual threads or platform threads? For Tomcat requests, the curr

RE: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-04-02 Thread Rose Mary P T
e, and the connectionCount remains at 1. I’d appreciate any additional guidance on where I should focus next, or if there are other specific aspects I should investigate further. Also, any suggestions on an MBean attribute to differentiate between virtual threads and platform threads would be real

RE: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-03-28 Thread Rose Mary P T
nally, could you suggest if there is any MBean attribute that can help identify whether the threads being used are virtual threads or platform threads? Thank you for your continued support. Best Regards, Rose Mary From: Mark Thomas Date: Thursday, 27 March 2025 at 9:25 PM To: users@tomcat.apach

Re: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-03-27 Thread Mark Thomas
created a sample Spring Boot application that continuously creates virtual threads in a loop. If the application is creating the threads then this won't work. The (connectionCount - keepAliveCount) approach only works for virtual threads created by Tomcat for processing requests. I

Re: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-03-26 Thread Rose Mary P T
continuously creates virtual threads in a loop. * The application was deployed in the TOMCAT_LOCATION/webapps directory and started on localhost. In Apache Tomcat 10.1.36, we added the following configuration to the server.xml file to enable virtual threads: Its observed in the logs that

Re: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-03-26 Thread Rose Mary P T
continuously creates virtual threads in a loop. * The application was deployed in the TOMCAT_LOCATION/webapps directory and started on localhost. In Apache Tomcat 10.1.36, we added the following configuration to the server.xml file to enable virtual threads: Its observed in the logs that

Re: Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-03-06 Thread Mark Thomas
alternate ways with which we can monitor this from tomcat side.? (connectionCount - keepAliveCount) should be a reasonable estimate of the virtual threads currently being used. If the requests are synchronous (and there is little point using virtual threads with async requests) then the creation

Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-03-05 Thread Joash Jose
Clarification: We have configured Tomcat 10.1.33 with, While this works, the existing ThreadPool MBeans show currentThreadsBusy=-1 and maxThreads=200 (incorrect in case of virtual threads). Is this expected behavior? JVM vs. Tomcat Metrics: We observe that the JVM’s java.lang.management.ThreadMXBean

Monitoring Virtual Threads via JMX / MBeans in Tomcat

2025-03-05 Thread Joash Jose
Clarification: We have configured Tomcat 10.1.33 with, While this works, the existing ThreadPool MBeans show currentThreadsBusy=-1 and maxThreads=200 (incorrect in case of virtual threads). Is this expected behavior? JVM vs. Tomcat Metrics: We observe that the JVM’s java.lang.management.ThreadMXBean

Re: Tomcat Virtual Threads Performance

2025-01-21 Thread Christopher Schultz
All, On 1/21/25 7:12 AM, Mark Thomas wrote: On 21/01/2025 11:17, joan.balagu...@ventusproxy.com wrote: Hi, Virtual threads only shine on I/O bound tasks, in terms of throughput (not latency). They were created for that, don't expect any improvement on CPU bound tasks. +1. If I h

Re: Tomcat Virtual Threads Performance

2025-01-21 Thread Mark Thomas
On 21/01/2025 11:17, joan.balagu...@ventusproxy.com wrote: Hi, Virtual threads only shine on I/O bound tasks, in terms of throughput (not latency). They were created for that, don't expect any improvement on CPU bound tasks. +1. If I had to guess, I'd guess something to do with c

RE: Tomcat Virtual Threads Performance

2025-01-21 Thread joan.balaguero
Hi, Virtual threads only shine on I/O bound tasks, in terms of throughput (not latency). They were created for that, don't expect any improvement on CPU bound tasks. Regards, Joan. -Original Message- From: Owner Sent: Tuesday, January 21, 2025 11:32 AM To: Tomcat Users

Re: Tomcat Virtual Threads Performance

2025-01-21 Thread Owner
5 at 16:40, Owner wrote: > > > Hey Tomcat, > > > > Andy here. I'm not sure if this is the place to ask this question, but I > > wanted to check regarding performances of virtual threads vs using a > > conventional worker thread pool. > > > > I se

Re: Tomcat Virtual Threads Performance

2025-01-21 Thread Maxim Solodovnik
your image was dropped :(( please use some image image service and provide the URL here :)) On Tue, 21 Jan 2025 at 16:40, Owner wrote: > Hey Tomcat, > > Andy here. I'm not sure if this is the place to ask this question, but I > wanted to check regarding performances of virtual

Tomcat Virtual Threads Performance

2025-01-21 Thread Owner
Hey Tomcat, Andy here. I'm not sure if this is the place to ask this question, but I wanted to check regarding performances of virtual threads vs using a conventional worker thread pool. I set up an endpoint with a CPU task of calculating factorials like the below: @GetMapping(&quo

Re: Virtual Threads

2023-09-07 Thread Mark Thomas
On 07/09/2023 15:41, Christopher Schultz wrote: On 9/6/23 16:29, Mark Thomas wrote: There isn't much point using an executor with virtual threads. Okay then perche https://tomcat.apache.org/tomcat-11.0-doc/config/executor.html#Virtual_Thread_Implementation ? That is the int

Re: Virtual Threads

2023-09-07 Thread Christopher Schultz
quot;virtual" anywhere on that page. It is a Connector attribute, not an Executor attribute. There isn't much point using an executor with virtual threads. Okay then perche https://tomcat.apache.org/tomcat-11.0-doc/config/executor.html#V

Re: Virtual Threads

2023-09-06 Thread Mark Thomas
It is a Connector attribute, not an Executor attribute. There isn't much point using an executor with virtual threads. For those of you that are finding this topic interesting, I'll have a talk on this at the ASF conference, Community Over Code in Halifax. https://communityovercode.

Re: Virtual Threads

2023-09-06 Thread Christopher Schultz
Mark, On 9/6/23 03:29, Mark Thomas wrote: On 05/09/2023 22:02, Christopher Schultz wrote: Mark, On 9/5/23 15:55, Mark Thomas wrote: On 05/09/2023 20:38, Christopher Schultz wrote: All, I have some questions about Virtual Threads and their use within Tomcat. Note that only Tomcat 11

Re: Virtual Threads

2023-09-06 Thread Mark Thomas
On 05/09/2023 22:02, Christopher Schultz wrote: Mark, On 9/5/23 15:55, Mark Thomas wrote: On 05/09/2023 20:38, Christopher Schultz wrote: All, I have some questions about Virtual Threads and their use within Tomcat. Note that only Tomcat 11 currently has support for Virtual Threads when

Re: Virtual Threads

2023-09-05 Thread Christopher Schultz
Mark, On 9/5/23 15:55, Mark Thomas wrote: On 05/09/2023 20:38, Christopher Schultz wrote: All, I have some questions about Virtual Threads and their use within Tomcat. Note that only Tomcat 11 currently has support for Virtual Threads when running on a version 19 or later JVM. Not quite

Re: Virtual Threads

2023-09-05 Thread Mark Thomas
On 05/09/2023 20:38, Christopher Schultz wrote: All, I have some questions about Virtual Threads and their use within Tomcat. Note that only Tomcat 11 currently has support for Virtual Threads when running on a version 19 or later JVM. Not quite. All current versions support virtual threads

Virtual Threads

2023-09-05 Thread Christopher Schultz
All, I have some questions about Virtual Threads and their use within Tomcat. Note that only Tomcat 11 currently has support for Virtual Threads when running on a version 19 or later JVM. My (admittedly limited) understanding is that the use of Virtual Threads, specifically within Tomcat

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

2023-07-28 Thread Mark Thomas
st 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

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

2023-07-28 Thread Rémy Maucherat
; > >>> Regards. > >>> > >>> > >>> El jue, 6 jul 2023 a las 15:13, Mark Thomas () > >>> escribió: > >>>> > >>>> > >>>> 6 Jul 2023 20:09:01 Daniel Andres Pelaez Lopez : > >>>> > >

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

2023-07-27 Thread Mark Thomas
es 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 T

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

2023-07-25 Thread Mark Thomas
id 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 need

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

2023-07-25 Thread Mark Thomas
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

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

2023-07-07 Thread Daniel Andres Pelaez Lopez
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 &

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

2023-07-06 Thread Mark Thomas
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

Pinned threads for HTTP2 using Virtual Threads on Tomcat 10.1.7

2023-07-06 Thread Daniel Andres Pelaez Lopez
Hi community, I am working on a Spring Boot + Tomcat embedded application using Virtual Threads (https://openjdk.org/jeps/425), and everything looks great until we activate HTTP2. We started to see the following logs: Thread[#72,ForkJoinPool-1-worker-9,5,CarrierThreads