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

2025-08-23 Thread Daniel Schwartz
rt Turner Sent: Tuesday, August 19, 2025 8:27 PM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] How to access a REST service Daniel, If you would like to validate your theory, simply remove the try-with-resources and revert to your previous logic. However, I strongly believe your theory is

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

2025-08-19 Thread Daniel Schwartz
Dan -Original Message- From: Robert Turner Sent: Tuesday, August 19, 2025 8:27 PM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] How to access a REST service Daniel, If you would like to validate your theory, simply remove the try-with-resources and revert to your previous logic. Howev

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

2025-08-19 Thread Daniel Schwartz
] How to access a REST service > On 2025 Aug 18, at 21:22, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > > I > wasn't resisting using the try-with-resources construct, only when I tried to > do this, I was getting compiler errors. But I evidently w

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

2025-08-18 Thread Daniel Schwartz
ssing? Have you tested these situations? On Mon, Aug 18, 2025 at 10:52 AM Robert Turner wrote: > Daniel, > > You have a leak - this we are certain of. You just don't yet know what > causes it (it's clearly not a "standard use case" and the robots ar

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

2025-08-18 Thread Daniel Schwartz
29 AM To: users@tomcat.apache.org Subject: Re: [EXTERNAL EMAIL] How to access a REST service Daniel, On 8/16/25 10:57 PM, Daniel Schwartz wrote: > There was a Chris too, but I think he made his recommendation and > left. I'm still here, but I do have a job and a family. Rob, Robert and Ch

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

2025-08-17 Thread Daniel Schwartz
to another. Robert On Sun, Aug 17, 2025, 20:44 Daniel Schwartz wrote: > Okay, I have changed it to "1". Does this seem reasonable? I don't > know what would be a good setting. > > I have found some documentation on the Eclipse website, but it's a bit > confus

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

2025-08-17 Thread Daniel Schwartz
Thanks. I have changed it to 10. I’ll watch and see if anything happens. From: Chuck Caldarale Sent: Sunday, August 17, 2025 8:55 PM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] How to access a REST service > On 2025 Aug 17, at 19:43, Daniel Schwartz > mailto:d...@danielgschwar

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

2025-08-17 Thread Daniel Schwartz
eping in mind that you may need to adapt and update configuration between versions. Robert On Sun, Aug 17, 2025, 20:04 Daniel Schwartz wrote: > Hi Robert, > > I just checked. The Connection Leak timeout is set to 0. This > evidently is the default. > > I have been trying to upg

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

2025-08-17 Thread Daniel Schwartz
s and logs again... Robert On Sun, Aug 17, 2025, 12:08 Daniel Schwartz wrote: > Rob, > > A few years ago, I tried to upgrade to the then current version of > Glassfish and couldn’t get it to work. I’m considering trying again > with the current version. > > Dan > &

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

2025-08-17 Thread Daniel Schwartz
: [EXTERNAL EMAIL] How to access a REST service > On Aug 17, 2025, at 9:45 AM, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > > In my > previous posting, at the very end, I mentioned that I’m using jdk1.8.0_144 > with Glassfish 4.1. That version of Glass

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

2025-08-17 Thread Daniel Schwartz
In my previous posting, at the very end, I mentioned that I’m using jdk1.8.0_144 with Glassfish 4.1. That version of Glassfish won’t with anything later than 1.8. Dan From: Chuck Caldarale Sent: Saturday, August 16, 2025 3:58 PM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] How to acce

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

2025-08-16 Thread Daniel Schwartz
Chuck, Robert, Rob, There was a Chris too, but I think he made his recommendation and left. I'm coming to think that his advice was the best, namely, to just live with the current situation as long as it is working. Anyway, today I reviewed my code and ran a few more tests. Here is what I f

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

2025-08-16 Thread Daniel Schwartz
From: Chuck Caldarale Sent: Saturday, August 16, 2025 1:33 PM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] How to access a REST service > On 2025 Aug 16, at 12:21, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > > I just > sent a code fragment where

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

2025-08-16 Thread Daniel Schwartz
ntln(e.getStackTrace()); } } return countryList; } } From: Chuck Caldarale Sent: Saturday, August 16, 2025 1:19 PM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] How to access a REST service > On 2025 Aug 16, at 11:35, Daniel Schwartz > mailto:d...@danielgschwartz.com>&g

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

