【发布时间】:2021-05-27 23:21:51
【问题描述】:
我正在尝试使用 HikariPoolMXBean 来收集连接池指标并想清楚其中一个指标的含义:
/**
* Get the number of threads awaiting connections from the pool. The return value is extremely transient and is
* a point-in-time measurement.
*
* @return the number of threads awaiting a connection from the pool
*/
int getThreadsAwaitingConnection();
在这个指标的上下文中,什么是线程?它是应用程序线程、数据库线程还是其他什么?是不是 HikariCP 内部使用的线程?
【问题讨论】:
标签: threadpool connection-pooling hikaricp