JBoss ManagedConnectionPool 属性

2024-02-03

如果我对 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 file

它是否正确?


我认为这都是正确的,是的。你还有理由不相信吗?

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

JBoss ManagedConnectionPool 属性 的相关文章

随机推荐