diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java index 8a5f006..4ce6206 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java @@ -388,7 +388,7 @@ public final class RedisBungee extends Plugin { @Override public JedisPool call() throws Exception { JedisPoolConfig config = new JedisPoolConfig(); - config.setMaxTotal(configuration.getInt("max-redis-connections", -1)); + config.setMaxTotal(configuration.getInt("max-redis-connections", 8)); config.setJmxEnabled(false); return new JedisPool(config, redisServer, redisPort, 0, finalRedisPassword); } diff --git a/src/main/resources/example_config.yml b/src/main/resources/example_config.yml index d6c5d57..4725b7d 100644 --- a/src/main/resources/example_config.yml +++ b/src/main/resources/example_config.yml @@ -8,9 +8,9 @@ redis-port: 6379 # OPTIONAL: If your Redis server uses AUTH, set the password required. redis-password: "" # Maximum connections that will be maintained to the Redis server. -# The default is an unlimited number of connections. -# You may need to lower this value in some setups. -max-redis-connections: -1 +# The default is 8. This setting should be left as-is unless you have some wildly +# inefficient plugins or a lot of players. +max-redis-connections: 8 # An identifier for this BungeeCord instance. server-id: iluvbungee