我想知道numIdle属性是指什么。
在tomcat 常见问题解答里,属性numActive和numIdle在JNDI的DataSource部分被获取。 我已经能够确定numActive是池中活动连接的数量。 我想知道什么连接build立,但空闲(没有运行线程关联)。 我认为这个价值是有限的,但它的价值与探索“可以重复使用的已build立连接的数量”是不同的。 在探针上,值总是8,但是numIdle总是0。
有没有提供这个价值的属性?
根据这个链接,它意味着以下内容:
我想知道它是否仍然受Tomcat 7和8的支持。它似乎是由Tomcat 6支持的(请参阅网站底部的last edited 2013-12-19 10:14:01 by DmytroMrachkovskyi
)。 你有没有尝试在Tomcat 7和8中进行configuration?它是否启动?
什么是空闲实例?
根据这个url是:
尚未启动的实例
码
SpringSource / org.apache.tomcat ….. pache.tomcat.jdbc / 1.0.8.5 [1.0.8.5 – 1.0.9.3] [1.0.9.0] / org / apache / tomcat / jdbc / pool / mbeans-descriptors。 XML
空闲池中build立的连接数
<mbeans-descriptors> <mbean name="TomcatJDBCPool" description="Provides per diagnostic metrics and notifications for JDBC operations" domain="tomcat" group="jdbc" type="org.apache.tomcat.jdbc.pool.DataSource"> ... <attribute name="idle" description="The number of established connections in the pool that are idle" type="java.lang.Integer" writeable="false"/> <attribute name="numIdle" description="Same as the idle attribute" type="java.lang.Integer" writeable="false"/> <attribute name="active" description="The number of established connections in the pool that are in use" type="java.lang.Integer" writeable="false"/> <attribute name="numActive" description="Same as the active attribute" type="java.lang.Integer" writeable="false"/> ... <operation name="testIdle" description="forces a validation of abandoned connections" impact="ACTION" returnType="void" /> </mbean> </mbeans-descriptors>