Added max of 10 connections for db pool.
This commit is contained in:
parent
86fb78e34c
commit
d64e8c5162
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user