aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/DataManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index a075b773f..d1c10ec87 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -106,6 +106,10 @@ public class DataManager {
ds.setPassword(properties.getProperty("database.password"));
ds.setIdleConnectionTestPeriod(600);
ds.setTestConnectionOnCheckin(true);
+ String maxPoolSize = properties.getProperty("database.maxPoolSize");
+ if (maxPoolSize != null) {
+ ds.setMaxPoolSize(Integer.valueOf(maxPoolSize));
+ }
dataSource = ds;
}