2010-12-23 17 views
2

如果我对一个JBoss 5服务器发出以下命令:JBoss的ManagedConnectionPool属性

./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连接数 - 连接的数量不断破坏无论出于何种原因
  • InUseConnectionCount - 数量 - 当前创建的连接(ConnectionDestroyedCount ConnectionCreatedCount`)的数量目前正在使用的连接
  • MaxConnectionsInUseCount - 在任何时间点使用的最大连接数(即在此示例中,机器一直非常安静,以至于它一次只使用一个连接)
  • MaxSize=100 - 连接在适当的*-ds.xml文件

的最大数量是这样吗?

回答

1

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

+0

不,我只是想让我的理由被理智检查:)谢谢! – Rich 2011-01-06 08:10:11

相关问题