Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

Authentication problem with Auth Query - PGBouncer

I am using PG Version 14.3 and Bouncer 1.20v. I am trying to use auth query for authentication and connection via bouncer. I created a auth user as 'pgbouncer' and it's password is encrypted as scram-...
manasa's user avatar
  • 1
0 votes
0 answers
40 views

I always get oracle.net.jdbc.nl.InvalidSyntaxException twice and in the third attempt the call succeeds

We have a Spring Boot application which utilizes Spring Data to call stored procedures in a Oracle Database. Whenever the application accesses the database, we can see in Dynatrace an exception: ...
Carlos Avila's user avatar
0 votes
0 answers
31 views

JedisConnectionException: Unexpected end of stream (when Redis timeout already set to 0)

I've seen a few other questions on SO for this exception, but the answers are generally "set the timeout on the server side to 0" which the Redis instances I've been using already have. ...
valentinocc's user avatar
0 votes
0 answers
40 views

Databricks connection pool(ing) using python

I have a python application which I need to connect with databricks (Databricks SQL Connector). The process for that is quite simple - connect with dbr execute your query get the result close the ...
Prateek Goyal's user avatar
0 votes
0 answers
72 views

WARNING - Connection pool is full, discarding connection: storage.googleapis.com

I'm working on a Python script that downloads images from an Amazon S3 bucket and uploads them to Google Cloud Storage (GCS) using the google-cloud-storage library. The script processes a large ...
Cauder's user avatar
  • 2,487
0 votes
0 answers
53 views

Connection Pool turns slow at the first call after an inactivity period(15 Mins)

I've set a connection pool with Java and MySQL, also with SQL Server, using 'org.apache.commons.dbcp2'. once the connection pool is connected to the server everything works perfect, the pool responses ...
Erick Mejía's user avatar
0 votes
0 answers
65 views

NullReferenceException at C# SqlConnection Open

From time to time at my Windows 10 system background program in C#, I get a NullReferenceException at this.connection.Open(). My class: private SqlConnection connection; private string ...
Leo Bonhart's user avatar
0 votes
1 answer
85 views

HikariCP keep alive query leaking Google Spanner Sessions

I have a spring boot application using HikariCP. The app connects to a google spanner db. I am seeing the following session leak exception caused by HikariCP keep alive queries at com.google.cloud....
taimur's user avatar
  • 113
0 votes
0 answers
37 views

How to handle connection pooling in multitenant app (multiple app server and tenant per db)?

We are trying to build a multi-tenant app(using spring boot) with single db per tenant. We currently have less than 100 tenants but we expect around 1000 in 2-3 years. We have multiple app server ...
Sarthak's user avatar
1 vote
0 answers
53 views

Single database connection vs database connection pool

My understanding of a connection pool is that multiple connections to the database hang around and a client application can use them in order to send queries to the database, without having to go ...
JackG's user avatar
  • 13
0 votes
3 answers
130 views

Apache HttpClient PoolingHttpClientConnectionManager - allocated to maximum

