【发布时间】:2010-12-23 14:20:12
【问题描述】:
如果我对 JBoss 5 服务器发出以下命令:
./twiddle.sh -s myserver:1099 get jboss.jca:service=ManagedConnectionPool,name=MYPOOL ConnectionCount ConnectionCreatedCount MaxConnectionsInUseCount ConnectionDestroyedCount AvailableConnectionCount InUseConnectionCount MaxSize
我得到以下输出
AvailableConnectionCount=100
ConnectionCount=5
ConnectionCreatedCount=38
ConnectionDestroyedCount=33
InUseConnectionCount=0
MaxConnectionsInUseCount=2
MaxSize=100
我对这些数字的理解是:
-
AvailableConnectionCount=100- 可“分发”的连接数。当前未使用的连接数,包括已创建和未创建的连接数。我们距离连接用尽还有多远。 -
ConnectionCount- 当前创建的连接数(ConnectionCreatedCount` - ConnectionDestroyedCount) -
ConnectionCreatedCount- 曾经创建的连接数 -
ConnectionDestroyedCount- 因任何原因而被破坏的连接数 -
InUseConnectionCount- 当前正在使用的连接数 -
MaxConnectionsInUseCount- 在任何时间点使用的最大连接数(即在本例中,机器非常安静,一次只使用一个连接) -
MaxSize=100- 相应*-ds.xml文件中的最大连接数
这对吗?
【问题讨论】:
标签: jboss5.x