From 59cb27d3423413b0adb020f530ef6a33820c89c9 Mon Sep 17 00:00:00 2001 From: Tux Date: Sun, 21 Jun 2015 22:13:49 -0400 Subject: [PATCH] Add a warning to run RedisBungeeClean if the UUID cache exceeds 750,000 entries. While a large UUID cache will not harm RedisBungee functionality, it can be problematic in some setups, so err on the side of caution. --- .../com/imaginarycode/minecraft/redisbungee/RedisBungee.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java index 90794a3..2484451 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java @@ -262,6 +262,11 @@ public final class RedisBungee extends Plugin { break; } } + + long uuidCacheSize = tmpRsc.hlen("uuid-cache"); + if (uuidCacheSize > 750000) { + getLogger().info("Looks like you have a really big UUID cache! Run https://www.spigotmc.org/resources/redisbungeecleaner.8505/ as soon as possible."); + } } serverIds = getCurrentServerIds(); uuidTranslator = new UUIDTranslator(this);