开发者

JBoss ManagedConnectionPool attributes

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=10开发者_开发百科0
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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