Re: ConnectionPool JDBC vs. DBCP

2024-02-16 Thread Christopher Schultz
Andreas, On 2/16/24 02:21, Döscher, Andreas (ESI) wrote: Moin, in the docpage https://tomcat.apache.org/tomcat-10.1-doc/jdbc-pool.html it says The JDBC Connection Pool org.apache.tomcat.jdbc.pool is a replacement or an alternative to the Apache Commons DBCP connection pool. So why do we

ConnectionPool JDBC vs. DBCP

2024-02-15 Thread ESI
Moin, in the docpage https://tomcat.apache.org/tomcat-10.1-doc/jdbc-pool.html it says >The JDBC Connection Pool org.apache.tomcat.jdbc.pool is a replacement or an >alternative to the Apache Commons DBCP connection pool. > >So why do we need a new connection pool? > >Here are a

Re: Unable to find [jdbc].

2023-06-27 Thread Jerry Malcolm
.  The only thing I could find in a google search for "Unable to find [jdbc]"  says my configuration is wrong and proceeds to explain how to set up a datasource.  My datasources have been set up for several years, correctly as far as I know. They were all working fine until a couple o

Unable to find [jdbc].

2023-06-27 Thread Jerry Malcolm
All of a sudden I started getting a NameNotFoundException when I'm trying to resolve a dataSource name.   But it comes and goes on all of my dataSource names.  The log below was from about a minute.  The only thing I could find in a google search for "Unable to find [jdbc]"

Re: Tomcat / Oracle JDBC OracleTimeoutPollingThread memory leak?

2023-02-15 Thread Mark Thomas
On 13/02/2023 19:12, Ragosta, Vincent wrote: Is the above GC root, an example of the above condition? Yes. If so, can this be mitigated using the JreMemoryLeakPreventionListener, as illustrated in the Tomcat documentation, here --

Tomcat / Oracle JDBC OracleTimeoutPollingThread memory leak?

2023-02-13 Thread Ragosta, Vincent
nt : 20, sleepMillis : 1000) 1. oracle.jdbc.driver.OracleTimeoutPollingThread ↘465,922Kb (57.4%), self 136b (< 0.1%), 1 object(s) I came across the following note: Oracle JDBC driver, at least in some versions (such as ojdbc6), have a timeout detection thread, _oracle.jdbc.driver.OracleTimeoutPolli

Re: Tomcat JDBC CP: Exponential backoff?

2023-01-27 Thread Christopher Schultz
Thomas, On 1/26/23 03:00, Thomas Meyer wrote: Am 18. Januar 2023 23:20:29 MEZ schrieb Christopher Schultz : Thomas, On 1/17/23 13:33, Thomas Meyer wrote: Does Tomcat's CP support exponential backoff in case DB is unavailable for some reason? I didn't find anything in the documentation in

Re: Tomcat JDBC CP: Exponential backoff?

2023-01-26 Thread Thomas Meyer
Am 18. Januar 2023 23:20:29 MEZ schrieb Christopher Schultz : >Thomas, > >On 1/17/23 13:33, Thomas Meyer wrote: >> Does Tomcat's CP support exponential backoff in case DB is unavailable for >> some reason? >> I didn't find anything in the documentation in this regards. > >I don't think is

Re: Tomcat JDBC CP: Exponential backoff?

2023-01-18 Thread Christopher Schultz
Thomas, On 1/17/23 13:33, Thomas Meyer wrote: Does Tomcat's CP support exponential backoff in case DB is unavailable for some reason? I didn't find anything in the documentation in this regards. I don't think is supports any such thing. What would be the purpose of exponential back-off...

Tomcat JDBC CP: Exponential backoff?

2023-01-17 Thread Thomas Meyer
Hi, Does Tomcat's CP support exponential backoff in case DB is unavailable for some reason? I didn't find anything in the documentation in this regards. Mfg Thomas -- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

Connection Closed Errors From JDBC-Pool

2022-03-11 Thread Ryan Bergman
Greetings! I have a problem, possibly (or not) tied to the Tomcat-JDBC Pool. Here is the rundown: Application Server: Apache Tomcat 9.0.56 JDBC Connection Pool: org.apache.tomcat.jdbc.pool.DataSource; Tomcat-JDBC 9.0.56 Oracle Version: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0

[jdbc-pool] ProxyConnection doesn't return connection to the pool on 'abort' call

2022-02-22 Thread Alexey Kutishchev
Hi, folks [NOT A CONTRIBUTION] JDBC Pool Version: 9.0.49 Database: Oracle JDBC Version: 19.3.0.0 OS: Mac, Linux The problem I'm running into: We are using Tomcat JDBC Pool. When getting the network failure between server and database something like 'Connection Reset by Peer' ORM framework

