HikariCP
HikariCP copied to clipboard
From c3p0 to HikariCP: connection error
Hi guys!
I have a very weird behaviour since I moved from c3p0 to Hikari. On a specific service with one instance (2cpu/4gb) sometimes I have the error:
Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
With c3p0, I don't have this kind of error.
This error happen frequently when I deploy a new version of my service. When the new instance start and try to create a connection.
I already see the HikaryCP FAQ of this subject but that has not solve this issue.
Currently this is the following override I made on the HkariCP configuration:
- mininmumIdle: 2
- maximumPoolSize: 5
- idleTimeout: 25200000
- maxLifetime: 25200000
The service is not exposed to the end user. It's a worker that process some jobs at regular time.