2025-08-16 Thread Daniel Schwartz
tackTraceElement;@2545fa37]] -- From: Chuck Caldarale Sent: Saturday, August 16, 2025 1:11 PM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] How to access a REST service > On 2025 Aug 16, at 11:20, Daniel Schw

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

2025-08-16 Thread Daniel Schwartz
From: Chuck Caldarale Sent: Saturday, August 16, 2025 1:11 PM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] How to access a REST service > On 2025 Aug 16, at 11:20, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > > You > might be using a different ve

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

2025-08-16 Thread Daniel Schwartz
e ds = > (DataSource) ic.lookup("test1"); try (Connection conn = > ds.getConnection()) { } catch (SQLException e) { > throw new Runtime exception(e); > } > > So, I don't agree with your "conclusion" about 8 connections per. > > Robert >

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

2025-08-16 Thread Daniel Schwartz
1"); try (Connection conn = ds.getConnection()) { } catch (SQLException e) { throw new Runtime exception(e); } So, I don't agree with your "conclusion" about 8 connections per. Robert On Sat, Aug 16, 2025, 00:02 Daniel Schwartz wrote: > Chuck, > > Okay, here is t

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

2025-08-15 Thread Daniel Schwartz
Aug 15, at 22:03, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > > I > think I found the answer. > > A few days ago, someone suggested that I try > setting the Glassfish maximum pool size to 1 and see what happens. NkdkJdXPPEBannerStart Be Careful

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

2025-08-15 Thread Daniel Schwartz
Hello Felix, See my reply below marked DGS. Dan From: Felix Schumacher Sent: Friday, August 15, 2025 1:09 PM To: users@tomcat.apache.org Subject: Re: [EXTERNAL EMAIL] How to access a REST service Am 14.08.25 um 23:26 schrieb Daniel Schwartz: Chris, See below. Dan -Original

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

2025-08-15 Thread Daniel Schwartz
that switching to Tomcat (or TomEE) is going to make any difference. -chris On 8/15/25 12:33 PM, Daniel Schwartz wrote: > > > -Original Message- > From: Christopher Schultz > Sent: Friday, August 15, 2025 12:18 PM > To: users@tomcat.apache.org > Subject: Re: [

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

2025-08-15 Thread Daniel Schwartz
leaks (technically not memory leaks, but leaks nonetheless) is because it's the best explanation for why your connection pool seems to be running dry. I don't think that switching to Tomcat (or TomEE) is going to make any difference. -chris On 8/15/25 12:33 PM, Daniel

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

2025-08-15 Thread Daniel Schwartz
-Original Message- From: Christopher Schultz Sent: Friday, August 15, 2025 12:18 PM To: users@tomcat.apache.org Subject: Re: [EXTERNAL EMAIL] How to access a REST service Daniel, On 8/15/25 12:49 AM, Daniel Schwartz wrote: > Robert (and all), > > I will work on answers you

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

2025-08-14 Thread Daniel Schwartz
if there are "idle periods" (like after release) or "connection test" operations that might be causing some of your issues. Q8: Can you reproduce your pool overflow condition on your development computer with a low pool count and share the Glassfish logs leading up to and

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

2025-08-14 Thread Daniel Schwartz
uding the exception? Q9: Can you share your WEB.INF file that's packaged in your WAR file? Robert On Thu, Aug 14, 2025 at 5:42 PM Daniel Schwartz wrote: > Robert, > > Please see the reply is just sent to Chris. I think that this answers > your questions. > > I don'

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

2025-08-14 Thread Daniel Schwartz
August 14, 2025 1:27 AM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] How to access a REST service Oh On Thu, Aug 14, 2025, 00:57 Daniel Schwartz wrote: > > > > DGS: You are talking above my head on this, but I’m not using any > servlets, and the entire JVM process is the

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

2025-08-14 Thread Daniel Schwartz
On 2025 Aug 13, at 23:55, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > > See my > reply below. > > Dan > > From: Chuck Caldarale <mailto:n82...@gmail.com<mailto:n82...@gmail.com%20%3cmailto:n82...@gmail.com>>> > > Sent: Wednesd

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