Re: Tomcat jdbc connections

2022-01-26 Thread Phil Steitz
hultz Sent: 24 January 2022 22:42 To: users@tomcat.apache.org Subject: Re: Tomcat jdbc connections Alan, On 1/23/22 09:17, Alan F wrote: Can I just follow up here what would be the next steps how would I go about capturing the root cause of these very short connection times to Oracle from T

Re: Tomcat jdbc connections

2022-01-25 Thread Christopher Schultz
2022 22:42 To: users@tomcat.apache.org Subject: Re: Tomcat jdbc connections Alan, On 1/23/22 09:17, Alan F wrote: Can I just follow up here what would be the next steps how would I go about capturing the root cause of these very short connection times to Oracle from Tomcat. Honestly, I would

RE: [External] Re: Tomcat jdbc connections

2022-01-25 Thread Scott,Tim
> Would it be along the lines of Wireshark or TCP dump to see what's > occurring as I gather this won't be captured in tomcat logging via > Catalina.out? Or can it be. Have you explored Oracle listener / client tracing? Ref:

RE: Tomcat jdbc connections

2022-01-25 Thread Alan F
tions being used! -Original Message- From: Christopher Schultz Sent: 24 January 2022 22:42 To: users@tomcat.apache.org Subject: Re: Tomcat jdbc connections Alan, On 1/23/22 09:17, Alan F wrote: > Can I just follow up here what would be the next steps how would I go > abou

Re: Tomcat jdbc connections

2022-01-24 Thread Christopher Schultz
to crank-up the logging level on that application and/or Tomcat instance to see what's happening with the connection pool. Hope that helps, -chris -Original Message- From: Phil Steitz Sent: 21 January 2022 17:50 To: users@tomcat.apache.org Subject: Re: Tomcat jdbc connections On 1/21

Re: Tomcat 9 Encrpytion of JDBC

2022-01-24 Thread Rémy Maucherat
ess this means you're still not interested in that awesome potential contribution we could make to Tomcat :D Rémy Rémy > > -chris > > > -Original Message- > > From: Orendt, John > > Sent: torstai 20. tammikuuta 2022 18.11 > > To: users@tomcat.

RE: Tomcat jdbc connections

2022-01-23 Thread Alan F
Catalina.out? Or can it be. -Original Message- From: Phil Steitz Sent: 21 January 2022 17:50 To: users@tomcat.apache.org Subject: Re: Tomcat jdbc connections On 1/21/22 9:28 AM, Alan F wrote: > Ok thanks Phil ok I checked other connections in the same host and see > minI

RE: Tomcat jdbc connections

2022-01-21 Thread Alan F
Thanks for your input Phil! Arghh will keep looking. -Original Message- From: Phil Steitz Sent: 21 January 2022 17:50 To: users@tomcat.apache.org Subject: Re: Tomcat jdbc connections On 1/21/22 9:28 AM, Alan F wrote: > Ok thanks Phil ok I checked other connections in the same h

Re: Tomcat jdbc connections

2022-01-21 Thread Phil Steitz
al Message- From: Phil Steitz Sent: 21 January 2022 16:10 To: users@tomcat.apache.org Subject: Re: Tomcat jdbc connections On 1/21/22 8:19 AM, Alan F wrote: Thanks John, Here is an example of a connection below I see timeBetweenEvictionRunsMillis but not maxConnLifetimeMillis if the server

RE: Tomcat jdbc connections

2022-01-21 Thread Alan F
r minutes! And diff is identical apart from Cluster ips. -Original Message- From: Phil Steitz Sent: 21 January 2022 16:10 To: users@tomcat.apache.org Subject: Re: Tomcat jdbc connections On 1/21/22 8:19 AM, Alan F wrote: > Thanks John, > > Here is an exampl

Re: Tomcat jdbc connections

2022-01-21 Thread Phil Steitz
2022 14:50 To: users@tomcat.apache.org Subject: RE: Tomcat jdbc connections Alan, -Original Message- From: Alan F Sent: Friday, January 21, 2022 6:53 AM To: Tomcat Users List Subject: RE: Tomcat jdbc connections Hi Christopher Thanks for your time here. You mean like, a connection

Re: Tomcat jdbc connections

2022-01-21 Thread Phil Steitz
-Original Message- From:john.e.gr...@wellsfargo.com.INVALID Sent: 21 January 2022 14:50 To:users@tomcat.apache.org Subject: RE: Tomcat jdbc connections Alan, -Original Message- From: Alan F Sent: Friday, January 21, 2022 6:53 AM To: Tomcat Users List Subject: RE: Tomcat jdbc

RE: Tomcat jdbc connections

