Wildfly(11)的默认数据库连接超时是多少?

时间:2019-02-21 21:52:36

标签: mysql configuration timeout wildfly connection-pooling

我正在使用MySql 5.6(在Amazon RDS上运行)和Wildfly11。我具有这样的数据库连接设置

            <datasource jndi-name="java:jboss/datasources/MySqlDS" pool-name="MySqlDS" enabled="true" use-java-context="true">
                <connection-url>jdbc:mysql:replication://server1:3306,server2:3306/sb_db?failOverReadOnly=true&amp;loadBalanceAutoCommitStatementThreshold=1&amp;roundRobinLoadBalance=true&amp;zeroDateTimeBehavior=convertToNull</connection-url>
                <driver>mysql</driver>
                <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
                <pool>
                    <min-pool-size>10</min-pool-size>
                    <max-pool-size>100</max-pool-size>
                    <prefill>true</prefill>
                </pool>
                <security>
                    <user-name>username</user-name>
                    <password>password</password>
                </security>
                <statement>
                    <prepared-statement-cache-size>32</prepared-statement-cache-size>
                    <share-prepared-statements>true</share-prepared-statements>
                </statement>
            </datasource>

我的问题是,如果没有从MySql服务器获得响应,则池中连接的默认连接超时是多少?我在文档中找不到与此相关的任何内容。

0 个答案:

没有答案