Re: [EXTERNAL EMAIL] RE: How to access a REST service

2025-08-11 Thread Rob Sargent
> On Aug 11, 2025, at 7:54 PM, Daniel Schwartz wrote: > > Rob, > > The system has never crashed, so I've seen a stack trace. > > Dan > (Assuming you meant “ never seen” ) Back when you were running with 32 db connections didn’t your system stop working when it ran out of connections? A

Re: How to access a REST service

2025-08-11 Thread Robert Turner
One additional set of suggestions for this project or for the future (inline): On Mon, Aug 11, 2025, 21:53 Daniel Schwartz wrote: > > DGS: A single simple query to my interface requires three database > accesses, one to retrieve a list of countries, then, when the use selects a > country, anothe

RE: [EXTERNAL EMAIL] RE: How to access a REST service

2025-08-11 Thread Daniel Schwartz
Rob, The system has never crashed, so I've seen a stack trace. Dan From: Rob Sargent Sent: Monday, August 11, 2025 9:51 PM To: Tomcat Users List Cc: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] RE: How to access a REST service I'm interested in what you mean by "crashes". To me, that usua

RE: How to access a REST service

2025-08-11 Thread Daniel Schwartz
Hi Robert, Thanks for your thoughts. See my replies marked DSG. Dan -Original Message- From: Robert Turner Sent: Monday, August 11, 2025 9:37 PM To: Tomcat Users List Subject: Re: How to access a REST service Dan, According to your attached document, your high water mark was 269, w

Re: [EXTERNAL EMAIL] RE: How to access a REST service

2025-08-11 Thread Rob Sargent
I'm interested in what you mean by "crashes". To me, that usually means that the process stops at the very least. Do you mean that the request fails, or something much worse? > > DGS: By "crashes" I mean that the program terminates, usually just after > printing out a stack trace. > I am s

RE: [EXTERNAL EMAIL] RE: How to access a REST service

2025-08-11 Thread Daniel Schwartz
Chris, Again, see my replies marked DSG. Dan -Original Message- From: Christopher Schultz Sent: Monday, August 11, 2025 3:21 PM To: users@tomcat.apache.org Subject: Re: [EXTERNAL EMAIL] RE: How to access a REST service Daniel, On 8/5/25 3:05 PM, Daniel Schwartz wrote: > I just replie

Re: How to access a REST service

2025-08-11 Thread Robert Turner
Dan, According to your attached document, your high water mark was 269, which means at some point you had 269 connections in the pool at once, suggesting around that many in use at once. You likely could lower your limit to 300-500 as a result. As a few of us have said, that is quite a high numbe

RE: How to access a REST service

2025-08-11 Thread Daniel Schwartz
Chris, Please see my reply marked DSG below. Dan -Original Message- From: Christopher Schultz Sent: Monday, August 11, 2025 3:25 PM To: users@tomcat.apache.org Subject: Re: How to access a REST service Daniel, On 8/7/25 4:59 PM, Daniel Schwartz wrote: > Thank you for your reply, but

RE: How to access a REST service

2025-08-11 Thread Daniel Schwartz
Chris, See my reply marked DGS below. Dan -Original Message- From: Christopher Schultz Sent: Monday, August 11, 2025 3:32 PM To: users@tomcat.apache.org Subject: Re: How to access a REST service Dan, On 8/7/25 10:29 PM, Daniel Schwartz wrote: > Robert, Chris, and others who have resp

RE: How to access a REST service

2025-08-11 Thread Daniel Schwartz
Hi Chris, Please see my replies after each of your comments. I have attached a copy of the Glassfish page that shows the Connection Pool monitoring data. I don't know what all this means, whether it is good, bad, or normal. However, I do note the one item "NumPotentialConnLeak" with value

Re: Tomcat acceptCount limitation and connection refused errors

2025-08-11 Thread Christopher Schultz
John, On 8/11/25 1:17 PM, John Williams wrote: Hi Chuck, I tested this on Linux. - The default somaxconn limit was 4096. I did not see any connection refused errors with 500 threads. - When somaxconn was reduced to 128 even, I did not see any connection refused errors on the client, with as

Re: How to access a REST service

2025-08-11 Thread Christopher Schultz
Dan, On 8/8/25 12:21 PM, Daniel Schwartz wrote: From your and other people's replies, I'm learning that tracking down memory leaks can be quite daunting and possibly beyond me. No, you can definitely figure this out, and it will be well worth the trouble. I'm aware of the try-with-resource

Re: How to access a REST service

2025-08-11 Thread Christopher Schultz
Dan, On 8/7/25 10:29 PM, Daniel Schwartz wrote: 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 m

Re: How to access a REST service

2025-08-11 Thread Christopher Schultz
Daniel, On 8/7/25 4:59 PM, Daniel Schwartz wrote: 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 c

Re: [EXTERNAL EMAIL] RE: How to access a REST service

2025-08-11 Thread Christopher Schultz
Daniel, On 8/5/25 3:05 PM, Daniel Schwartz wrote: I just replied to Rob Sargent regarding this. Did you see that reply? > Maybe I’m not using Glassfish correctly, but if I set the maximum> pool size to 1, the system almost immediately outputs an error message saying that it is unable to allo

RE: Tomcat acceptCount limitation and connection refused errors

2025-08-11 Thread John Williams
Hi Chuck, I tested this on Linux. - The default somaxconn limit was 4096. I did not see any connection refused errors with 500 threads. - When somaxconn was reduced to 128 even, I did not see any connection refused errors on the client, with as many as 2000 concurrent threads being used to e