From a7592bcbf5f0f430210d27245d2ba9d450770e39 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 24 Nov 2015 09:28:42 +1300 Subject: Add statements pooling configuration --- src/org/traccar/database/DataManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index a40b87d24..da87c6c27 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -102,6 +102,7 @@ public class DataManager implements IdentityManager { ds.setPassword(config.getString("database.password")); ds.setIdleConnectionTestPeriod(600); ds.setTestConnectionOnCheckin(true); + ds.setMaxStatementsPerConnection(config.getInteger("database.maxStatements")); int maxPoolSize = config.getInteger("database.maxPoolSize"); if (maxPoolSize != 0) { ds.setMaxPoolSize(maxPoolSize); -- cgit v1.2.3