hikari cp

eaf3rand  于 2021-07-08  发布在  Java
关注(0)|答案(0)|浏览(263)

我的hikari-cp出现连接泄漏错误。当连接达到最大大小时,我的程序没有连接错误。
我的配置;

Properties properties = new Properties();
properties.put("hibernate.connection.url", connectionURL(provider));
                    properties.put("hibernate.connection.username", provider.getProductionUserName());
                    properties.put("hibernate.connection.password", provider.getProductionPassword());

                    properties.put("hibernate.connection.provider_class", "org.hibernate.hikaricp.internal.HikariCPConnectionProvider");
                    properties.put("hibernate.hikari.poolName", "SerasCP");
                    properties.put("hibernate.hikari.minimumIdle" , "20");
                    properties.put("hibernate.hikari.maximumPoolSize", "40");
                    properties.put("hibernate.hikari.idleTimeout", "6000");
                    properties.put("hibernate.hikari.maxLifetime", "0");
                    properties.put("hibernate.hikari.connectionTimeout", "300000");
                    properties.put("hibernate.hikari.leakDetectionThreshold", "2100000");
                    properties.put("logging.level.com.zaxxer.hikari.HikariConfig", "INFO");
                    properties.put("logging.level.com.zaxxer.hikari", "TRACE");
                    properties.put("hibernate.hikari.connectionTestQuery", "SELECT GETDATE()");

图书馆:
hikaricp-3.4.5标准
hibernate-hikaricp-5.4.14.最终版本
hibernate-core-5.4.14.最终版本
hibernate-entitymanager-4.3.10.final.jar
hibernate-commons-annotations-5.1.0.final.jar

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题