Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From c3p0 to HikariCP: connection error #2206

Open
jeans11 opened this issue Jun 6, 2024 · 0 comments
Open

From c3p0 to HikariCP: connection error #2206

jeans11 opened this issue Jun 6, 2024 · 0 comments

Comments

@jeans11
Copy link

jeans11 commented Jun 6, 2024

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.

@jeans11 jeans11 changed the title From c2p0 to HikariCP: connection error From c3p0 to HikariCP: connection error Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant