Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
caoli5288 committed Mar 1, 2019
1 parent cb715e1 commit 55eeb89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/mengcraft/simpleorm/EbeanHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class EbeanHandler {
private String password;

private int coreSize = 1;
private int maxSize = (Runtime.getRuntime().availableProcessors() << 1) + 1;
private int maxSize = Math.min(20, Runtime.getRuntime().availableProcessors() + 1);

private IsolationLevel isolationLevel;
private EbeanServer server;
Expand Down

0 comments on commit 55eeb89

Please sign in to comment.