Questions tagged [hikaricp]
HikariCP is a high-performance JDBC connection pool library.
1,372
questions
0
votes
0
answers
15
views
How can I control HikariCP exceptions?
I want—when (for some reason) the database has a problem and cannot make the connection with HikariCP—the service to start normally and is not terminated because the database is failing.
I tried to ...
1
vote
1
answer
55
views
How to investigate active MySQL transactions that are not visible in processlist?
We have a Java application that works with MariaDB 10.4.28 hosted in AWS RDS.
We have a situation that application went down with reason "CannotCreateTransactionException". The pool has 40 ...
0
votes
0
answers
23
views
Hikari-- Connection is not available
HikariCP query error:
org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLTransientConnectionException: hikari-pool - ...
0
votes
0
answers
15
views
MariaDB-java-connector with MySQL 5.7 database not support DATE type
SpringBoot: 2.7.13
HikariCP: 4.0.3
MariaDB-java-connector: 2.0.1-3.2.0
MySQL 5.7 in (wix-embedded-mysql: 4.6.2)
A simple attempt to insert data of the DATE type into a database results in an error.
...
0
votes
0
answers
14
views
Catching HikariCP connection leak events
I am trying to send alerts when connection leaks occur from hikaricp.
I got to the point where I can see exception logs. But I am unable to catch those exceptions in a meaningful way so I can build a ...
0
votes
0
answers
24
views
Why is my application creating huge number of connections are putting them in Finaliser?
We are facing an issue with the application reaching the maximum number of connections. This is a Java+SpringBoot setup with DB Multitenancy. So, multiple thread pools are an expectation as long as ...
0
votes
1
answer
57
views
Start an Hikari Datasource when the DB is not available
I have configured with Spring a Datasouce with Hkikari to interact with a Maria DB.
Everything is fine if when I start my application the Maria DB is up and running, after the start Hikari is ...
0
votes
1
answer
27
views
Spring batch task pod(jvm) is not automatically terminated after competition of task
Spring batch task pod(jvm) is not automatically terminated after the competition of the task.
So, I thought to close the application context explicitly post-completion of the task by
closing the ...
0
votes
0
answers
42
views
Micronaut using AWS Secrets Manager to get properties to connect to Database (JPA)
I am having a bad time with Micronaut, that is my first project using it whereas I was using SpringBoot before and some things I could do easily on SprintBoot are not that easy with Micronaut.
The ...
0
votes
0
answers
29
views
Can't connect to mySql db on Google cloud using JDBC
I am trying to connect to my mysql DB on google cloud from my android app via an emulator. but I get the following error:
Caused by: java.sql.SQLNonTransientConnectionException: Could not create ...
0
votes
1
answer
62
views
springboot+hikaricp encounters Communications link failure
The following error occurred while using Spring Boot with HikariCP to manage the MySQL connection pool:
2023-08-04 10:43:16.569 [xhx3-pool connection adder] ERROR c.z.h.p.HikariPool 498 ...
0
votes
1
answer
16
views
API stops responding when loaded with calls by JMeter
When loadtesting using Jmeter, the app crashes wherever it was given a load more than of 55 calls per seconds. Up-to 55 calls per second is working fine.
Application is running on top of undertow ...
0
votes
1
answer
26
views
Spring Boot Starter Web Application crashes randomly
Our web application is running on top of undertow server uses RDS Posgres (max connections 800+) for db and developed on top of Spring Boot (monolithic app).
Technologies
Springboot starter web
...
0
votes
1
answer
50
views
My application is stuck on HikariPool-1 - Starting when the database is down
My application is getting stuck when the DB is down. Our scenario is when the DB is down we should get data from another api. The application is halting on
2023-07-26 13:00:25 [scheduling-1] INFO (...
0
votes
1
answer
85
views
DB Connections in SpringBoot using HikariCP
While I was performing a load test on the Restful service developed through Springboot and deployed as a microservice in Kubernetes cluster, I encountered an issue with DB connection pool size. On ...
1
vote
1
answer
68
views
HikariCP configuration not working in my app developed in Spring Boot
I have an application developed in Springboot and I am in need to use Connection Pool settings as connections are getting exhausted while running a load test. I am relying on SpringBoot auto ...
2
votes
0
answers
117
views
Not able to connect mysql to springboot
I have tried everything mentioned in other posts, but I'm still unable to resolve the issue. Here are the details:
Spring Boot version: 2.7.14
Java version: 11
MySQL version: 8.0.3
pom.xml:
<...
0
votes
1
answer
137
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. ...
0
votes
0
answers
82
views
Connection pool related errors when running JUnit 5 tests in parallel
I've enabled parallel JUnit tests using the following properties:
junit.jupiter.execution.parallel.enabled = true
junit.jupiter.execution.parallel.mode.default = concurrent
junit.jupiter.execution....
0
votes
1
answer
143
views
Debugging Hikari Pool connections in Spring Boot Application - See any identifier of each connection of the pool
I have a Spring Boot application, where I have created a class which implements DelegatingDataSource. I use Hikari pool, and I have DEBUG level on their packages. I'm facing some errors related to ...
0
votes
1
answer
73
views
Jooq Postgresql set autocommit=false
I am using Jooq in a Spring Application with a Hikari pool. The transaction management is Spring default.
I am trying to use the .stream() functionality with .fetchSize(), however I get the warning &...
0
votes
0
answers
125
views
What are the changes in metric properties for Hikari in Spring Boot 3.0?
everyone! Why did the Hikari metrics stop working in my application after upgrading to Spring Boot 3.0? I'm currently using the following dependencies:
implementation('io.micrometer:micrometer-core:1....
0
votes
0
answers
105
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 ...
0
votes
1
answer
116
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 ...
0
votes
0
answers
41
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 ...
0
votes
0
answers
25
views
Oracle21/Java 20/HikariCP sys_context issue
After recent upgrade from Oracle 12c/java 8 we discovered that user session is interfering with another user session i.e when logged in, user sets it's credentials(ID) onto another user's session.
...
0
votes
0
answers
70
views
MariaDB and Hikari connection breaks partially
Good morning,
Currently I am encountering a very strange problem, which I am not able to solve on my own:
I've hosted an MariaDB in AWS and my Application is using Hikari Pool for handling connections....
0
votes
0
answers
107
views
How does JDBC4 connection.isValid happen in PgConnection?
I have a spring boot application which uses spring actuator to do healthcheck, This does a healthcheck on db as well in my case it is postgres. Every once in a while i get this error in healthcheck
{&...
0
votes
0
answers
57
views
Generate new IAM password for new HikariCP connections
I have a Spring Boot (2.3.5.RELEASE) with Spring Cloud (Hoxton.RELEASE) project that I am trying to set up my DataSource for.
I am able to get my Hikari Connection Pool set up, but I use IAM tokens ...
0
votes
0
answers
28
views
Spring, Hikari and multiple DB schemas
I have a web app that can connect to multiple DB instances and multiple schemas on each instance (there is one schema per tenant). I use AbstractRoutingDataSource to manage a HikariDataSource for each ...
0
votes
0
answers
64
views
jdbc-template ORA-00942 table or view does not exist
I have a service that takes data from a database, then collects it into one object and sends it to another service.
The service itself works, but for some reason, after some time, I get the error: ...
0
votes
0
answers
39
views
Can't set up DataSource for Spring Boot project
I am trying to implement DataSource in my Spring Boot (2.3.5.RELEASE with Spring Cloud Hoxton.RELEASE) project.
I have to programmatically set the DataSource's url, username, and password, depending ...
0
votes
0
answers
30
views
HikariConfig database connection not close in spring boot
I am using spring boot with Hikari. But my database connection is not close. It is increasing. Here is my configuration.
public DataSource getConVentionalConnection() {
HikariConfig ...
0
votes
0
answers
20
views
Health endpoint down after reloading datasouce
I am reloading the datasource as following:
`
public Boolean reloadDataSource() {
HikariDataSource dataSource = (HikariDataSource) applicationContext.getBean( name: "datasource”);
log.info("...
1
vote
1
answer
29
views
Spring boot jooq how to use same connection in a same grpc call?
We are using hikari cp, and I have found repeated call getConnection and close(which returns the connection to the connection pool) multiple times in same grpc call.
If the connection is limited and ...
0
votes
0
answers
70
views
HikariCP not recovering after AWS RDS Postgress DB failover
Environment:
Hikari CP Version: 3.5.4
JDK Version: Zulu64-11.0.9
Database: AWS RDS - Postgres
Spring Boot Version: 2.4.13
We have a Spring Boot application with AWS RDS Postgres as the backend. When ...
2
votes
1
answer
184
views
com.microsoft.sqlserver.jdbc.sqlserverexception: the stream is closed
I am using mssql-jdbc-12.2.0.jre8.jar and HikariCP-4.0.3.jar to connect to Microsof SQL Server Database
SQL Server version is: Microsoft SQL Server 2012 - 11.0.5548.0 (X64) Sep 6 2014 17:19:28 ...
0
votes
0
answers
50
views
How to load HikariConfig from custom properties in application.properties?
I want to create a custom HikariConfig bean in my application so I can manipulate it and use it to create two different HikariDataSource objects. I thought it would be simple to do using something ...
0
votes
0
answers
63
views
Transaction timeout fails on read only transaction calling a stored procedure
I have encountered a very random problem with transaction timeout failing to fire in one instance. Our stack uses springboot+camel+jpa
We use hikari connection pooling.
I am calling a stored procedure ...
0
votes
0
answers
28
views
Is it worth manually setting Hikari's autoCommit to false in a MS SQL DB connection with Exposed framework in Kotlin?
I am currently working on an application that has to connect to a MS SQL DB. It’s in Kotlin so I’m using the Exposed framework for all my transactions. I recently configured Hikari with this and just ...
0
votes
1
answer
409
views
IBM DB2 using SSL error: handshake_error/connection reset. ERRORCODE=-4499, SQLSTATE=08001
I am using Hikari to connect to DB2 for Z/OS over SSL. The url I am using is structured like the following
jdbc:db2://[hostname]:[port]/[location]:sslConnection=true;
I have to pass the truststore, ...
2
votes
0
answers
192
views
Disable Open Session In View vs handling_mode=DELAYED_ACQUISITION_AND_RELEASE_AFTER_STATEMENT
Problem
There are "database connection" issue with large monolith Spring Boot application I'm working on which all boils down to the fact that the app is not releasing DB connection back to ...
1
vote
0
answers
229
views
"HikariPool-1 connection closer" java.lang.NoClassDefFoundError: org/mariadb/jdbc/message/client/QuitPacket
I am really struggling with this exception for quite a while now.
I have a java program (TG-Toolkit), where I have classes to manage common stuff used for both proxy and backend plugins. One of the ...
0
votes
1
answer
162
views
Is my Datasource bean reading the configuration properties?
I am using Spring 2.7.2 and I keep getting this WARN log when I do an operation that involves the database after some minutes passes by:
HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc....
0
votes
0
answers
139
views
Spring boot java process doesn't die after shutdown
I can't really tell if this is more related to the OS, Spring, or Hikari.
I'm attempting to shutdown my spring boot application by calling the /actuator/shutdown service. Everything proceeds fine ...
0
votes
1
answer
1k
views
Spring boot Hikari Pool Threads - "web application appears to have started a thread named [HikariPool-1 housekeeper] but has failed to stop it."
(A similar question here is related to Tomcat resources, not spring boot managed beans)
Two Hikari DataSource pools are being creating like this:
@Primary
@Bean(value="appDataSource",...
0
votes
0
answers
105
views
Hikari for High Availability DBs - Auto failover
I have a Java Springboot application that uses Hikari to create & manage database connections. I have 2 oracle databases - one is the primary and the other secondary (used in case primary fails).
...
0
votes
0
answers
60
views
Spring NamedParameterJdbcTemplate is slow in Select query using HikariCP
I am using Spring NamedParameterJdbcTemplate using Hikar datasource using Oracle database.. I have scenario where it makes a select query in a loop for 200 times. It works fine for 75th loop but after ...
0
votes
0
answers
431
views
Reset Hikari connection pool
We are using Spring Boot app with Hikari connection pool and Hibernate and Oracle. Sometimes in operational environment we see the blow exception:
Unable to acquire JDBC Connection
This error repeats ...
0
votes
0
answers
12
views
Observable+Hikari fetching data time is different in different environments
I am using JDBC Observable+Hikari to fetch data from database, when i connect to UAT env, fetching data is within mins but when I point it to PROD, the process gets stuck at blockingSubscribe() and it ...