2022-01-21 Thread Alan F
? -Original Message- From: john.e.gr...@wellsfargo.com.INVALID Sent: 21 January 2022 14:50 To: users@tomcat.apache.org Subject: RE: Tomcat jdbc connections Alan, > -Original Message- > From: Alan F > Sent: Friday, January 21, 2022 6:53 AM > To: Tomcat Users List &

RE: Tomcat jdbc connections

2022-01-21 Thread John.E.Gregg
Alan, > -Original Message- > From: Alan F > Sent: Friday, January 21, 2022 6:53 AM > To: Tomcat Users List > Subject: RE: Tomcat jdbc connections > > Hi Christopher > > Thanks for your time here. > > You mean like, a connection

RE: Tomcat jdbc connections

2022-01-21 Thread Alan F
an application running on Tomcat with a JDBC connection configured. Are you using Tomcat's built-in pooling, or is your application managing its own pooling/connections? - ANSWER we are using dbcp2 Do you have any background tasks (in the JVM) that will run even when there is no user activity

Re: Tomcat jdbc connections

2022-01-20 Thread Christopher Schultz
is terminated? Presumably, you have an application running on Tomcat with a JDBC connection configured. Are you using Tomcat's built-in pooling, or is your application managing its own pooling/connections? Do you have any background tasks (in the JVM) that will run even when there is no user

Re: Tomcat 9 Encrpytion of JDBC

