Re: Virtual Thread Configuration In Tomcat 11

2023-09-07 Thread Christopher Schultz
William, On 9/7/23 08:04, William Crowell wrote: When I set -Djdk.tracePinnedThreads=short, then I see this: … Thread[#41,ForkJoinPool-1-worker-4,5,CarrierThreads] com.mysql.cj.jdbc.ConnectionImpl.isValid(ConnectionImpl.java:2516) <== monitors:1 Thread[#39,ForkJoinPool-1-worker-2,5,Carrie

Re: Virtual Thread Configuration In Tomcat 11

2023-09-07 Thread William Crowell
When I set -Djdk.tracePinnedThreads=short, then I see this: … Thread[#41,ForkJoinPool-1-worker-4,5,CarrierThreads] com.mysql.cj.jdbc.ConnectionImpl.isValid(ConnectionImpl.java:2516) <== monitors:1 Thread[#39,ForkJoinPool-1-worker-2,5,CarrierThreads] com.mysql.cj.jdbc.ConnectionImpl.isVali

Re: Virtual Thread Configuration In Tomcat 11

2023-09-07 Thread William Crowell
Chris, I did set -Djdk.tracePinnedThreads=full and found there were a few pinned threads: Thread[#43,ForkJoinPool-1-worker-4,5,CarrierThreads] java.base/java.lang.VirtualThread$VThreadContinuation.onPinned(VirtualThread.java:185) java.base/jdk.internal.vm.Continuation.onPinned0(Conti

Re: Virtual Thread Configuration In Tomcat 11

2023-09-06 Thread Christopher Schultz
William, On 9/5/23 17:41, William Crowell wrote: Great post earlier today! This is a super interesting topic to me. You can find the performance testing results located here: http://ec2-18-188-185-212.us-east-2.compute.amazonaws.com:8080/web-report/ I did 10 runs with 1000 threads with a ram

Re: Virtual Thread Configuration In Tomcat 11

2023-09-05 Thread William Crowell
Chris, Great post earlier today! This is a super interesting topic to me. You can find the performance testing results located here: http://ec2-18-188-185-212.us-east-2.compute.amazonaws.com:8080/web-report/ I did 10 runs with 1000 threads with a ramp up time of 3 seconds for a duration of 20

Re: Virtual Thread Configuration In Tomcat 11

2023-09-05 Thread Christopher Schultz
William, On 8/24/23 09:50, William Crowell wrote: I did some performance testing with virtual threads on Apache Tomcat 11.0.0-M10 and JDK 21 (21+35-2513). I have a simple REST service using Spring 6.0.11 that does an insert into MySQL 8.0.32. I have 3 separate boxes all running Rocky Linux 9.2

Re: Virtual Thread Configuration In Tomcat 11

2023-08-24 Thread William Crowell
I did some performance testing with virtual threads on Apache Tomcat 11.0.0-M10 and JDK 21 (21+35-2513). I have a simple REST service using Spring 6.0.11 that does an insert into MySQL 8.0.32. I have 3 separate boxes all running Rocky Linux 9.2 on AWS (t3a.xlarge which is 4 vCPUs and 16GiB R

Re: Virtual Thread Configuration In Tomcat 11

2023-08-23 Thread Mark Thomas
On 23/08/2023 10:07, William Crowell wrote: Mark, Thanks for your reply. Just to clarify…this is all I need in Tomcat 11’s server.xml (as well as JDK21): … Correct. Mark - To unsubscribe, e-mail: users-unsubscr...@t

Re: Virtual Thread Configuration In Tomcat 11

2023-08-23 Thread William Crowell
Mark, Thanks for your reply. Just to clarify…this is all I need in Tomcat 11’s server.xml (as well as JDK21): … … Regards, William Crowell This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any a

Re: Virtual Thread Configuration In Tomcat 11

2023-08-22 Thread Mark Thomas
https://tomcat.apache.org/tomcat-11.0-doc/config/http.html Search for useVirtualThreads The same option exists in the latest 8.5.x, 9.0.x and 10.1.x releases. You need to be using Java 21 to use virtual threads. Mark On 22/08/2023 14:14, William Crowell wrote: Hi, To use virtual threads in

Virtual Thread Configuration In Tomcat 11

2023-08-22 Thread William Crowell
Hi, To use virtual threads in Tomcat 11, do you need to configure anything with the connectors in server.xml, or does Tomcat 11 use virtual threads by default (with JDK 21)? Is there any documentation as of yet to configure virtual threads? The only samples I have seen are with Spring Boot us