Skip to content

Commit

Permalink
Tweak sql MINIMUM_IDLE value
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed Jun 5, 2019
1 parent 3e93b34 commit 05a3850
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class HelperSql implements Sql {

// https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
private static final int MAXIMUM_POOL_SIZE = (Runtime.getRuntime().availableProcessors() * 2) + 1;
private static final int MINIMUM_IDLE = 10;
private static final int MINIMUM_IDLE = Math.min(MAXIMUM_POOL_SIZE, 10);

private static final long MAX_LIFETIME = TimeUnit.MINUTES.toMillis(30); // 30 Minutes
private static final long CONNECTION_TIMEOUT = TimeUnit.SECONDS.toMillis(10); // 10 seconds
Expand Down

0 comments on commit 05a3850

Please sign in to comment.