2022-01-20 Thread Christopher Schultz
cure! -chris -Original Message- From: Orendt, John Sent: torstai 20. tammikuuta 2022 18.11 To: users@tomcat.apache.org Subject: RE: Tomcat 9 Encrpytion of JDBC [Et saa yleensä sähköpostia osoitteesta john.p.ore...@medtronic.com.invalid. Lue lisää siitä, miksi tämä on tärke

Re: Tomcat 9 Encrpytion of JDBC

2022-01-20 Thread Christopher Schultz
: it doesn't). The trust is established by simple physical connection. So, let's get back to encrypting your JDBC password in your conf/server.xml file. If you encrypt that, you have to put the encryption key elsewhere. Fine, you say, I'll use a "remote key-service" where I supply an encryp

RE: Tomcat 9 Encrpytion of JDBC

2022-01-20 Thread Harri Pesonen
Message- From: Orendt, John Sent: torstai 20. tammikuuta 2022 18.11 To: users@tomcat.apache.org Subject: RE: Tomcat 9 Encrpytion of JDBC [Et saa yleensä sähköpostia osoitteesta john.p.ore...@medtronic.com.invalid. Lue lisää siitä, miksi tämä on tärkeää, osoitteesta http://aka.ms

Re: Tomcat jdbc connections

2022-01-20 Thread Mark Thomas
On 20/01/2022 14:33, Alan F wrote: I have an issue with connections on Tomcat9 Oracle showing connections made for about 2seconds then dropped again. Is this normal when the server is not being used? Seems unlikely. Can you provide the DataSource configuration? Remember to obfuscate any

RE: Tomcat 9 Encrpytion of JDBC

2022-01-20 Thread Orendt, John
types. Internet Banking does exist. John Orendt john.p.ore...@medtronic.com -Original Message- From: Christopher Schultz Sent: Tuesday, January 18, 2022 11:32 AM To: users@tomcat.apache.org Subject: Re: Tomcat 9 Encrpytion of JDBC John, On 1/18/22 08:37, Orendt, John wrote: > Secr

Tomcat jdbc connections

2022-01-20 Thread Alan F
I have an issue with connections on Tomcat9 Oracle showing connections made for about 2seconds then dropped again. Is this normal when the server is not being used? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: Tomcat 9 Encrpytion of JDBC

2022-01-18 Thread Christopher Schultz
t Subject: RE: Tomcat 9 Encrpytion of JDBC OK thanks Bill! -Original Message- From: Bill Stewart Sent: 14 January 2022 19:02 To: Tomcat Users List Subject: Re: Tomcat 9 Encrpytion of JDBC On Fri, Jan 14, 2022 at 10:25 AM Alan F wrote: Interested to know your best practices on sec

RE: Tomcat 9 Encrpytion of JDBC

2022-01-18 Thread Orendt, John
2:05 PM To: Tomcat Users List Subject: RE: Tomcat 9 Encrpytion of JDBC OK thanks Bill! -Original Message- From: Bill Stewart Sent: 14 January 2022 19:02 To: Tomcat Users List Subject: Re: Tomcat 9 Encrpytion of JDBC On Fri, Jan 14, 2022 at 10:25 AM Alan F wrote: > Interested to k

RE: Tomcat 9 Encrpytion of JDBC

2022-01-14 Thread Alan F
OK thanks Bill! -Original Message- From: Bill Stewart Sent: 14 January 2022 19:02 To: Tomcat Users List Subject: Re: Tomcat 9 Encrpytion of JDBC On Fri, Jan 14, 2022 at 10:25 AM Alan F wrote: > Interested to know your best practices on securing jdbc plain text > passwords,

Re: Tomcat 9 Encrpytion of JDBC

2022-01-14 Thread Bill Stewart
On Fri, Jan 14, 2022 at 10:25 AM Alan F wrote: > Interested to know your best practices on securing jdbc plain text > passwords, in my last place they used a mechanism to encrypt all passwords. > Is this the best method as I read some people don't recommend this. Any > details or p

Tomcat 9 Encrpytion of JDBC

2022-01-14 Thread Alan F
All, Interested to know your best practices on securing jdbc plain text passwords, in my last place they used a mechanism to encrypt all passwords. Is this the best method as I read some people don't recommend this. Any details or procs on best practice appreciated. Thanks Ken

Re: Jdbc drivers not found on Tomcat 10

2022-01-06 Thread hantsy bai
gt; > On 1/5/22 23:31, hantsy bai wrote: > > I finally resolved this issue. Exclude the pg driver from war, and copy > it > > to tomcat/lib, it works. > > > > I remember in the past years, I preferred tomcat for Java Web > applications > > because I did no

Re: Jdbc drivers not found on Tomcat 10

2022-01-06 Thread Christopher Schultz
Hantsy, On 1/5/22 23:31, hantsy bai wrote: I finally resolved this issue. Exclude the pg driver from war, and copy it to tomcat/lib, it works. I remember in the past years, I preferred tomcat for Java Web applications because I did not need to register a Jdbc driver but it is tedious work

Re: Jdbc drivers not found on Tomcat 10

2022-01-05 Thread hantsy bai
I finally resolved this issue. Exclude the pg driver from war, and copy it to tomcat/lib, it works. I remember in the past years, I preferred tomcat for Java Web applications because I did not need to register a Jdbc driver but it is tedious work in Java EE application servers

Jdbc drivers not found on Tomcat 10

2022-01-02 Thread hantsy bai
I have tried to update myself Spring 6/Jakarta EE9/Java 17, etc, and created a simple war application, when deployed to Tomcat 10, failed, due to the famous *no suitable drivers*. I have created a detailed post on stackoverflow:

RE: Strange Oracle JDBC Driver error on Application Deployment

2021-11-03 Thread jonmcalexander
received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. > -Original Message- > From: Mark Eggers > Sent: Tuesday, November 2, 2021 5:55 PM > To: users@tomcat.apache.org > Subject: Re: Stra

RE: Strange Oracle JDBC Driver error on Application Deployment

2021-11-03 Thread jonmcalexander
Hmmm...strange. I've gone thru their configuration and modified it to match up with our strategy of using separate HOME and BASE locations. I've had them get rid of duplicate jar files from BASE that are in HOME. Only 1-off is the Oracle JDBC jar. I do need to see if they have "cleared

Re: Strange Oracle JDBC Driver error on Application Deployment

2021-11-03 Thread Mark Thomas
looks like you are seeing this issue: https://bz.apache.org/bugzilla/show_bug.cgi?id=54194 Possible explanations: - the application is packaged with a (very) old version of Tomcat's jdbc-pool and is using that rather than the version provided by Tomcat - The Tomcat instances are running a

Re: Strange Oracle JDBC Driver error on Application Deployment

2021-11-02 Thread Mark Eggers
="false" in each of the resources. Any assistance would be grand. Thanks, Stack Trace 02-Nov-2021 13:01:45.809 SEVERE [localhost-startStop-1] org.apache.tomcat.jdbc.pool.DataSource.registerJmx Unable to register JDBC pool

Strange Oracle JDBC Driver error on Application Deployment

2021-11-02 Thread jonmcalexander
d. Thanks, Stack Trace 02-Nov-2021 13:01:45.809 SEVERE [localhost-startStop-1] org.apache.tomcat.jdbc.pool.DataSource.registerJmx Unable to register JDBC pool with JMX java.lang.NullPointe

RE: Tomcat 9.0.x JDBC connection pool does not always remove abandoned connections

2021-10-15 Thread Martin, Gerhardt A
Chris, really appreciate you taking some time to respond. See my replies inline below. > -Original Message- > From: Christopher Schultz > Sent: Thursday, October 14, 2021 12:19 PM > To: users@tomcat.apache.org > Subject: Re: Tomcat 9.0.x JDBC connection pool does no

Re: Tomcat 9.0.x JDBC connection pool does not always remove abandoned connections

2021-10-14 Thread Christopher Schultz
Gerhardt, On 10/12/21 13:27, Martin, Gerhardt A wrote: Running Tomcat 9.0.50 on Centos 7.9.x Linux and using Tomcat JDBC connection pool to connect to my application's databases. My app connects to about a dozen read only databases and one read/write database. Here is a typical resource

Tomcat 9.0.x JDBC connection pool does not always remove abandoned connections

2021-10-12 Thread Martin, Gerhardt A
Running Tomcat 9.0.50 on Centos 7.9.x Linux and using Tomcat JDBC connection pool to connect to my application's databases. My app connects to about a dozen read only databases and one read/write database. Here is a typical resource definition with tuning configurations for the pool

AW: Calculate time to get a connection from JDBC Pool

2021-09-12 Thread Thomas Hoffmann (Speed4Trade GmbH)
not a time consuming operation. If the pool is not properly sized and new connections must be established, that will cause lags and issues. Greetings, Thomas Von: Lasantha Samarakoon Gesendet: Sonntag, 12. September 2021 20:30 An: Tomcat Users List Betreff: Re: Calculate time to get a connection

Re: Calculate time to get a connection from JDBC Pool

2021-09-12 Thread Lasantha Samarakoon
Hi John, Thanks for your suggestion on the JMX approach. But as per my requirement, using JMX to get the connection time will not be a viable solution. My exact requirement is to log down individual connection establishment time for each JDBC connection which is related to specific message flow

RE: Calculate time to get a connection from JDBC Pool

2021-09-07 Thread John.E.Gregg
Lasantha, > -Original Message- > From: Lasantha Samarakoon > Sent: Monday, September 06, 2021 10:22 PM > To: users@tomcat.apache.org > Subject: Calculate time to get a connection from JDBC Pool > > Hi all, > > I am working on Tomcat JDBC Pools and I ha

Calculate time to get a connection from JDBC Pool

2021-09-06 Thread Lasantha Samarakoon
Hi all, I am working on Tomcat JDBC Pools and I have a requirement that needs to calculate the total time it takes to get a connection from the JDBC pool. This is to cover the entire connection borrowing process (includes connection creation, setting up, validation, etc). The Tomcat version we

Re: Clarification on behaviour after pool exhaustion happen in tomcat jdbc pool 9.0.16

2021-08-13 Thread Christopher Schultz
s are getting processed as normally. > So, my question is, with pool exhausted scenarios, doesn't existing connections execute their queries during that time(maxWait) and try to resolve the exhausted behaviour by releasing those connections to idle queue automatically? When checkin

Re: Clarification on behaviour after pool exhaustion happen in tomcat jdbc pool 9.0.16

2021-08-12 Thread Sampath Rajapakshe
leep state and doesn't execute any queries. > >> After > >>> waiting for maxWait period the pool exhausted exception gets thrown and > >>> seems to reset the connections and then the queries are getting > processed > >>> as normally. > >> >

Re: Clarification on behaviour after pool exhaustion happen in tomcat jdbc pool 9.0.16

2021-08-11 Thread Christopher Schultz
and try to resolve the exhausted behaviour by releasing those connections to idle queue automatically? When checking the JMX matrix during this pool exhausted time all the connections are in the active queue. https://blog.christopherschultz.net/2009/03/16/properly-handling-pooled-jdbc-connecti

Re: Clarification on behaviour after pool exhaustion happen in tomcat jdbc pool 9.0.16

2021-08-08 Thread Sampath Rajapakshe
ing those connections to idle > > queue automatically? When checking the JMX matrix during this pool > > exhausted time all the connections are in the active queue. > > > https://blog.christopherschultz.net/2009/03/16/properly-handling-pooled-jdbc-connections/ > > > If not,

Re: Clarification on behaviour after pool exhaustion happen in tomcat jdbc pool 9.0.16

2021-08-06 Thread Christopher Schultz
lve the exhausted behaviour by releasing those connections to idle queue automatically? When checking the JMX matrix during this pool exhausted time all the connections are in the active queue. https://blog.christopherschultz.net/2009/03/16/properly-handling-pooled-jdbc-connections/ If not, what i

Clarification on behaviour after pool exhaustion happen in tomcat jdbc pool 9.0.16

2021-08-06 Thread Sampath Rajapakshe
Hi All, In my local setup before pool exhaustion exception is thrown, all the connections seem to be in freezed and when checking processList in mysql, those connections are in sleep state and doesn't execute any queries. After waiting for maxWait period the pool exhausted exception gets thrown

Re: Does Tomcat JDBC Connection Pool reset autocommit on closed connections?

2021-03-16 Thread Christopher Schultz
> > Hello, > > > > > > > > > > > > I'm using Tomcat 10.0.0. Suppose I call setAutoCommit(false) on a connection obtained from a Tomcat JDBC Connection Pool. Then I do some stuff with the connection, call commit() or rollback() and final

Re: Does Tomcat JDBC Connection Pool reset autocommit on closed connections?

2021-03-15 Thread My Subs
> > > > > > > > > > > I'm using Tomcat 10.0.0. Suppose I call setAutoCommit(false) > > on a connection obtained from a Tomcat JDBC Connection Pool. Then I do > > some stuff with the connection, call commit() or rollback() and finally

Re: Does Tomcat JDBC Connection Pool reset autocommit on closed connections?

2021-03-15 Thread Christopher Schultz
n 12/03/2021 03:57, My Subs wrote: > > > > Hello, > > > > > > > > I'm using Tomcat 10.0.0. Suppose I call setAutoCommit(false) on a connection obtained from a Tomcat JDBC Connection Pool. Then I do some stuff with the connection, call commi

Re: Does Tomcat JDBC Connection Pool reset autocommit on closed connections?

2021-03-13 Thread My Subs
> On 12/03/2021 03:57, My Subs wrote: > > > > Hello, > > > > > > > > I'm using Tomcat 10.0.0. Suppose I call setAutoCommit(false) on a > > connection obtained from a Tomcat JDBC Connection Pool. Then I do some > > stuff with the connection

Re: Does Tomcat JDBC Connection Pool reset autocommit on closed connections?

2021-03-12 Thread Christopher Schultz
Alex, On 3/12/21 16:32, My Subs wrote: On Fri, 12 Mar 2021 02:35:27 -0500 Mark Thomas wrote > On 12/03/2021 03:57, My Subs wrote: > > Hello, > > > > I'm using Tomcat 10.0.0. Suppose I call setAutoCommit(false) on a connection obtained from a Tomcat

Re: Does Tomcat JDBC Connection Pool reset autocommit on closed connections?

2021-03-12 Thread My Subs
On Fri, 12 Mar 2021 02:35:27 -0500 Mark Thomas wrote > On 12/03/2021 03:57, My Subs wrote: > > Hello, > > > > I'm using Tomcat 10.0.0. Suppose I call setAutoCommit(false) on a > > connection obtained from a Tomcat JDBC Connection Pool.

Re: Does Tomcat JDBC Connection Pool reset autocommit on closed connections?

2021-03-11 Thread Mark Thomas
On 12/03/2021 03:57, My Subs wrote: Hello, I'm using Tomcat 10.0.0. Suppose I call setAutoCommit(false) on a connection obtained from a Tomcat JDBC Connection Pool. Then I do some stuff with the connection, call commit() or rollback() and finally call close() on it without ever calling

Does Tomcat JDBC Connection Pool reset autocommit on closed connections?

2021-03-11 Thread My Subs
Hello, I'm using Tomcat 10.0.0. Suppose I call setAutoCommit(false) on a connection obtained from a Tomcat JDBC Connection Pool. Then I do some stuff with the connection, call commit() or rollback() and finally call close() on it without ever calling setAutocommit(true). What

Re: Tomcat JDBC Connection Pool question

2021-02-11 Thread xcorpius
Thanks Phil! Mensaje original On 11 feb. 2021 2:54, Phil Steitz escribió: > See maxWait for Tomcat JDBC Pool > > https://tomcat.apache.org/tomcat-9.0-doc/jdbc-pool.html > > Or for the default dbcp pool, maxWaitMillis > > https://commons.apache.or

Re: Tomcat JDBC Connection Pool question

2021-02-10 Thread Phil Steitz
See maxWait for Tomcat JDBC Pool https://tomcat.apache.org/tomcat-9.0-doc/jdbc-pool.html Or for the default dbcp pool, maxWaitMillis https://commons.apache.org/proper/commons-dbcp/configuration.html Phil On 2/10/21 3:22 PM, xcorpius wrote: Hi Chris! ConnectionReserveTimeoutSeconds

Re: Tomcat JDBC Connection Pool question

2021-02-10 Thread xcorpius
Units: seconds Default: 10 Minimum: -1 Maximum: 231-1 Thanks, Xcorpius Mensaje original On 10 feb. 2021 23:13, Christopher Schultz escribió: > Xcorpius, > > On 2/10/21 07:15, xcorpius wrote: >> Is there a parameter in "Tomcat JDBC Connectio

Re: Tomcat JDBC Connection Pool question

2021-02-10 Thread Christopher Schultz
Xcorpius, On 2/10/21 07:15, xcorpius wrote: Is there a parameter in "Tomcat JDBC Connection Pool" 9 equivalent to the ConnectionReserveTimeoutSeconds parameter from Weblogic? Maybe. What does that parameter actually d

Tomcat JDBC Connection Pool question

2021-02-10 Thread xcorpius
Hi! Is there a parameter in "Tomcat JDBC Connection Pool" 9 equivalent to the ConnectionReserveTimeoutSeconds parameter from Weblogic? Thanks, Xcorpius

RE: jdbc connction pool issues [EXTERNAL]

2020-12-18 Thread Beard, Shawn
Yeah I didn’t consider that relevant at the time. All examples of creating a jdbc connection pool for SQL server on tomcat did not have specifying the factory in them. So I didn’t consider it relevant. My bad. ​ Shawn Beard• Sr. Systems Engineer Middleware Engineering

Re: jdbc connction pool issues [EXTERNAL]

2020-12-18 Thread Christopher Schultz
: Other tomcat servers with exact same jdbc connection pool config(only difference is servername, databasename, user and pass) show 50 max connections, which is what maxActive is set to. So you can see why we were maybe confused about what was happening. -chris

RE: jdbc connction pool issues [EXTERNAL]

2020-12-17 Thread Beard, Shawn
ubject: Re: jdbc connction pool issues [EXTERNAL] ** CAUTION: External message Shawn, On 12/17/20 11:04, Beard, Shawn wrote: > I was able to fix this. I added this to the config: > > factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" > > I was then seeing maxConnecti

Re: jdbc connction pool issues [EXTERNAL]

2020-12-17 Thread Christopher Schultz
n't sounds right if "all your other servers are working with the same config and Tomcat version" so something isn't right about that statement. *Something* is different. Switching to the Tomcat jdbc-pool again uses "maxActive" instead of "maxTotal" as the con

RE: jdbc connction pool issues [EXTERNAL]

2020-12-17 Thread Beard, Shawn
sbe...@wrberkley.com<mailto:sbe...@wrberkley.com> -Original Message- From: Beard, Shawn Sent: Wednesday, December 16, 2020 7:43 AM To: Tomcat Users List Subject: RE: jdbc connction pool issues [EXTERNAL] ** CAUTION: External message Yes same version of tomcat 9.0.31,

RE: jdbc connction pool issues [EXTERNAL]

2020-12-16 Thread Beard, Shawn
<mailto:sbe...@wrberkley.com> -Original Message- From: Phil Steitz Sent: Tuesday, December 15, 2020 3:37 PM To: users@tomcat.apache.org Subject: Re: jdbc connction pool issues [EXTERNAL] ** CAUTION: External message On 12/15/20 1:35 PM, Beard, Shawn wrote: > No int

Re: jdbc connction pool issues [EXTERNAL]

2020-12-15 Thread Phil Steitz
On 12/15/20 1:35 PM, Beard, Shawn wrote: No intitialSize is not defined. Im getting the data to verify from JMX, however we also have an APM called appdynamics loaded. Both verified the 8 max connections. Other tomcat servers with exact same jdbc connection pool config(only difference

RE: jdbc connction pool issues [EXTERNAL]

2020-12-15 Thread Beard, Shawn
Is there a specific factory I should be loading? Or is not specifying and allowing default good enough? It is a jdbc connection pool, catalina home is set correctly. Shawn​ Beard Sr. Systems Engineer | BTS Middleware Engineering | +1-515-564-2528 | sbe

RE: jdbc connction pool issues [EXTERNAL]

2020-12-15 Thread Jalaj Asher
are-->wow6432node ---> apache software foundation. Else you might want to check if the same is a problem with DBCP pool as well . As from the details shared looks like you are using jdbc pool. Regards Jalaj -Original Message- From: Johnson, Jim Sent: Tuesday, December 15, 202

RE: jdbc connction pool issues [EXTERNAL]

2020-12-15 Thread Beard, Shawn
No intitialSize is not defined. Im getting the data to verify from JMX, however we also have an APM called appdynamics loaded. Both verified the 8 max connections. Other tomcat servers with exact same jdbc connection pool config(only difference is servername, databasename, user and pass) show

RE: jdbc connction pool issues [EXTERNAL]

2020-12-15 Thread Johnson, Jim
on active connections) Here is the doc that I've been referring to - sorry for not linking it earlier: https://tomcat.apache.org/tomcat-9.0-doc/jdbc-pool.html On those other Tomcat servers is there a initialSize defined? Jim -Original Message- From: Beard, Shawn Sent: Tuesday, December

RE: jdbc connction pool issues [EXTERNAL]

2020-12-15 Thread Johnson, Jim
Hi Shawn, I can't speak to that monitoring tool or why it reports that way. I do see what you're saying though - I would expect the error message to be something like: >>name="jdbc/DataSource",type=DataSource has reached 80% limit. >>Current pool size [8, Max pool size [

RE: jdbc connction pool issues [EXTERNAL]

2020-12-15 Thread Beard, Shawn
​ Beard Sr. Systems Engineer | BTS Middleware Engineering | +1-515-564-2528 | sbe...@wrberkley.com<mailto:sbe...@wrberkley.com> -Original Message- From: Johnson, Jim Sent: Tuesday, December 15, 2020 1:35 PM To: Tomcat Users List Subject: RE

RE: jdbc connction pool issues [EXTERNAL]

2020-12-15 Thread Beard, Shawn
- From: Johnson, Jim Sent: Tuesday, December 15, 2020 1:35 PM To: Tomcat Users List Subject: RE: jdbc connction pool issues [EXTERNAL] ** CAUTION: External message Hi Shawn, I think you’re missing initialSize initialSize (int)The initial number of connections that are created when the pool is s

RE: jdbc connction pool issues

2020-12-15 Thread Johnson, Jim
is 100 It would make sense that 8 connections would be 80% utilized. I would try replacing maxActive with initialSize and seeing how that works for you. Good luck! - Jim From: Beard, Shawn Sent: Tuesday, December 15, 2020 2:12 PM To: Tomcat Users List Subject: jdbc connction pool issues CAUTION

jdbc connction pool issues

2020-12-15 Thread Beard, Shawn
We have this jdbc connection pool set up: However we are getting this error: Resource Pool Limit Reached Time 12/15/20 11:48:00 AM Summary JDBC Connection Pool Catalina:class=javax.sql.DataSource,context=/XX,host=X,name="jdbc/DataSource",type=DataSource has reached

Re: Problems configuring a JNDI JDBC pool to Postgres

2020-11-28 Thread Mark Thomas
brary? There is very little between them in terms of performance, especially if you configure them for equivalent behaviour. I'd summarise the differences as: - DBCP2 follows the JDBC specs a little more closely by default - jdbc-pool has marginally better performance under high load - jdbc-pool has

Re: Problems configuring a JNDI JDBC pool to Postgres

2020-11-27 Thread Hrafn Malmquist
ore you start moving config files around. > > You'll want something like: > > >global="jdbc/dspaceWeb" > type="javax.sql.DataSource" > /> > > > in server.xml > > Mark > &

Re: Problems configuring a JNDI JDBC pool to Postgres

2020-11-27 Thread Mark Thomas
On 26/11/2020 22:52, Hrafn Malmquist wrote: > A > > How silly of me. It's right there staring me in the face nested inside the > host in server.xml, right? Right. The changes to GlobalResources look good. You'll probably want to revert the change you made to appBase. > So, best practice

Re: Problems configuring a JNDI JDBC pool to Postgres

2020-11-26 Thread Hrafn Malmquist
ded >> the >> >following Resource >> > >> >> > factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" >> > type="javax.sql.DataSource" >> > auth="Container" >

Re: Problems configuring a JNDI JDBC pool to Postgres

2020-11-26 Thread Hrafn Malmquist
maxTotal="50" > > maxIdle="15" > > minIdle="5" /> > > Exactly where in server.xml did you put this? What element was it nested > under? > > >There are a couple of issues that confuse me: > >

Re: Problems configuring a JNDI JDBC pool to Postgres

2020-11-26 Thread Mark Thomas
that confuse me: >a) the official documentation about JNDI datasource examples [0] says > "*This >author has not had success here, although others have reported so. >Clarification would be appreciated here." *in the section about >Postgres. In other words, we c

Re: Problems configuring a JNDI JDBC pool to Postgres

2020-11-26 Thread Mark Thomas
On 26/11/2020 21:01, Rob Sargent wrote: > Looks like you named your resource jdbc/dspaceWeb and dropped the Web in your > lookup Nope. You are confusing the global and local name. The config looks right on first glance. Mark > >> On Nov 26, 2020, at 12:58 PM, Hrafn Malmq

Re: Problems configuring a JNDI JDBC pool to Postgres

2020-11-26 Thread Rob Sargent
Looks like you named your resource jdbc/dspaceWeb and dropped the Web in your lookup > On Nov 26, 2020, at 12:58 PM, Hrafn Malmquist > wrote: > > Good day fellow Apache Tomcat users > > I have recently had reason to set a Postgres DataSource via the Tomcat JNDI > api

Problems configuring a JNDI JDBC pool to Postgres

2020-11-26 Thread Hrafn Malmquist
s have reported so. Clarification would be appreciated here." *in the section about Postgres. In other words, we can't be sure this works? b) in the official documtation about JDBC connection pool it says that if you want to define a JDBC connection pool in the Apache Container (w

Re: Tomcat JDBC Pool Cleaner Deadlock Problem

2020-08-31 Thread Felix Schumacher
the >> connection to close it in the case of abandoned connections. >> >> The dbcp2 pools seems to be able to use that method, while I found no >> reference to it in the jdbc-pool module (which you are using). > > We are talking about making that change on commons-dev now

  1   2   3   4   5   6   7   8   9   10   >