【问题标题】:JBoss ManagedConnectionPool attributesJBoss ManagedConnectionPool 属性
【发布时间】: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


    【解决方案1】:

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

    【讨论】:

    • 不,我只是想检查一下我的推理是否合理 :) 谢谢!
    猜你喜欢
    • 1970-01-01
    • 2018-02-07
    • 2012-01-03
    • 1970-01-01
    • 2019-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-11
    相关资源
    最近更新 更多