aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-24 09:28:42 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-24 09:28:42 +1300
commita7592bcbf5f0f430210d27245d2ba9d450770e39 (patch)
tree01c00689f11ee29a3eaaa170ff85f6d083f3c36d /src
parentabc01ba98be69f3f669bf330db08d4043d704620 (diff)
downloadtrackermap-server-a7592bcbf5f0f430210d27245d2ba9d450770e39.tar.gz
trackermap-server-a7592bcbf5f0f430210d27245d2ba9d450770e39.tar.bz2
trackermap-server-a7592bcbf5f0f430210d27245d2ba9d450770e39.zip
Add statements pooling configuration
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/database/DataManager.java1
1 files changed, 1 insertions, 0 deletions
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);