3,295
questions
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-...
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:
...
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. ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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) {
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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()
...
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 ...
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 -...
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-...
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....
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 ...
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 ...
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
-...
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 ...
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 ...
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 ...
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 ......
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']
...
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 ...
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 ...
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 , ...
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 ...
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 ...
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=...
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 ...
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 ...
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 ...
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<...
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 ...
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 ...
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(...