Default maximumPoolSize for HikariCP
maximumPoolSize Default: 10 HicariCP Documentation contains default properties: https://github.com/brettwooldridge/HikariCP Read about Pool Size here: Maximum Connection Pool Size
maximumPoolSize Default: 10 HicariCP Documentation contains default properties: https://github.com/brettwooldridge/HikariCP Read about Pool Size here: Maximum Connection Pool Size
maximumPoolSize Default: 10 HicariCP Documentation contains default properties: https://github.com/brettwooldridge/HikariCP Read about Pool Size here: Maximum Connection Pool Size
One other reason if you run the app locally and the computer went to sleep it happens. In that case, you don’t need to do anything configure wise.
I managed to fix it finally. The problem is not related to HikariCP. The problem persisted because of some complex methods in REST controllers executing multiple changes in DB through JPA repositories. For some reasons calls to these interfaces resulted in a growing number of “freezed” active connections, exhausting the pool. Either annotating these methods … Read more
@Configuration @ConfigurationProperties(prefix = “params.datasource”) public class JpaConfig extends HikariConfig { @Bean public DataSource dataSource() throws SQLException { return new HikariDataSource(this); } } application.yml params: datasource: driverClassName: com.mysql.jdbc.Driver jdbcUrl: jdbc:mysql://localhost:3306/myDb username: login password: password maximumPoolSize: 5 UPDATED! Since version Spring Boot 1.3.0 : Just add HikariCP to dependencies Configure application.yml application.yml spring: datasource: type: com.zaxxer.hikari.HikariDataSource url: … Read more