Hi Christopher

Thanks for your time here.

You mean like, a connection is made, no queries are executed, and then the 
connection is terminated? 
- ANSWER -  DBAs are saying connections last a minute or so and are replaced by 
a new set of connections 1 session each pool. 


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? 
- ANSWER we are using dbcp2 


Do you have any background tasks (in the JVM) that will run even when there is 
no user activity? Cache-management? Lazy-writes? 
- ANSWER I don't think so. 


Are you using Tomcat's clustering? Are you using a database-backed session 
management or any kind? -  
- ANSWER YES clustered B node down, A node up this Tomcat node is not live or 
receiving any traffic currently in test.


Are the connections definitely being made from the application itself and/or 
Tomcat? Or do you just see those connections coming from the IP where the 
application is running? - ANSWER im assuming according to server.xml they are 
utlising these declared connections via Tomcat. 


Do you have any background tasks (outside the JVM) that will run even when 
there are no user actions? For example, some monitoring system that pings the 
server to say "can you reach the database?" - ANSWER NO


O

-----Original Message-----
From: Christopher Schultz <ch...@christopherschultz.net> 
Sent: 20 January 2022 17:34
To: users@tomcat.apache.org
Subject: Re: Tomcat jdbc connections

Alan,

On 1/20/22 09: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?
You mean like, a connection is made, no queries are executed, and then the 
connection 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 activity? Cache-management? Lazy-writes?

Are you using Tomcat's clustering? Are you using a database-backed session 
management or any kind?

Are the connections definitely being made from the application itself and/or 
Tomcat? Or do you just see those connections coming from the IP where the 
application is running?

Do you have any background tasks (outside the JVM) that will run even when 
there are no user actions? For example, some monitoring system that pings the 
server to say "can you reach the database?"

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to