JBoss ManagedConnectionPool attributes

六月ゝ 毕业季﹏ 提交于 2019-12-06 10:42:53

问题


If I issue the following command against a JBoss 5 server:

./twiddle.sh -s myserver:1099 get jboss.jca:service=ManagedConnectionPool,name=MYPOOL ConnectionCount ConnectionCreatedCount MaxConnectionsInUseCount ConnectionDestroyedCount AvailableConnectionCount InUseConnectionCount MaxSize

I get the following output

AvailableConnectionCount=100
ConnectionCount=5
ConnectionCreatedCount=38
ConnectionDestroyedCount=33
InUseConnectionCount=0
MaxConnectionsInUseCount=2
MaxSize=100

My understanding of these numbers is:

  • AvailableConnectionCount=100 - number of connections available to be 'handed out'. The number of connections that are not currently in use, both created and un-created. How far we are from running out of connections.
  • ConnectionCount - the number of connections currently created (ConnectionCreatedCount` - ConnectionDestroyedCount)
  • ConnectionCreatedCount - the number of connections ever created
  • ConnectionDestroyedCount - the number of connections ever destroyed for whatever reason
  • InUseConnectionCount - the number of connections currently being used
  • MaxConnectionsInUseCount - the maximum number of connections ever used at any point in time (ie in this example the machine has been so quiet that it has only ever used one connection at a time)
  • MaxSize=100 - the maximum number of connections in the appropriate *-ds.xml file

Is this correct?


回答1:


I think that's all correct, yes. Do you have reason to believe otherwise?



来源:https://stackoverflow.com/questions/4519528/jboss-managedconnectionpool-attributes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!