Questions tagged [hikaricp]

HikariCP is a high-performance JDBC connection pool library.

HikariCP is a "zero-overhead" production-ready JDBC connection pool. Hikari (光) is Japanese and means "light" or "ray".

Resources:

Spring prefers HikariCP as a connection pool to production databases:

We prefer HikariCP for its performance and concurrency. If HikariCP is available, we always choose it.

1370 questions
0
votes
0 answers

HikariCP not saving to DB

Im trying to switch the pool for my Grails 2.5.4 app for Hikari and found it to make a pretty big performance boost compared to the default Tomcat jdbc! However, Ive stumbled upon a problem when running some integration tests. This is the test…
OsaSoft
  • 589
  • 5
  • 19
0
votes
0 answers

Does HikariCP need a different configuration when using with Spring Boot?

When I'm using HikariCP 2.4.7 I typically initialize it like this: hikariDataSource = new…
Defozo
  • 2,946
  • 6
  • 32
  • 51
0
votes
1 answer

Configuring Spring Cloud Connectors' PoolConfig and ConnectionConfig using HikariCP's properties

I am trying to configure Spring Cloud Connector's PoolConfig and ConnectionConfig using HikariCP's properties. Here is my Sring Cloud Connector datasource configuration: @Configuration @Profile({Profiles.CLOUD, Profiles.DEV}) public class…
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
1 answer

HikaiCP : How to see the connection pool size?

I have a java/spring project and i use hikaricp with Hibernate. I add Hikari to manage connection pool size. In hibernate.properties, i add : hibernate.hikari.maximumPoolSize=20 I don't know how to check the size of connection while running my…
Pracede
  • 4,226
  • 16
  • 65
  • 110
0
votes
0 answers

NoClassDefFoundError: HikariCP with Maven

I'm creating a Maven plugin (to hook into Spigot/Bukkit/BungeeCord) and am attempting to connect to a database. On startup, I get this error: Exception encountered when loading plugin: WarCore java.lang.NoClassDefFoundError:…
Braden
  • 1
  • 1
0
votes
2 answers

Spring Boot autoconfig, Hikari datasource fails on pulling properties from yaml file on JUnit

It's veri similar to case [33213854]: However I have.. @SpringBootApplication @EntityScan(basePackages= "com.bla.bla") @Import({RepositoryRestMvcConfiguration.class, PersistenceContext.class}) public class Main {..} @Configuration // Using..…
Jrr
  • 167
  • 1
  • 4
  • 14
0
votes
2 answers

Database connection exception handling with Spring

I have a Spring application where the database connection is secondary to the operation of the application. I want the application to continue to operate normally regardless of being able to connect to the database. I'm using Spring framework…
Nelda.techspiress
  • 643
  • 12
  • 32
0
votes
0 answers

ClassNotFoundException: MysqlDataSource

(embedded Tomcat 7.0.59, gradle 2.13, HikariCP 2.4.6, mysql-connector-java 6.0.2) I want to create connection pool (mysql) in my web application. When I execute gradle tomcatRun, I get the following message: java.lang.RuntimeException:…
Grofight
  • 51
  • 1
  • 5
0
votes
2 answers

ClassCastException HikariCPConnectionProvider cannot be cast to Hibernate ConnectionProvider

I am trying my hands on HikariCP for the first time. I am facing following ClassCastException. ClassCastException: org.hibernate.hikaricp.internal.HikariCPConnectionProvider cannot be cast to…
Rishi Dev
  • 187
  • 2
  • 12
0
votes
1 answer

How to get alias.table from oracle database using HikariCP

I came across this issue most recently. I am not sure if it's from HikariCP or Oracle or Spring Boot. When I try to use schema from datasource.schema(application.yml/application.properties) I am getting an error. HikariCP starts but fails immediatly…
0
votes
1 answer

Hikari Connection pool with HSQL In memory

public DataSource createHikariDatasource(String url, String username, String password, String driver) { HikariConfig hikariConfig = new HikariConfig(); hikariConfig.setDataSourceClassName(driver); hikariConfig.setUsername(username); …
user6123723
  • 10,546
  • 18
  • 67
  • 109
0
votes
1 answer

java.lang.ClassNotFoundException: 'org.h2.jdbcx.JdbcDataSource'

I am trying to use HikariCP with h2 database. Here is my class responsible for sql @Singleton @Log class SqlPersistence { def config { def props = new Properties() new…
lapots
  • 12,553
  • 32
  • 121
  • 242
0
votes
0 answers

Scala Quill database - getting logging error

I am trying to use the scala library quill(http://getquill.io) for querying a mysql database but I get an error from Hikari where the logger can be created. The error: "C:\Program Files\Java\jdk1.8.0_51\bin\java" -Didea.launcher.port=7534…
Vogon Jeltz
  • 1,166
  • 1
  • 14
  • 31
0
votes
1 answer

Unknown host exception when configuring HikariCP with MS sql driver

Here is my Hikari datasource configuration:
Nelda.techspiress
  • 643
  • 12
  • 32
0
votes
1 answer

HikariCP NullPointerException

We are trying to integrate the HikariCP (release 2.4.4) into our application. After some time of usage the pool fails to acquire new connections throwing: java.lang.NullPointerException at…
sebastian
  • 2,427
  • 4
  • 32
  • 37