2025-08-14 Thread Daniel Schwartz
, Daniel Schwartz wrote: > From: Chuck Caldarale > Sent: Wednesday, August 13, 2025 10:29 PM > To: Tomcat Users List > Subject: Re: [EXTERNAL EMAIL] How to access a REST service > >> -Original Message- > >> From: Christopher Schultz >> mailto:ch...

RE: How to access a REST service

2025-08-14 Thread Daniel Schwartz
, 2025 9:21 AM To: users@tomcat.apache.org Subject: Re: How to access a REST service Dan, On 8/12/25 10:52 PM, Daniel Schwartz wrote: > If you go to my website, > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.worldholidaysa > ndevents.com&d=DwIDaQ&c=euGZstcaTD

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

2025-08-14 Thread Daniel Schwartz
apache.org Subject: Re: [EXTERNAL EMAIL] RE: How to access a REST service Daniel, On 8/13/25 8:59 PM, Daniel Schwartz wrote: > Chris, > > You have given me a lot to think about. > > Re your comment: "Getting ApacheBench is different depending upon your > development enviro

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

2025-08-13 Thread Daniel Schwartz
Hi Chuck, See my reply below. Dan From: Chuck Caldarale Sent: Wednesday, August 13, 2025 10:29 PM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] How to access a REST service > On 2025 Aug 13, at 20:27, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > > Ch

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

2025-08-13 Thread Daniel Schwartz
... On 8/12/25 1:31 PM, Daniel Schwartz wrote: > -Original Message- > From: Christopher Schultz > Sent: Tuesday, August 12, 2025 11:19 AM > To: users@tomcat.apache.org > Subject: Re: [EXTERNAL EMAIL] RE: How to access a REST service > > Daniel, > > On 8/11/25 9:3

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

2025-08-13 Thread Daniel Schwartz
Sent: Wednesday, August 13, 2025 2:49 PM To: users@tomcat.apache.org Subject: Re: [EXTERNAL EMAIL] RE: How to access a REST service Dan, On 8/12/25 11:33 PM, Daniel Schwartz wrote: > -Original Message- > From: Robert Turner > Sent: Tuesday, August 12, 2025 11:09 PM > To: Tomca

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

2025-08-13 Thread Daniel Schwartz
ccess a REST service Dan, On 8/12/25 11:33 PM, Daniel Schwartz wrote: > -Original Message- > From: Robert Turner > Sent: Tuesday, August 12, 2025 11:09 PM > To: Tomcat Users List > Subject: Re: [EXTERNAL EMAIL] RE: How to access a REST service > > [snip]> > Fo

RE: How to access a REST service

2025-08-13 Thread Daniel Schwartz
Chris, Thanks again. Dan -Original Message- From: Christopher Schultz Sent: Wednesday, August 13, 2025 2:56 PM To: users@tomcat.apache.org Subject: Re: How to access a REST service Dan, On 8/13/25 12:38 AM, Daniel Schwartz wrote: > -Original Message- > From: Robert

RE: How to access a REST service

2025-08-12 Thread Daniel Schwartz
-Original Message- From: Robert Turner Sent: Monday, August 11, 2025 10:12 PM To: Tomcat Users List Subject: Re: How to access a REST service One additional set of suggestions for this project or for the future (inline): On Mon, Aug 11, 2025, 21:53 Daniel Schwartz wrote: > &g

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

2025-08-12 Thread Daniel Schwartz
I just saw this. From: Rob Sargent Sent: Monday, August 11, 2025 10:17 PM To: Tomcat Users List Cc: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] RE: How to access a REST service > On Aug 11, 2025, at 7:54 PM, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > >

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

2025-08-12 Thread Daniel Schwartz
Robert, See my replies. Dan -Original Message- From: Robert Turner Sent: Tuesday, August 12, 2025 11:09 PM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] RE: How to access a REST service Dan, On Tue, Aug 12, 2025 at 10:38 PM Daniel Schwartz wrote: > > DGS: For "I

RE: How to access a REST service

2025-08-12 Thread Daniel Schwartz
Hello Rob, More remarks marked with DGS. Dan From: Rob Sargent Sent: Tuesday, August 12, 2025 4:47 PM To: Tomcat Users List Cc: Tomcat Users List Subject: Re: How to access a REST service > On Aug 12, 2025, at 2:29 PM, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote

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

