简体   繁体   English

了解具有JMX相关属性的连接池

[英]Understanding Connection pool with JMX related properties

I am analyzing JMX mbean (org.apache.tomcat.jdbc.pool.jmx.ConnectionPool) properties for my jdbc datasource related properties and I needed some reference on what these properties means. 我正在分析与jdbc数据源相关的属性的JMX mbean(org.apache.tomcat.jdbc.pool.jmx.ConnectionPool)属性,我需要一些有关这些属性含义的参考。 I couldn't find any documentation on what these methods give. 我找不到有关这些方法提供的任何文档。 I Checked https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/jdbc/pool/jmx/ConnectionPool.html#getActive() and couldn't find any info. 我检查了https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/jdbc/pool/jmx/ConnectionPool.html#getActive() ,但找不到任何信息。

getActive()
getIdle()
getSize()
getWaitCount()

Is these have any connection with Tomcat JDBC Connection Pool properties mentioned in https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html ? 这些与https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html中提到的Tomcat JDBC连接池属性有任何联系吗? what is the relationship between Active Idle and Size (seems like Active + Idle = Size). Active Idle和大小之间的关系是什么(好像Active + Idle = Size)。

Thanks a lot 非常感谢

The methods on that MBean just delegate directly to the pool implementation : 该MBean上的方法只是直接委托给池实现

  • getActive() : number of established connections that are being used by the application getActive() :应用程序正在使用的已建立连接的数量
  • getIdle() : number of established connections not being used getIdle() :未使用的已建立连接数
  • getSize() : number of established connections to the database getSize() :与数据库建立的连接数
  • getWaitCount() : number of threads waiting for a connection getWaitCount() :等待连接的线程数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM