RE: Tomcat acceptCount limitation and connection refused errors

2025-08-07 Thread John Williams
Hi Chuck, Have tested with both on a server that is up and running already servicing clients and also right after restart. Don't think thread creation time is the bottleneck here. I don’t have Linux access currently. If I manage to test, I will let you know. Regards, John -Original Mess

Re: How to access a REST service

2025-08-07 Thread Robert Turner
(sorry for any errors, I'm bashing this out quickly on my phone before going to bed) On Fri, Aug 8, 2025, 00:59 Daniel Schwartz wrote: > Hello Chuck, > > You are correct, I only catch SQL exceptions. I have modified my code so > that the Connection object will be closed if an SQL exception is t

RE: How to access a REST service

2025-08-07 Thread Daniel Schwartz
Hello Chuck, You are correct, I only catch SQL exceptions. I have modified my code so that the Connection object will be closed if an SQL exception is thrown, but I wasn’t aware that there are other types of exceptions that I should look for. I will look into this. However, I don’t think tha

RE: How to access a REST service

2025-08-07 Thread Daniel Schwartz
From: Chuck Caldarale Sent: Thursday, August 7, 2025 11:52 PM To: Tomcat Users List Subject: Re: How to access a REST service > On 2025 Aug 7, at 21:43, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > > I have > just posted everything again, this time with a few modifications. You

Re: How to access a REST service

2025-08-07 Thread Chuck Caldarale
> On 2025 Aug 7, at 21:43, Daniel Schwartz wrote: > > I have just posted everything again, this time with a few modifications. You > say, "Last time you posted it, it was prone to leaking connection." Could > you say more exactly where you see saw the leak? You only catch errors of the ty

RE: How to access a REST service

2025-08-07 Thread Daniel Schwartz
Hello Robert, I have just posted everything again, this time with a few modifications. You say, "Last time you posted it, it was prone to leaking connection." Could you say more exactly where you see saw the leak? Thanks, Dan Schwartz -Original Message- From: Robert Turner Sent: T

RE: How to access a REST service

2025-08-07 Thread Daniel Schwartz
Robert, Chris, and others who have responded to my queries, Everyone is convinced that I have problem with my code. Here are what I consider to be the relevant code fragments. I've also indicated where I consider it to be possible that there might be a memory leak, but I'm not sure about this

Re: How to access a REST service

2025-08-07 Thread Clint Carrion
> I believe that the essential problem, as explained in a previous email to Rob > Sargent, is that I'm getting several hundred database requests per day from > web crawlers. I just spent some time reading through my ngnix access.log and > found that the vast majority of these are from GoogleBot

Re: Tomcat acceptCount limitation and connection refused errors

2025-08-07 Thread Chuck Caldarale
> On 2025 Aug 7, at 18:16, John Williams > wrote: > > I am aware that the TCP backlog queue and concurrent connections are > different. The problem occurs before the connection is fully established. > > My testing scenario is: > - A total of 500 connections are attempted concurrently using 5

RE: Tomcat acceptCount limitation and connection refused errors

2025-08-07 Thread John Williams
Chuck, I am aware that the TCP backlog queue and concurrent connections are different. The problem occurs before the connection is fully established. My testing scenario is: - A total of 500 connections are attempted concurrently using 500 threads from a client application. These connections g

Re: Tomcat acceptCount limitation and connection refused errors

2025-08-07 Thread Chuck Caldarale
> On 2025 Aug 6, at 18:29, John Williams > wrote: > > I have Tomcat 11 running on Windows. When I get a spurt of connections, the > client sees "Connection Refused" errors sporadically. I have tried increasing > the acceptCount for the connector and that does not help. > > From what I am re

RE: Tomcat acceptCount limitation and connection refused errors

2025-08-07 Thread John Williams
I have tested with Tomcat 11.0.9 and JDK 21.0.8+9. Both of these are the latest versions and I see the issue below with TCP connections being refused though my server resources are fine. Regards, John -Original Message- From: r.barc...@habmalnefrage.de.INVALID Sent: Thursday, August

Re: How to access a REST service

2025-08-07 Thread Robert Turner
Dan, On Thu, Aug 7, 2025 at 5:01 PM Daniel Schwartz wrote: > Hello Chris, > > Thank you for your reply, but I'm still unsure. You seem to be implying > that I have a memory leak, i.e., many connection objects being created that > are not being closed. However, I really don't think this is happ

RE: How to access a REST service

2025-08-07 Thread Daniel Schwartz
Hello Chris, Thank you for your reply, but I'm still unsure. You seem to be implying that I have a memory leak, i.e., many connection objects being created that are not being closed. However, I really don't think this is happening. My code closes each connection immediately after using it.

Re: How to access a REST service

2025-08-07 Thread Christopher Schultz
Daniel, On 8/5/25 12:43 PM, Daniel Schwartz wrote: My understanding is that only as many connection objects are created and placed in the pool as are needed, so even if you set the upper limit high it doesn’t necessarily mean that you will have that many. This is correct. Once a database sess

[ANN] Apache Tomcat 10.1.44 Available

2025-08-07 Thread Christopher Schultz
The Apache Tomcat team announces the immediate availability of Apache Tomcat 10.1.44. Apache Tomcat 10 is an open source software implementation of the Jakarta Servlet, Jakarta Pages, Jakarta Expression Language, Jakarta WebSocket, Jakarta Authentication and Jakarta Annotations specifications.

[SECURITY] Upcoming updates to recent(ish)Tomcat CVEs

2025-08-07 Thread Mark Thomas
All, Over the next few days the Tomcat security team will be updating the official CVE records for Tomcat CVEs CVE-2022-45143 onwards to explicitly state (rather than just imply) that "Older, EOL versions may also be affected." We will also explicitly add a version range with a start of "3"

[ANN] Apache Tomcat 11.0.10 Available

2025-08-07 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 11.0.10. Apache Tomcat 11 is an open source software implementation of the Jakarta Servlet, Jakarta Pages, Jakarta Expression Language, Jakarta WebSocket, Jakarta Authentication and Jakarta Annotations specifications.

Re: Tomcat acceptCount limitation and connection refused errors

2025-08-07 Thread r . barclay
> Does Tomcat provide a way to increase the OS level TCP backlog queue length, > and if not, can this be considered in the roadmap? > > This seems to be a scalability issue for Tomcat - 200 concurrent connection > limit appears to be a very low number. Please correct me if I am wrong. Hi, Thi