Skip to content

Commit e622651

Browse files
author
xlinliu
committed
Add pendingCount BML client connection information retrieval function (#809) #AI commit#
1 parent 3163089 commit e622651

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

linkis-commons/linkis-httpclient/src/main/scala/org/apache/linkis/httpclient/AbstractHttpClient.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,11 @@ abstract class AbstractHttpClient(clientConfig: ClientConfig, clientName: String
612612
clientConnectInfo.put("leased", totalStats.getLeased)
613613
clientConnectInfo.put("avaiLabel", totalStats.getAvailable)
614614
clientConnectInfo.put("maxTotal", connectionManager.getMaxTotal)
615+
clientConnectInfo.put("pendingCount", totalStats.getPending)
615616
logger.info(s"BMLClient:总最大连接数:${connectionManager.getMaxTotal}")
616617
logger.info(s"BMLClient:空闲连接数:${totalStats.getAvailable}")
617618
logger.info(s"BMLClient:活跃连接数:${totalStats.getLeased}")
619+
logger.info(s"BMLClient:等待连接数:${totalStats.getPending}")
618620
clientConnectInfo
619621
}
620622

0 commit comments

Comments
 (0)