2025-08-12 Thread Daniel Schwartz
Robert, See my replies. Dan -Original Message- From: Robert Turner Sent: Tuesday, August 12, 2025 5:06 PM To: Tomcat Users List Subject: Re: [EXTERNAL EMAIL] RE: How to access a REST service Dan, On Tue, Aug 12, 2025 at 4:43 PM Daniel Schwartz wrote: > Hello again, Rob

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

2025-08-12 Thread Daniel Schwartz
nline... On Tue, Aug 12, 2025 at 1:46 PM Daniel Schwartz wrote: > > DGS: I was going by what the person at Omnifish had told me. I just > checked, and you can't set the maximum pool size to 1. The minimum is 8. > So I did this and within seconds the system stopped working and I g

RE: How to access a REST service

2025-08-12 Thread Daniel Schwartz
Hello Felix, See my replies marked with DGS. Dan From: Felix Schumacher Sent: Tuesday, August 12, 2025 2:47 PM To: users@tomcat.apache.org Subject: Re: How to access a REST service Am 08.08.25 um 18:21 schrieb Daniel Schwartz: Hello Robert, From your and other people's replies

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

2025-08-12 Thread Daniel Schwartz
Chris, More replied labeled DGS below. -Original Message- From: Christopher Schultz Sent: Tuesday, August 12, 2025 11:19 AM To: users@tomcat.apache.org Subject: Re: [EXTERNAL EMAIL] RE: How to access a REST service Daniel, On 8/11/25 9:38 PM, Daniel Schwartz wrote: > Ch

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
te everyone's taking the time to respond. Best of luck, Robert On Mon, Aug 11, 2025, 21:23 Daniel Schwartz wrote: > 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 >

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 j

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,

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 h

RE: How to access a REST service

2025-08-11 Thread Daniel Schwartz
ean. Dan -Original Message- From: Christopher Schultz Sent: Monday, August 11, 2025 3:41 PM To: users@tomcat.apache.org Subject: Re: How to access a REST service Dan, On 8/8/25 12:21 PM, Daniel Schwartz wrote: > From your and other people's replies, I'm learning that

RE: How to access a REST service

2025-08-08 Thread Daniel Schwartz
From: Rob Sargent Sent: Friday, August 8, 2025 2:38 PM To: Tomcat Users List Cc: Tomcat Users List Subject: Re: How to access a REST service > On Aug 8, 2025, at 10:23 AM, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > > Hello > Robert, > > F

RE: How to access a REST service

2025-08-08 Thread Daniel Schwartz
Hello Thorsten, -Original Message- From: Thorsten Heit Sent: Friday, August 8, 2025 2:55 PM To: users@tomcat.apache.org Subject: Re: How to access a REST service Hi Daniel, > You are correct, I only catch SQL exceptions. I have modified my code so > that the Connection objec

RE: How to access a REST service

2025-08-08 Thread Daniel Schwartz
their replies. Dan -Original Message- From: Robert Turner Sent: Friday, August 8, 2025 1:32 AM To: Tomcat Users List Subject: Re: How to access a REST service (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 Sc

RE: How to access a REST service

2025-08-07 Thread Daniel Schwartz
, and the Connection object continues to be marked as being in use. This would be a leak. But I don’t know if this is happening. Dan 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, Dan

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 wit

RE: How to access a REST service

2025-08-07 Thread Daniel Schwartz
ner Sent: Thursday, August 7, 2025 5:07 PM To: Tomcat Users List Subject: Re: How to access a REST service 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 hav

RE: How to access a REST service

2025-08-07 Thread Daniel Schwartz
INFO] [] [] [tid: _ThreadID=36 _ThreadName=Thread-8] [timeMillis: 1754616019704] [levelValue: 800] [[ holidays connection has been closed]] -Original Message- From: Robert Turner Sent: Thursday, August 7, 2025 5:07 PM To: Tomcat Users List Subject: Re: How to access a REST service Dan, On T

RE: How to access a REST service

2025-08-07 Thread Daniel Schwartz
sfish, and one can have connections that exist outside the pool. This would resolve the issue I'm currently having with Glassfish. Best regards, Dan Schwartz ---Original Message- From: Christopher Schultz Sent: Thursday, August 7, 2025 2:58 PM To: users@tomcat.apache.org Subject:

RE: How to access a REST service

