Added max of 10 connections for db pool.

This commit is contained in:
Jonathan Williams 2014-11-01 02:35:36 -07:00
parent 86fb78e34c
commit d64e8c5162

View File

@ -23,7 +23,7 @@ public class DBPool
source.setUrl(url);
source.setUsername(username);
source.setPassword(password);
source.setMaxTotal(-1);
source.setMaxTotal(10);
source.setMaxIdle(3);
source.setTimeBetweenEvictionRunsMillis(180 * 1000);
source.setSoftMinEvictableIdleTimeMillis(180 * 1000);