on-internet
← Community

Slow HikariDataSource.getConnection() on slow on low traffic, fast on big traffic

Stack Overflow ·

Hi I have this strange problem, I use Oracle db and have miroservice with simple endpoint which has just getById which is extremely fast 3-15ms, but the whole operation took 250ms. I dive into our performance monitor tools and saw that we spend over 200ms for the com.zaxxer.hikari.HikariDataSource.getConnection(). Then I execute 2000 request to that endpoint for 10 minutes and the time drooped to 1.3ms . What happens? When have 5 request per hour it took 200s to get connection, but when have 4 per second 1.3.? Is there a wrong in the configuration spring: datasource: connectionTimeout: 10000 m

Comments

Sign in or sign up to comment and upvote.

No comments yet.