2025-08-06 Thread Daniel Schwartz
you or anyone can give will be appreciated. Dan Schwartz From: Rob Sargent Sent: Tuesday, August 5, 2025 11:40 PM To: Tomcat Users List Cc: Tomcat Users List Subject: Re: How to access a REST service > On Aug 5, 2025, at 11:54 AM, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote

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

2025-08-05 Thread Daniel Schwartz
. That’s why I have set a large maximum pool size. Dan Schwartz From: Niranjan Rao Sent: Tuesday, August 5, 2025 12:54 PM To: users@tomcat.apache.org Subject: Re: [EXTERNAL EMAIL] RE: How to access a REST service On 8/5/25 09:43, Daniel Schwartz wrote: > Well, I guess that this is a top p

RE: How to access a REST service

2025-08-05 Thread Daniel Schwartz
7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=e7w4teh9aIQALHe76U1py0iyqtcjXfx02vzzglOFkc9dh0BgfasDq2oRvIzwK7x-&s=_UWjBLunOHYm7UwZkR5lAR4MUYt2NLMH0w-75mkZZrc&e= > On Aug 4, 2025, at 10:31 AM, Daniel Schwartz > mailto:d...@danielgschwartz.com>>

RE: How to access a REST service

2025-08-05 Thread Daniel Schwartz
025, at 8:11 PM, Daniel Schwartz > mailto:d...@danielgschwartz.com>> wrote: > > Hello > Rob, > > I don’t know what a “top post” is or why it should warrant an > apology, but I appreciate your taking the time to reply. This NkdkJdXPPEBannerStart Be Careful With This Mess

RE: How to access a REST service

2025-08-04 Thread Daniel Schwartz
mEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=e7w4teh9aIQALHe76U1py0iyqtcjXfx02vzzglOFkc9dh0BgfasDq2oRvIzwK7x-&s=_UWjBLunOHYm7UwZkR5lAR4MUYt2NLMH0w-75mkZZrc&e= > On Aug 4, 2025, at 10:31 AM, Daniel Schwartz > mailto:d...@danielgschwart

RE: How to access a REST service

2025-08-04 Thread Daniel Schwartz
Hello Chris, Thanks. This looks helpful. Dan Schwartz -Original Message- From: Christopher Schultz Sent: Monday, August 4, 2025 10:15 AM To: users@tomcat.apache.org Subject: Re: How to access a REST service Daniel, Apologies for top-posting, but I would highly recommend reading

RE: How to access a REST service

2025-08-01 Thread Daniel Schwartz
s are identified, using cookies or some such technique. I will look into this. Dan -Original Message- From: Thorsten Heit Sent: Friday, August 1, 2025 5:32 AM To: users@tomcat.apache.org Subject: Re: How to access a REST service Hi, > Daniel, > You might take a look at java’s

RE: How to access a REST service

2025-08-01 Thread Daniel Schwartz
Hello Thorsten, Please see my replies below, marked DGS. -Original Message- From: Thorsten Heit Sent: Friday, August 1, 2025 5:32 AM To: users@tomcat.apache.org Subject: Re: How to access a REST service Hi, > Daniel, > You might take a look at java’s “ try with” construc

RE: How to access a REST service

2025-08-01 Thread Daniel Schwartz
Users List Cc: Tomcat Users List Subject: Re: How to access a REST service Daniel, You might take a look at java’s “ try with” construct The try-with-resources Statement (The Java™ Tutorials > Essential Java Classes > Exceptions) docs.orac

RE: How to access a REST service

2025-07-31 Thread Daniel Schwartz
Hello Mark, Thanks for taking the time to reply. Please see my notes below, marked "DGS". -Original Message- From: Mark Thomas Sent: Thursday, July 31, 2025 4:32 AM To: users@tomcat.apache.org Subject: Re: How to access a REST service On 31/07/2025 05:10, Daniel Schwartz

How to access a REST service

2025-07-30 Thread Daniel Schwartz
I have a REST webservice written in Java that runs on the Glassfish server, but I started having problems with the JDBC pooling system. It kept crashing, saying that it was unable to allocate any more connection objects. This made no sense to me, as I had set the maximum pool size to 1000, and

RE: Classloading has a long delay after idle period

2025-07-24 Thread Daniel Sheridan
>On 23/07/2025 15:36, Daniel Sheridan wrote: > > > >> Hi Rainer, >> >>> it might be a search for non-existing classes or resources >> The JARs are being scanned for specific classes during the delay, but they >> are classes that should alr

RE: Classloading has a long delay after idle period

2025-07-23 Thread Daniel Sheridan
>Am 22.07.25 um 17:59 schrieb Daniel Sheridan: >>> On 7/21/25 20:18 PM, Christopher Schultz wrote: >>> Daniel and Mark, >>> >>> On 7/21/25 12:48 PM, Daniel Sheridan wrote: >>>>> On 18/07/2025 16:04, Daniel Sheridan wrote: >>>>>

RE: Classloading has a long delay after idle period

2025-07-22 Thread Daniel Sheridan
>On 7/21/25 20:18 PM, Christopher Schultz wrote: >Daniel and Mark, > >On 7/21/25 12:48 PM, Daniel Sheridan wrote: >>> On 18/07/2025 16:04, Daniel Sheridan wrote: >>> >>>> I definitely think there is something happening on the Tomcat side here >>&

RE: Classloading has a long delay after idle period

2025-07-22 Thread Daniel Sheridan
>On 22/07/2025 07:53, Mark Thomas wrote: >>On 21/07/2025 17:48, Daniel Sheridan wrote: >>> On 18/07/2025 16:04, Daniel Sheridan wrote: >>> >>>> I definitely think there is something happening on the Tomcat side here >>>> around caching, I&#

RE: Classloading has a long delay after idle period

2025-07-21 Thread Daniel Sheridan
>On 18/07/2025 16:04, Daniel Sheridan wrote: > >> I definitely think there is something happening on the Tomcat side here >> around caching, I've played with some resource caching settings but it >> didn't make any difference unfortunately. > >The flame g

RE: Classloading has a long delay after idle period

2025-07-18 Thread Daniel Sheridan
>On 7/14/25 15:26, Gregg, John E wrote: >Daniel, > >I cannot access your flame graph on imgur, but what is happening in your code >that leads to the jar scanning? All of my apps have run on Linux since >forever, so I don’t know what might be different with Windows, but I’ve fou

RE: Classloading has a long delay after idle period

2025-07-18 Thread Daniel Sheridan
>On 7/11/25 17:42, Christopher Schultz wrote: >Daniel, > >On 7/11/25 11:57 AM, Daniel Sheridan wrote: > > > > [snip] > > >> Correct, almost the entire delay is during the JAR scanning when the >> files are being accessed. >> >> We are using

RE: Classloading has a long delay after idle period

2025-07-11 Thread Daniel Sheridan
>On 7/8/25 16:32, Christopher Schultz wrote: >Daniel, > >On 7/8/25 11:15 AM, Daniel Sheridan wrote: >> On 7/2/25 10:22 AM, Daniel Sheridan wrote: >>> Hi folks, >>> >>> We're using Tomcat 10.1.40, but also seeing this issue with multiple Tomcat

RE: Classloading has a long delay after idle period

2025-07-08 Thread Daniel Sheridan
On 7/2/25 10:22 AM, Daniel Sheridan wrote: > Hi folks, > > We're using Tomcat 10.1.40, but also seeing this issue with multiple Tomcat 9 > versions, running on Windows Server 2019 and Server 2022 machines. We're > hosting a web app with a REST API, and encounter del

Classloading has a long delay after idle period

2025-07-02 Thread Daniel Sheridan
Hi folks, We're using Tomcat 10.1.40, but also seeing this issue with multiple Tomcat 9 versions, running on Windows Server 2019 and Server 2022 machines. We're hosting a web app with a REST API, and encounter delays on requests when they hit our REST API of 9-12 seconds. Easiest way to reprodu

Re: Tomcat `11.0.3` embedded fails to start with `InaccessibleObjectException`

2025-02-11 Thread Daniel Skiles
I was able to work around it on 17.0.13 by adding --add-opens=java.base/ java.io=ALL-UNNAMED to my startup script. On Tue, Feb 11, 2025 at 11:23 AM Daniel Skiles wrote: > I'm seeing the same thing in tomcat 10.1.35 with openjdk version "17.0.13" > 2024-10-15 > > On T

Re: Tomcat `11.0.3` embedded fails to start with `InaccessibleObjectException`

