From b2648b16bf063343e85c38eb8edf9e4e9255a33e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 5 Jun 2015 16:27:37 +1200 Subject: Add pool size parameter --- src/org/traccar/database/DataManager.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/org') 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; } -- cgit v1.2.3