Questions tagged [connection-pooling]

In software engineering, a connection pool is a cache of connections maintained so that the connections can be reused when future requests to the resource are required.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
30 views

Connection Pool and PooledConnection

I am currently learning about Connection Pooling concept. I went through the official documentation in Oracle website that tells about Datasources and ConnectionPooling. In the documentation it is ...
Chris's user avatar
  • 19
0 votes
0 answers
13 views

How To dispose db connection before Gunicorn worker processes spawns in Python

While executing query in Python on oracle database with cx_oracle=8.3.0, with sqlalchemy=1.4.0 and instantclient=21.11 I am getting multiple "ORA-03106: fatal two-task communication protocol ...
jamila's user avatar
  • 37
2 votes
0 answers
37 views

Implication of setting target URL as http transport Proxy in golang net/http

I have an usecase where there are two services S1 and S2 and 1000 different Hosts. S1 and S2 are running in same machine and can talk to each other over local host and port. It works like this: S1 ...
G.G.'s user avatar
  • 612
0 votes
0 answers
14 views

HicariDataSource with other datasource

I have a custom java datasource class which has database connection ability as well as connection pooling option. However, I am not very satisfied with connection pooling functions there. Therefore, I ...
Nahid Shah's user avatar
2 votes
0 answers
24 views

Spring boot application with JpaRespository and c3p0 leaking connections

I found a deadlock in my system, but my attempts at getting rid of it failed. There's this endpoint that is firing 3 or more requests to the DB, so when there's enough requests fo my endpoint fired ...
Hn073's user avatar
  • 21
1 vote
1 answer
34 views

