Questions tagged [connection-pool]

108 questions
1
vote
1 answer

Spark Streaming connection pool in each JVM

In my spark streaming app, I have many I/O operations, such as codis, hbase, etc. I want to make sure exactly one connection pool in each executor, how can I do this elegantly? Now, I implement some static class dispersedly, this is not good for…
wttttt
  • 137
  • 1
  • 9
1
vote
1 answer

The org.apache.tomcat.jdbc.pool.jmx not showing up on JConsole

I've research how to monitor connection pool on Tomcat server. After research I found this question. Per his answer, I choose option 2 - Monitoring using JMX (Java Management Extensions). I try to set up JMX on Tomcat server and finally, I can…
Little J
  • 21
  • 8
1
vote
0 answers

Grails shareable vs unshareable connection pools for postgres datasource

My problem is that I have two apps that are both getting these exceptions: Caused by: org.apache.tomcat.jdbc.pool.PoolExhaustedException: [pool-2-thread-273] Timeout: Pool empty. Unable to fetch a connection in 30 seconds, none…
jbu
  • 15,831
  • 29
  • 82
  • 105
1
vote
1 answer

How to get the connection pool logs in spring boot

I have deployed my war in AWS and is very slow right now. I want to figure out following things in spring boot: Which connection pool is used in spring boot apps? How to log connection pool information in spring boot app? Right now, I got is…
User1230321
  • 1,435
  • 4
  • 23
  • 39
1
vote
1 answer

How to set Glassfish connection pool using DNS in ServerName and Url

My database is intalled on server behind a rooter that has a dynamic IP, i use a kind of DynDns to update DNS-DB-Server with the last Public IP of the server in Glassfish connection pool properties i have entred as server name the DNS-DB-Server and…
alveomaster
  • 1,681
  • 2
  • 12
  • 21
1
vote
1 answer

Spring AsyncRestTemplate connection pool and thread pool settings

I want to use AsyncRestTemplate for making a REST call in my service. According to Spring documentation, this class has 5 constructors( refer…
user3740951
  • 1,109
  • 2
  • 20
  • 39
1
vote
1 answer

Tomcat 8.5 - Can't access mysql JDBC resource in contextInitialized method of ServletContextListener

My web application has a servlet listener like this: @WebListener public class MyContextListener implements ServletContextListener { @Override public void contextInitialized(ServletContextEvent e) { ... con =…
Ehsan Khodarahmi
  • 4,772
  • 10
  • 60
  • 87
0
votes
0 answers

connection pool exception on keycloak when using SPI

We are randomly receiving a connection error from a connection pool defined on wildfly which is serving keycloak 15.1.1 the oracle driver is oracle.jdbc.OracleDriver 19.13 It happens randomly, we have also validation enabled on the connection pool…
simonC
  • 4,101
  • 10
  • 50
  • 78
0
votes
0 answers

Spring Batch Connection Pool issue Already in use

enter image description herewhen I am running the spring batch for saving the 15 csv file data into oracle database. it is saving 10 csv apart from that remaining csv file data are not saved it is throwing exception:- Could not open JDBC Connection…
0
votes
0 answers

Changes needed in tomat configuration to avoid JDBC Connection pool exhaustion

We occasionaly hit org.apache.tomcat.jdbc.pool.PoolExhaustedException when threads are holding connections for too long or are going into a deadlock state. Any recomendation to tweak in Tomcat's DB Connection Configuration or Data source Factory…
Dice
  • 3
  • 1
  • 3
0
votes
0 answers

Unclosed JDBC Connection issue in Spring DBCP Environment

this service is spring 4.3.16.RELEASE and use DBCP. no error in jboss server.log. however, APM(Application Performance Management) system detects the Unclosed JDBC Connection when every execute query. on the other hand, I think about "Unclosed JDBC…
유재영
  • 1
  • 1
0
votes
0 answers

DBCP connection property name issue

I am making a simple program using MyBatis. At this time, I am having difficulty applying DBCP to the configuration file(mybatis-config.xml) containg DB connection information.
0
votes
0 answers

mysql2/promise: If one query on transaction fail, will the lock and the connection be released?

When doing transactions using promises in the sql2 npm lib this way: try { const db = await getDatabase(); // this return a connection pool const connection = await db.getConnection(); await connection.beginTransaction(); …
0
votes
0 answers

Hikari pool Connections not reused

I am seeing the below DEBUG logs for my Java service. Connections are not going to the pool again after use. And active and total connects remain equal and after a certain time, when timeout happens, waiting for connections…
0
votes
1 answer

DataFormatException happened in OkHttpClient

I implementing the OkHttpClient in my service. When I hit 150+ connections in a connectionPool in the okHttpClient at a time, the below exception has been thrown. Any one aware of this exception. How to fix this issue ? Is that any problem in…
Kaushik KR
  • 11
  • 2