2025-02-11 Thread Daniel Skiles
I'm seeing the same thing in tomcat 10.1.35 with openjdk version "17.0.13" 2024-10-15 On Tue, Feb 11, 2025 at 8:00 AM Christopher Schultz < ch...@christopherschultz.net> wrote: > Jack, > > On 2/11/25 5:56 AM, Jack Green wrote: > > When you try to start `11.0.3` via: > > ``` > > new Tomcat(); > >

RE: Tomcat MySQL Connection Pooling JNDI lookup

2024-06-19 Thread Daniel Schwartz
g wrong with these files? Dan -Original Message- From: Christopher Schultz Sent: Wednesday, June 19, 2024 5:10 PM To: users@tomcat.apache.org Subject: Re: Tomcat MySQL Connection Pooling JNDI lookup Daniel, On 6/19/24 16:37, Daniel Schwartz wrote: > I followed you instruction to mo

RE: Tomcat MySQL Connection Pooling JNDI lookup

2024-06-19 Thread Daniel Schwartz
To: users@tomcat.apache.org Subject: Re: Tomcat MySQL Connection Pooling JNDI lookup Daniel, On 6/19/24 11:40, Daniel Schwartz wrote: > Dear Felix, > > Thank you for your reply. The connector jar file is at > > C:\Program > Files\apache-tomcat-10.1.24\lib\mysql-connector-j-8.4.0.

RE: Tomcat MySQL Connection Pooling JNDI lookup

2024-06-19 Thread Daniel Schwartz
her Sent: Wednesday, June 19, 2024 1:41 AM To: Tomcat Users List Subject: Re: Tomcat MySQL Connection Pooling JNDI lookup Am 17. Juni 2024 22:18:53 MESZ schrieb Daniel Schwartz : >Hello, > > > >I'm trying to set up MySQL 8.0.11 database connection pooling in Tomcat

RE: Tomcat MySQL Connection Pooling JNDI lookup

2024-06-19 Thread Daniel Schwartz
Dear Thomas, Your email came with no content. Please try again. Dan Schwartz From: Thomas Hoffmann (Speed4Trade GmbH) Sent: Wednesday, June 19, 2024 2:05 AM To: Tomcat Users List Subject: AW: Tomcat MySQL Connection Pooling JNDI lookup

FW: Tomcat MySQL Connection Pooling JNDI lookup

2024-06-18 Thread Daniel Schwartz
Hello again I sent the following message yesterday. Is anyone going to reply? I'm totally stuck. If no one can help, then I will have no alternative but to abandon Tomcat and try some alternative. Dan Schwartz From: Daniel Schwartz Sent: Monday, June 17, 2024 4:19 PM To:

Tomcat MySQL Connection Pooling JNDI lookup

2024-06-17 Thread Daniel Schwartz
Hello, I'm trying to set up MySQL 8.0.11 database connection pooling in Tomcat 10.1.24 on Windows 10. The MySQL database is "holidays" with user name "root" and password "rootpwd". I've tried to follow the examples at https://tomcat.apache.org/tomcat-9.0-doc/jndi-datasource-examples-howto.html

Re: What does the number preceding the catalina.org.apache.juli.AsyncFileHandler in Tomcat's conf/logging.properties mean?

2024-03-14 Thread Vincent Daniel
:) On Thu, Mar 14, 2024 at 7:53 PM Mark Thomas wrote: > > On 14/03/2024 11:51, Vincent Daniel wrote: > > Thank you so much. > > I am ashamed that I did not read the documentation carefully. > > No problem. It is only a single line in the docs and it helps a lot if > yo

Re: What does the number preceding the catalina.org.apache.juli.AsyncFileHandler in Tomcat's conf/logging.properties mean?

2024-03-14 Thread Vincent Daniel
Thank you so much. I am ashamed that I did not read the documentation carefully. On Thu, Mar 14, 2024 at 7:46 PM Mark Thomas wrote: > > On 14/03/2024 11:36, Vincent Daniel wrote: > > Hi, community > > > > When I configured Tomcat logs, I found the fo

What does the number preceding the catalina.org.apache.juli.AsyncFileHandler in Tomcat's conf/logging.properties mean?

2024-03-14 Thread Vincent Daniel
Hi, community When I configured Tomcat logs, I found the following configuration in logging.properties 1catalina.org.apache.juli.AsyncFileHandler 2localhost.org.apache.juli.AsyncFileHandler 3manager.org.apache.juli.AsyncFileHandler 4host-manager.org.apache.juli.AsyncFileHandler I am not sure wha