I have set up PoolingHttpClientConnectionManager (with ssl): private PoolingHttpClientConnectionManager getConnManager( Registry<ConnectionSocketFactory> socketFactoryRegistry) { ...
Tomas Secret's user avatar
1 vote
2 answers
99 views

How does connection pooling work in python multiprocessing?

With python multiprocessing, Let's assume, I'm creating 10 processes by forking the main process. We know that child process inherit the state of the parent process in its own memory space. I have a ...
Sanjay S's user avatar
0 votes
0 answers
23 views

java.net.SocketTimeoutException retrofit

We are using a Retrofit 2.6 client to call a partner server, but for some calls, we are getting a socket connection timeout exception. We also have a Step Functions activity poller implemented within ...
Prachi Vishnoi's user avatar
0 votes
0 answers
22 views

Hystric Thread Pool is creating new database connection for each DB requests

I am using springboot application talking to mysql database. I have also enabled hystrix threadpool in it. 1 API requests is making 10 db requests. Now since i have hystrix threadpool enabled, 1 http ...
pavan singh's user avatar
0 votes
0 answers
40 views

Why are connections not being stored in the pool when using psycopg2 with ThreadedConnectionPool?

I'm using psycopg2 with ThreadedConnectionPool in a Python script to manage PostgreSQL database connections. However, it seems like the connections are not being stored in the pool as expected. Below ...
WAEX's user avatar
  • 125
0 votes
0 answers
30 views

Is unwrapped connection returned to Hikari connection pool in springboot (spring-data-jpa)

I have a spring-boot REST API which calls Stored Procedure from Oracle database. I have implemented Hikari connection pooling and specified JDBC connection credentials in application.properties. The ...
Kiran's user avatar
  • 21
0 votes
1 answer
147 views

How are connections handled by SQLAlchemy internally

Context Hello, I mostly use Django for my main backend monolith. In Django, you do not need to handle db connections on your own, this is abstracted (because Django uses the Active Record pattern ...
Antonio Gamiz Delgado's user avatar
0 votes
0 answers
67 views

MySQL2 Connection Pooling

I am trying to connect to my database using a connection pool. The rest api uses node and express and I'm using mysql/promise for the connection pool but when I run the code I get an error this is my ...
CodeMHT's user avatar
0 votes
0 answers
21 views

RestTemplate- How to decide maxConnection and maxConnectionPerRoute?

In RestTemplate how do we decide what should be maxConnection and maxConnectionPerRoute value? In some examples i see maxConnection = 100 and maxConnectionPerRoute = 20 and other value. Why can't i ...
Bagesh Sharma's user avatar
1 vote
2 answers
1k views

Managing JDBC Connections using Java Virtual Threads

We have a service in Java 17 which executes logic on our end sends request to a third party system. The response time from the third party system is around 800-1400ms. We have a ThreadPoolExecutor for ...
Shoaib's user avatar
  • 224
0 votes
0 answers
74 views

How to connect with pgbouncer using typeorm client?

We are using pgbouncer for connection pooling for our postgres database. How do we connect it with typeorm client. I couldnot find any documentation related to this. I am not able to find any relevant ...
Suzan Rana's user avatar
0 votes
2 answers
66 views

Why would a Tomcat 8.5 Connection Pool with Oracle have unused open (Dead?) connections?

I have a Grails 2.5 application that is deployed to Tomcat 8.5 application server where one customer is reporting that they are running out of connections in the connection pool. As part of the ...
John Lear's user avatar
1 vote
0 answers
144 views

When Are PostgreSQL Session-Level Settings "Reset" on a HikariCP ProxyConnection?

To preface, we are using HikariCP 5.0.1 with Java 21. I have also looked through the following questions (and many more) and did not find my answer: Connection timeouts with HikariCP Best approach ...
Idalas's user avatar
  • 83
0 votes
0 answers
54 views

multiple springboot microservices with single connection pool

I have multiple microservices springboot app running as jar file, each of them will create a connection to a centralize oracle database. I wish to have a connection pool for all these microservices to ...
world skills's user avatar
1 vote
1 answer
142 views

Multiprocessing and connection pool error: cannot pickle 'psycopg2.extensions.connection' object

I am trying to pass a db object that uses a connection pool in Postgres to another class object but I keep getting an error. if __name__ == "__main__": cores = calculate_number_of_cores() ...
Alexander Obidiegwu's user avatar
2 votes
1 answer
341 views

How to implement a connection pool on Cloud Run and Cloud SQL

I have an application running within the Cloud Run infrastructure. It was built with FastAPI and SQLAlchemy. The database is a Postgres, managed by Cloud SQL. At a certain point, the database alerts ...
p.magalhaes's user avatar
  • 8,160
0 votes
1 answer
192 views

Hikari - Driver does not support get/set network timeout for connections. (Method not supported : IfxSqliConnect.getNetworkTimeout())

Connecting to an Informix Database through Hikari in Java 8 to create a connection pool I run into the following error message: 10:22:44.180 [main] INFO com.zaxxer.hikari.pool.PoolBase - HikariPool-1 -...
Laszlo Hunyadi's user avatar
0 votes
0 answers
21 views

Wildfly configure multiple workers for UI vs Quartz background jobs

We have an application on wildfly 20 using Spring XML configs. It used a MS SQL driver in a JNDI threadpool configured in the standalone.xml file. Like this: <datasource jta="true" jndi-...
user avatar
1 vote
0 answers
407 views

Java Spring boot HikariPool :JDBCConnectionException: Unable to acquire JDBC Connection [Connection is not available, request timed out]

I am getting Unable to acquire JDBC Connection frequently when try to fetch or save data to a table. Exception in thread "Thread-215" org.springframework.transaction....
M.A.Murali's user avatar
  • 10.1k
2 votes
2 answers
95 views

How to restrict user from running queries that change data

I have a large Java based application that uses connection pooling to access the underlying database for all sort of CURD and reporting operations. The application also provides a database query ...
AnR's user avatar
  • 2,155
0 votes
0 answers
42 views

Can you share a single connection pool across all java programs running on a host?

As per our design, we will create a VM host and we will have multiple Java programs that will run on that host. Each program will read from a table in the Oracle database and write to a different ...
Anshul Dubey's user avatar
0 votes
0 answers
133 views

Failed to connect to docker container running Postgres via pgbouncer

Trying to create connection pool using pgbouncer. Here is the docker-compose.yml file. version: '3' services: db: image: postgres:12 volumes: - pg_data:/var/lib/postgresql/data -...
Cody's user avatar
  • 2,640
0 votes
0 answers
56 views

How to establish connection pooling for HTTP Requests Lambda function attached to AWS API gateway?

I have a lambda function attached to API gateway, So when i send request with one query param it should make a call to one api else other api call, that is handled in lambda function, here I need to ...
Bharadwaj's user avatar
0 votes
0 answers
31 views

morphia client always makes more than 1 connection

Trying out morphia client to connect to mongodb , I do find that morphia always makes more than 1 connection even when we have strictly set both min and max size to 1 whats the right way to use ...
Raaghu's user avatar
  • 463
1 vote
1 answer
324 views

How to know DriverManagerDataSource has a connection pool

I have a question about the DriverManagerDataSource in Spring. Our microservice uses Spring Boot and Hibernate to connect to Druid Database. We use DriverManagerDataSource to create our dataSource ...
Carl's user avatar
  • 15
0 votes
0 answers
66 views

How to view connection pool activity within Snowflake re: Looker?

we're trying to use connection pooling with Looker (BI tool) and Snowflake to reduce connection overhead of course. Is there a way to view how many connections are open over a given time period for ......
user45867's user avatar
  • 941
0 votes
1 answer
225 views

Why does connection pooling not work with pyodbc in my Linux image?

This is the code I am using to check if pooling is working or not: import os import sys import pyodbc SERVER = os.environ['SERVER'] DATABASE = os.environ['DATABASE'] USERNAME = os.environ['USERNAME'] ...
greatvovan's user avatar
  • 3,005
0 votes
1 answer
278 views

SQLAlchemy QueuePool Overflow Issue in FastAPI Application with Uvicorn

I have a FastAPI application utilizing FastAPI, Uvicorn, SQLAlchemy, and MySQL. When I send numerous requests to the API, I encounter the error: sqlalchemy.exc.TimeoutError: QueuePool limit of size 10 ...
unique_alex020's user avatar
0 votes
0 answers
155 views

r2dbc-pool: Using the r2dbc connection pool slows down the execution of parallel transactions

I am trying to optimize the reuse of PostgreSQL connections by implementing the r2dbc Connection Pool for jOOQ. But I noticed that transaction execution speed tends to be better whenever I use just a ...
Vlad M's user avatar
  • 1
0 votes
0 answers
29 views

Jboss default idletimeout minutes if not mentioned

I have a Jboss Standalone EAP version 7.2 server. There is datasource configured on it. I dont have the idle timeout for the connections mentioned in the standalone xml. If we dont mention the tag , ...
user1929905's user avatar
1 vote
0 answers
98 views

How to efficiently define connection pool for multiple data sources with single database per tenant, in spring boot

I would like to understand how to efficiently define connection pooling for multiple data sources ( in runtime) for 1000 tenants with single database per tenant, in spring boot. Datasources are ...
Shankara narayanan's user avatar
1 vote
0 answers
89 views

How to notify to reset tcp connection from target

I have one domain (e.g., https://api.example.com) mapped with an ALB, serving only S2S calls. The team is working on setting up the DR environment, and everything is ready on the DR side, including ...
Ankur Bajwa's user avatar
1 vote
1 answer
334 views

How to export Connection pool metrics of Tomcat like NumActive, NumIdle, MaxTotal via JMX exporte?

In JConsole I have fount the metrics of the connection pool I'd like to scrape to Prometheus: Catalina:type=DataSource,class=javax.sql.DataSource,name="jdbc/postgres",connectionpool=...
Eljah's user avatar
  • 4,942
1 vote
0 answers
375 views

AWS RDS Proxy avoid pinned connection with mysql and prepared statements

Background: So, we got a setup with our backend running in AWS Lambda which scales horizontally for each parallell request, potentially up to 1000 instances at the same time. To not overwhelm our ...
Cpt.Ohlund's user avatar
  • 2,669
0 votes
0 answers
80 views

Kartoza Geoserver, waiting for HTTP connections from pool times out

We have a Web Feature Server (NG) store configured and pointing to an external API, from which we get few layers to our Geoserver. Lately we've started to see timeouts on the requests done to the ...
MMi's user avatar
  • 36
0 votes
0 answers
34 views

Is there any benefit of using async in non async database drivers? [duplicate]

I'm learning fastAPI - and encountered concept of concurrency. From point of view of database transactions assume that underlying driver is not 'async enabled', so to speak. For my API,for each call ...
the_he_man's user avatar
2 votes
1 answer
119 views

Return a connection to a connection pool in JedisCluster

In my code I need to get a connection from JedisCluster instance for various reasons. Other operations are using jedisCluster instance to send commands: val poolConfig = GenericObjectPoolConfig<...
SerhiiH's user avatar
  • 602
0 votes
0 answers
37 views

Does the query executed in Spring Boot is creating a new connection or using connection pool?

Using spring boot 2.7.x with HikariCP and MySQL database. A team reported an issue that after adding the health check feature, Authentication request against the DB is drastically increased (i.e ...
vthangar's user avatar
0 votes
0 answers
25 views

Node oracle connection pool issue

I am using node js and connecting to oracle db. Oracle db has a limitation of 100 sessions for this user and I use connection pool of 100 in node js. When the number of db hits increases, I get a ...
Venkat's user avatar
  • 1
0 votes
0 answers
22 views

Node JS MYSQL Create Pool not releasing DB connections once K8s PODs scaled down by HPA

We have a Node JS server which is deployed to K8 and HPA is configured for the deployment. This application is creating DB connection pool for MYSQL DB using below code. const pool = mysql.createPool(...
Ramesh Singh's user avatar

1
2 3 4 5
66