From 737327fa8ae4f8e2806ebe27160d0eab8daa3de7 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 20 Oct 2023 17:52:23 -0400 Subject: [PATCH] Revert after test --- src/engine/gameManager/DbManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/DbManager.java b/src/engine/gameManager/DbManager.java index 60f8e214..cbd52a3d 100644 --- a/src/engine/gameManager/DbManager.java +++ b/src/engine/gameManager/DbManager.java @@ -297,7 +297,7 @@ public enum DbManager { // Magicbane requires at least 15 db connections min to boot. - int connectionCount = Math.min(10, Runtime.getRuntime().availableProcessors() * 2) + 1; + int connectionCount = Math.max(15, Runtime.getRuntime().availableProcessors() * 2) + 1; config.setMaximumPoolSize(connectionCount); config.setJdbcUrl("jdbc:mysql://" + ConfigManager.MB_DATABASE_ADDRESS.getValue() +