Re: NIO Thread Madness

2025-03-25 Thread William Crowell
Mark, I think we might have found something. I think the DBCP2 connection pool is returning stale connections from Oracle. There is no firewall between Tomcat and Oracle, but I looked at the context.xml and found the following: … accessToUnderlyingConnectionAllowed=”true” maxIdle=”100” maxWai

Re: NIO Thread Madness

2025-03-25 Thread Mark Thomas
On 25/03/2025 12:33, William Crowell wrote: Mark, I believe there is a proxy involved here that does TLS decrypt, but I noticed they had the redirectPort on the 8080 connector set to 8443. When you try to hit Tomcat directly over port 8080 using HTTP it is hung. Hmm. Both the Acceptor threa

Re: NIO Thread Madness

2025-03-25 Thread William Crowell
Mark, I believe there is a proxy involved here that does TLS decrypt, but I noticed they had the redirectPort on the 8080 connector set to 8443. When you try to hit Tomcat directly over port 8080 using HTTP it is hung. Regards, William Crowell From: Mark Thomas Date: Tuesday, March 25, 2025

Re: NIO Thread Madness

2025-03-25 Thread Mark Thomas
On 25/03/2025 11:24, William Crowell wrote: Chris, Looking at JMX is the next step. I make a request and Tomcat never returns, and I do not get a “connection refused”. It just sits and hangs. Looking that the thread dump you sent me privately now. Which port/protocol are you using to conne

Re: NIO Thread Madness

2025-03-25 Thread William Crowell
Chris, Looking at JMX is the next step. I make a request and Tomcat never returns, and I do not get a “connection refused”. It just sits and hangs. Regards, William Crowell From: Christopher Schultz Date: Tuesday, March 25, 2025 at 7:20 AM To: users@tomcat.apache.org Subject: Re: NIO Threa

Re: NIO Thread Madness

2025-03-25 Thread Christopher Schultz
William, On 3/24/25 2:56 PM, William Crowell wrote: I am running Apache Tomcat 9.0.97 on Windows Server 2022. I’m running Oracle JDK 1.8.0_371-b11 with a 4GB min heap and a 16GB max heap. I have an application deployed on this server that is hitting an Oracle database server. I have noticed

Re: [OT] NIO Thread Madness

2025-03-25 Thread William Crowell
Chris, That’s a very good point, and that is something we will do. Regards, William Crowell From: Christopher Schultz Date: Tuesday, March 25, 2025 at 7:16 AM To: users@tomcat.apache.org Subject: Re: [OT] NIO Thread Madness William, On 3/24/25 2:56 PM, William Crowell wrote: > I am running A

Re: [OT] NIO Thread Madness

2025-03-25 Thread Christopher Schultz
William, On 3/24/25 2:56 PM, William Crowell wrote: I am running Apache Tomcat 9.0.97 on Windows Server 2022. I’m running Oracle JDK 1.8.0_371-b11 with a 4GB min heap and a 16GB max heap. Might I suggest that you stick with both min and max heap sizes set to 16GiB? If you expect to run for

Re: NIO Thread Madness

2025-03-25 Thread Mark Thomas
Can you provide those after the issue thread dumps? Privately is fine if you don't want to share them publicly. Tomcat not responding to any requests is something that shouldn't happen. I'd like to understand what is going on. Mark On 25/03/2025 10:22, William Crowell wrote: Mark, I did t

Re: NIO Thread Madness

2025-03-25 Thread William Crowell
Mark, I did take 3 thread dumps, but it was after the issue occurred. The thread dumps just show threads in a waiting for work state. They are not doing anything. They are not blocked. When I attach JProfiler to the JVM then it points out that the threads were blocked during that short peri

Re: NIO Thread Madness

2025-03-25 Thread Mark Thomas
On 24/03/2025 18:56, William Crowell wrote: Are there any logs I can enable to find out why the application server stops accepting connections? I'd suggest taking 3 thread dumps approx 5s apart when this happens. Hopefully you'll see a bunch of threads waiting on the database and where th