JBoss 池的 IdleCount 值为负
JBoss pool has negative value for IdleCount
有时,在检查我的 JBoss 7.1 连接池状态 (JDBC) 时,我看到 IdleCount 的负值,如下例所示"IdleCount" => -7.
谁能解释一下这个负值的含义?
"pool" => {
"ActiveCount" => 13,
"AvailableCount" => 230,
"AverageBlockingTime" => 1L,
"AverageCreationTime" => 76L,
"AverageGetTime" => 2L,
"AveragePoolTime" => 306L,
"AverageUsageTime" => 241L,
"BlockingFailureCount" => 0,
"CreatedCount" => 13,
"DestroyedCount" => 0,
"IdleCount" => -7,
"InUseCount" => 20,
IdleCount 是使用 ActiveCout - InUseCount 计算的。
例如IdleCount = ActiveCount - InUseCount => 13-20 = -7
这就是它在池统计信息中显示 -7 的原因。
有时,在检查我的 JBoss 7.1 连接池状态 (JDBC) 时,我看到 IdleCount 的负值,如下例所示"IdleCount" => -7.
谁能解释一下这个负值的含义?
"pool" => {
"ActiveCount" => 13,
"AvailableCount" => 230,
"AverageBlockingTime" => 1L,
"AverageCreationTime" => 76L,
"AverageGetTime" => 2L,
"AveragePoolTime" => 306L,
"AverageUsageTime" => 241L,
"BlockingFailureCount" => 0,
"CreatedCount" => 13,
"DestroyedCount" => 0,
"IdleCount" => -7,
"InUseCount" => 20,
IdleCount 是使用 ActiveCout - InUseCount 计算的。
例如IdleCount = ActiveCount - InUseCount => 13-20 = -7
这就是它在池统计信息中显示 -7 的原因。