HikariCP icon indicating copy to clipboard operation
HikariCP copied to clipboard

hikaricp_pending_threads - what does it mean exactly?

Open zvuki opened this issue 2 years ago • 2 comments

I am observing the "active connection" number is up to max connections in the pool (all connections are "active") while "hikaricp_pending_threads" is up (to a half of the pool capacity) as well.

From a database perspective (MySQL) the connections are pending (they are dropped by MySQL when wait_timeout is reached).

I am wondering what causes hikaricp_pending_threads and what it actually means.

zvuki avatar Aug 23 '21 16:08 zvuki

Also curious about the meaning thanks!

kirillsalykin avatar Feb 23 '22 13:02 kirillsalykin

+1. Is it pending connections?

TimothyL96 avatar Aug 24 '22 15:08 TimothyL96

It seems to be the number of threads waiting to get a connection from the pool (https://github.com/brettwooldridge/HikariCP/blob/dev/src/main/java/com/zaxxer/hikari/util/ConcurrentBag.java#L325). Also mentioned in the wiki.

amitdev avatar Oct 06 '22 22:10 amitdev