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 internal

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

solved: java.lang.ClassNotFoundException for listener class

2023-09-07 Thread Ivano Luberti
I was wong, the deployed context under eclipse and under tomcat autonomous instance were not identical at all. Form some reason when eclipse deploys the web application copy the class files under WEB-INF/services/  under WEB-INF/classes, so the tomcat class loading finds classes were expected

Re: Virtual Threads

2023-09-07 Thread Christopher Schultz
Mark, On 9/6/23 16:29, Mark Thomas wrote: On 06/09/2023 21:24, Christopher Schultz wrote: On 9/6/23 03:29, Mark Thomas wrote: On 05/09/2023 22:02, Christopher Schultz wrote: Thanks for the correction. I just did a quick docs[1] search for "virtual" in Tomcat 10.x for example and I didn't

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]

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.lang.ClassNotFoundException for listener class

2023-09-07 Thread Ivano Luberti
Hello all. I have developed a web application using Eclipse as an IDE and test environment and it runs as expected. Then I have built a war file and deployed it under another Tomcat instance. In both case tomcat version is 8.5 Under this last instance the application can't start and in the