Re: 9.0.83 addSslHostConfig JMX Operation Regression (Sample Code Attached)

2023-12-14 Thread Daniel Skiles
Christ, Thanks for the explanation. The XML-based registration - is that something I would do as a user, or something that would be changed on the Tomcat side as part of its release bundle? On Thu, Dec 14, 2023 at 10:17 AM Christopher Schultz < ch...@christopherschultz.net> wrote: &g

Re: 9.0.83 addSslHostConfig JMX Operation Regression (Sample Code Attached)

2023-12-14 Thread Daniel Skiles
ethod. I'm not familiar with the code, but it appears that there might be an issue with how that map is constructed. On Thu, Dec 14, 2023 at 4:25 AM Rémy Maucherat wrote: > On Wed, Dec 13, 2023 at 9:43 PM Daniel Skiles > wrote: > > > > The object and opera

Re: 9.0.83 addSslHostConfig JMX Operation Regression (Sample Code Attached)

2023-12-13 Thread Daniel Skiles
0.83 might have to do with the fact that the catalina java code now has a one argument and two argument variant of the same method. On Wed, Dec 13, 2023 at 10:27 AM Christopher Schultz < ch...@christopherschultz.net> wrote: > Daniel, > > On 12/12/23 19:45, Daniel Skiles wrote: >

Re: 9.0.83 addSslHostConfig JMX Operation Regression (Sample Code Attached)

2023-12-12 Thread Daniel Skiles
tion e) { throw new RuntimeException("Error invoking " + method + " with params " + Arrays.toString(params) + " and signature " + Arrays.toString(signature), e); } } } On Fri, Dec 8, 2023 at 4:55 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Dan

9.0.83 addSslHostConfig JMX Operation Regression (Sample Code Attached)

2023-12-07 Thread Daniel Skiles
All, I've been doing some testing, and I'm pretty sure the addSslHostConfig operation on ProtocolHandler is busted in 9.0.83. In versions prior to 9.0.82, you can call the operation with a single argument of type SSLHostConfig. In 9.0.82, that contract seems to have been broken, and you had to ca

Re: 9.0.83 addSslHostConfig failures?

2023-12-06 Thread Daniel Skiles
(DefaultMBeanServerInterceptor.java:814) ~[?:?] at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802) ~[?:?] Any ideas here? On Wed, Dec 6, 2023 at 4:45 PM Daniel Skiles wrote: > I found the source of the problem > > 9.0.82 accepts the simple class name as a type paramete

Re: 9.0.83 addSslHostConfig failures?

2023-12-06 Thread Daniel Skiles
I found the source of the problem 9.0.82 accepts the simple class name as a type parameter for the operation. 9.0.83 requires the canonical class name. On Wed, Dec 6, 2023 at 3:06 PM Daniel Skiles wrote: > I've had no success digging into this. > > Is this a regression,

Re: 9.0.83 addSslHostConfig failures?

2023-12-06 Thread Daniel Skiles
I've had no success digging into this. Is this a regression, or was this an intentional change? On Mon, Nov 27, 2023 at 8:56 AM Daniel Skiles wrote: > Thanks for taking a look. My lightly scrubbed connector example is > attached. > > On Tue, Nov 21, 2023 at 6:45 AM Michae

Re: Tracking keep alive connections

2023-11-30 Thread Daniel Andres Pelaez Lopez
Christopher, So... when a connection is established, save the current timestamp on > the connection. When it closes, take the delta of the > start-of-connection and end-of-connection, and add it to a bounded queue > (say, 100? 1000?) of most-recent-connection-lifetimes. Any time you > request the

Re: Tracking keep alive connections

2023-11-30 Thread Daniel Andres Pelaez Lopez
tion time is 1 hour for 50 connections, with a keep alive timeout of 5 minutes, it means the connection was receiving requests the whole hour. -- Daniel Andrés Pelaez López - To unsubscribe, e-mail: users-unsubscr...@t

Tracking keep alive connections

2023-11-28 Thread Daniel Andres Pelaez Lopez
losed or similar? maybe by knowing the closed ones vs open ones, we can figure out the keep-alive ones. Any insight will be appreciated. -- Daniel Andrés Pelaez López - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache

  1   2   3   4   5   6   7   8   9   10   >