我在wildfly 8.2.1上运行了一些应用程序,并且每天都在填充数据库池
<xa-datasource jndi-name="java:jboss/datasources/etenderDS" pool-name="etenderDS" use-ccm="true">
<xa-datasource-property name="ServerName">
host
</xa-datasource-property>
<xa-datasource-property name="PortNumber">
5432
</xa-datasource-property>
<xa-datasource-property name="DatabaseName">
dbname
</xa-datasource-property>
<driver>postgresql</driver>
<xa-pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>2000</max-pool-size>
<capacity>
<decrementer class-name="org.jboss.jca.core.connectionmanager.pool.capacity.MinPoolSizeDecrementer"/>
</capacity>
<prefill>false</prefill>
<use-strict-min>false</use-strict-min>
<flush-strategy>Gracefully</flush-strategy>
</xa-pool>
<security>
<user-name>username</user-name>
<password>password</password>
</security>
<recovery>
<recover-plugin class-name="org.jboss.jca.core.recovery.ValidatingManagedConnectionFactoryRecoveryPlugin"/>
</recovery>
<validation>
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker"/>
<background-validation>true</background-validation>
<exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"/>
</validation>
<timeout>
<idle-timeout-minutes>15</idle-timeout-minutes>
</timeout>
</xa-datasource>
我的问题:这是正常的吗?为什么wildfly需要很多泳池?我怎样才能减少野生蝇池?