What does "setMaxTotal" actually do? (MySQL & Java & Apache's BasicDataSource connection pool)

Having a MySQL database on AWS, I see that the max number of connections it allows is 60 when doing show variables like 'max_connections': So when using Apache's javax.sql.DataSource implementation ...
corgrath's user avatar
  • 11.7k
0 votes
0 answers
32 views

Why many MongoDB connections appear in the cluster if I only connected once?

I want to understand why so many connections are up in my cluster if I only connected to it once. This is my mongodbConnection.js file. I wrote it in a way I tought it would connect to the database ...
Jp-bruno's user avatar
0 votes
0 answers
26 views

Should I use both client side and external connection pooling together?

client side pooling: I mean pooling from the application library middleware pooling: I mean something like PgBouncer I know this question definitely depends on the workload but I still hope to have ...
nvcnvn's user avatar
  • 5,011
0 votes
1 answer
38 views

Can anyone see why Tomcat is timing out on my connection pool?

have a connection pool in my Springboot App with these settings in Application.properties: // db user name, password, url here... spring.datasource.tomcat.initial-size=15 spring.datasource.tomcat.max-...
Morkus's user avatar
  • 527
0 votes
0 answers
54 views

How to handle Dapper SQL connection with multiple async functions

I have a question about Dapper. My SqlRepository contains a lot of asynchronous functions to execute and query various stored procedures. Sample code looks like this and imagine many functions like ...
refrachnican's user avatar
1 vote
1 answer
29 views

Active connections persist after removing security group rules for AWS ElasticCache (Redis) instance

Hello Stack Overflow community, We're currently facing a puzzling issue related to an AWS ElasticCache (Redis) instance within our environment. We're hoping to get some insights or guidance on this ...
Devam Parikh's user avatar
0 votes
0 answers
15 views

Issue with Socket Timeout Exception when using shared PoolingHttpClientConnectionManager

I am facing an issue while using PoolingHttpClientConnectionManager in my Java application. I have a scenario where I need to handle socket timeout exceptions for some endpoints that might not respond ...
ketan's user avatar
  • 25
2 votes
1 answer
54 views

Chaos Monkey delay test causes tomcat-jdbc connection pool to have huge delay in getting connection

We are running delay test using Chaos Monkey on our service. We introduce 2 second delay using it. During this time the response time of our service goes down to 35-40 seconds also. When we profiled ...
Kumar's user avatar
  • 1,546
0 votes
0 answers
30 views

Timeout expired timeout period elapsed prior to obtaining a connection from the pool

Our Server seems to have slowed down when trying to execute an SQL Query. We may have some un-closed connection and the server was overflowed. Can someone please help me on how to find if I have un-...
Joyconboi's user avatar
0 votes
1 answer
46 views

Give a database client to a webserver in rust [closed]

I'm currently working on a side project (in rust) where i have a to give a client database (postgres, redis, or meilisearch) to an actix route. The goal is to practice developing scalable systems and ...
Jdxp's user avatar
  • 3
0 votes
0 answers
24 views

Opening mysql connection threw an exception in net core

Im trying to open a connection just closed to mysql, this threw a exception totally misleading: "The given key was not present in the dictionary" my code can be summarized so: try { ...
Max's user avatar
  • 87
0 votes
1 answer
41 views

Apache HttpClient with limited waiters

I'm using Apache HttpClient 4.5 and I want to configure the connection pool to limit the number of waiting threads. So if the pool is exhausted, it should allow up to n threads to wait for a ...
shmosel's user avatar
  • 49.3k
0 votes
0 answers
13 views

Apache HttpClient created by PoolingHttpClientConnectionManager can not close [duplicate]

I use PoolingHttpClientConnectionManager create httpClient, when I close http client, it will shutdown PoolingHttpClientConnectionManager. Why is it designed like this? Is the CloseableHttpClient need ...
hehe's user avatar
  • 173
2 votes
2 answers
78 views

httpclient5 with connection pooling in java

I am trying to use httpclient5 with connection pooling. Below are some of the points mentioned in documentation: CloseableHttpClient instances should be closed when no longer needed or about to go ...
ketan's user avatar
  • 25
0 votes
0 answers
43 views

Connection pool in Istio

Currently working on Istio configuration. Below are the configuration connectionPool: tcp: maxConnection:1 connectTimeout: 1000ms http: httpMaxPendingRequest:128 maxRequestPerConnection:256 With above ...
Suki's user avatar
  • 1
0 votes
0 answers
25 views

sometime not deleting records from postgresql db using python client

Hi this is my postgresql client code using python and I am doing connection pooling because I was getting error of connection limitations . So issue is whenever I get new record and I want to delete ...
Ninja's user avatar
  • 241
0 votes
0 answers
53 views

Connection pool sharing between different python scripts

I would like to share a pool of connections between several python scripts. I have a list of jsons like. { 'name': 'Task 1', 'command': 'python', 'args': ['/home/admin/task1.py','5'] } { 'name': '...
mat's user avatar
  • 181
1 vote
3 answers
122 views

Is using too many HttpClient (HttpClientHandler) considered bad design and how to get around it?

I have read a lot about the socket exhaust problem. In general, this never caused me any problems, I always tried to follow the recommendations as much as possible. But now I have a question. I'm ...
achies's user avatar
  • 43
0 votes
0 answers
25 views

Redis connection is not being released back to the pool

private static StringRedisTemplate stringRedisTemplate = null; private static JedisConnectionFactory connectionFactory = null; try { RedisSentinelConfiguration sentinelConfig; ...
Sneha's user avatar
  • 233
0 votes
0 answers
54 views

PostgreSQL Connection Pooling with NpgSQL

I am writing a program (Basically a TCP Server), that collects data from IoT devices and store them into database. This is in C# and I have used the NPGSQL library to interact with PostgreSQL. I have ...
Rakesh Mehta's user avatar
0 votes
1 answer
172 views

Why is HikariCP logging "Cannot acquire connection from data source"

Implemented hikari connection pools in an application with around 9 different databases, using 9 different pools. Everything seems to be working as intended locally and on non-prod remote servers. ...
Matthew Marion's user avatar
0 votes
0 answers
120 views

Transaction in Hikari's pooling connection spring-boot with spring-data-jpa

I'm trying to persist (via spring-data-jpa and spring boot) an JPA entity which have reference to others entities and everything is fine locally but I got the below stack trace error when I deploy my ...
kasko's user avatar
  • 131
0 votes
1 answer
134 views

Transaction blocks not allowed in statement pooling mode

I'm trying to persist (via spring-data-jpa and spring boot) an JPA entity which have reference to others entities and everything is fine locally but I got the below stack trace error when I deploy my ...
kasko's user avatar
  • 131
0 votes
0 answers
42 views

Connection Pool Doesn't reach it's max connection pool Hikari CP

sorry for my bad english. From grafana montirong above, as you can see some state about connection pool in Hikari CP: Pending threads started from 25 Active connection started from 10 Iddle threads ...
Devid Joshua's user avatar
1 vote
1 answer
107 views

how to set timeout to oracleclient connection in SSIS?

I have an SSIS package that imports data from Oracle to SQL. also, there is a SQL job that executes this package every 5 minutes. the problem is when SSIS fails to establish a connection to oracle ...
Emma's user avatar
  • 15
0 votes
0 answers
96 views

Error using Nominatim API : HTTPSConnectionPool ... Max retries exceeded ... Failed to establish a new connection: [Errno 11001] getaddrinfo failed

I'm new to the Geopy library and the Nominatim library and I've encountred a problem. I'm trying to get the latitude and longitude of an adress using the Nominatim API inside a Jupyter Notebook with a ...
GaryTheCaptain's user avatar
1 vote
0 answers
97 views

eventlet.monkey_patch cause: maximum recursion depth exceeded in ssl.py

In a python 3.10.9 docker container, the app depends on a critical package what uses eventlet.monkey_patch(socket=True). Unfortunatelly this cause RecursionError: maximum recursion depth exceeded when ...
oliver nadj's user avatar
0 votes
1 answer
76 views

Payara5 wmq.jmsra connection failure with MQJCA1011: Failed to allocate a JMS connection

I installed wmq.jmsra Resource adapter to Payara 5.2022.5 application server. I created a connector connection pool. ./asadmin create-connector-connection-pool --raname wmq.jmsra --...
sabri's user avatar
  • 15
0 votes
1 answer
23 views

Is it possible to have multiple database connections stored in a single connection pool?

I have a problem where to perform an operation, switching should happen between multiple databases, and instead of closing and opening connections or keeping all database connections live, it is more ...
Sai Vamshi's user avatar
0 votes
0 answers
118 views

FastAPI databases wrapper- asyncpg, global database connection pool and ability to set the schema at run time in multi tenant app

How can I implement a safe and efficient global database connection pool in a multi-tenant application using the PostgreSQL Schema-based approach, FastAPI, and asyncpg (databases wrapper)? ...
satish mishra's user avatar
0 votes
0 answers
46 views

CPU Spike during database restart or Maintenance cause by JDBC pool thread and Tomcat JDBC Pool Cleaner thread

Whenever DB is restart during maintenance we see CPU spike in our application , and below thread are using 99% of the CPU and issue is only resolved when application is restarted ... We have tried ...
Dev Jadeja's user avatar
0 votes
0 answers
77 views

Connection pooling for Snowflake in Java

We are connecting to snowflake from Java application using encrypted private key(this encrypted private key comes from SNOWSQL_PRIVATE_KEY_PASSPHRASE and private_key which is an API call which will ...
World of Titans's user avatar
0 votes
0 answers
83 views

Postgres connection stuck at idle even after serving 200 requests per second through a JDBC connection

Just like the title says. I am monitoring the pg_stat_activity table in my Postgres DB and trying to capture the behavior of my Tomcat JDBC connection pooling implementation. The idle connections that ...
Iceweasel's user avatar
0 votes
0 answers
147 views

How to verify connection-pool usage in redis-jedis springboot

We have a spring based rest application which fetches data from Redis, we are using spring-data-redis and jedis library to work with Redis-Cluster. Now we are adding jedis connection pool with below ...
Mehraj Malik's user avatar
0 votes
0 answers
45 views

Connection can not be closed if the app is hosted in docker and access db via Azure Hybrid Connection

I'm building an API that using node-mssql package to connect to MSSQL, it provides connection pool functionality, so I can reuse the connection to improve performance. It works well in local env, the ...
Wright Wang's user avatar
1 vote
1 answer
530 views

Unable to pass tokio-postgres pool connections to Axum handler

I'm a Rust newbie. I'm trying to create a pool of tokio-postgres connections to a handler, it should use the connection for fill a database table. I used deadpool-postgres and it seems it creates the ...
bontxa's user avatar
  • 11
0 votes
1 answer
379 views

When to use pg Client instead of Pool max 1 connection on serverless?

There are several SO answers explaining the difference between the node-postgres (pg) Client and Pool classes. All these answers essentially say to use Pool for efficient use of multiple connections. ...
Joe Lapp's user avatar
  • 2,475
0 votes
0 answers
28 views

how to use connection pooling to reuse store.connect() in java mail API for multiple users

I have used connection pooling to reuse store.connect(). It works for single user but for multiple users it is not working. For multiple users it takes the 1st loaded user data for all other users. ...
rose pauline's user avatar
0 votes
0 answers
137 views

Slow performance of establishing cx-oracle Connection pool in FLASK Application

i have a question regarding the Connection pooling in my Flask APP. Queries work fast but the initial establishing of Databaseconnection takes more than 40 seconds. I have 2 Connections that are being ...
Sebastian Damon B's user avatar
0 votes
0 answers
264 views

WebClient maxConnection pool and pendingAcquireMaxCount limit?

Lets imagine I need a netty server(reactive/non blocking), and I need to process at maximum 50 http requests at the same time. But I now that these requests have to use a WebClient(netty reactive http ...
fernando1979's user avatar
  • 1,737
5 votes
2 answers
283 views

Make two java JDBC DataSources use single backing DataSource as it's source

I want to create two separate JDBC data-sources (aka. connection pools) that would re use connections similar to following diagram. .------. '------' | ...
Bogdan Mart's user avatar
0 votes
0 answers
47 views

SQLAlchemy connection pool - logger.error when pool is full?

In SQLAlchemy's pool, is there a way to get a logger.error call, or to invoke some sort of callback, when a connection is attempted to be made but the pool(+overflow) is already using all of its ...
Michal Charemza's user avatar
0 votes
0 answers
29 views

Manage pool HttpClient and HttpResponse in a multithreaded environment because code get stuck and threads get killed

I am working on a high performance code with multithreaded environment. We are working on a project where we have to crawl data from SharePoint. There are 10 crawler threads which fetch list of ...
Gopal Gupta's user avatar
0 votes
0 answers
253 views

AWS Elasticache (Redis) connection pool management

I have a service which uses AWS Elasticache Redis to cache data. It uses Jedis client to connect to the Redis cluster and implement queries. For the jedis client, the connection config is something ...
gandalf_grey's user avatar

1
2 3 4 5
66