forked from SpigotMC/BungeeCord
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory leak caused by BungeeLogger queue
Bots attacks with high join rate (ex 2-4k bots/s) can cause that BungeeLogger queue will store InitialHandler instances. Using toString() instead of objects should fix this issue For example: https://pastebin.com/raw/qWX1FUnf (username should not be printed, but was printed because of queue) https://github.com/SpigotMC/BungeeCord/blob/c987ee199d3ec93ce13469deefb1e2787d97147c/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java#L330 https://github.com/SpigotMC/BungeeCord/blob/c987ee199d3ec93ce13469deefb1e2787d97147c/log/src/main/java/net/md_5/bungee/log/BungeeLogger.java#L48 https://github.com/JetBrains/jdk8u_jdk/blob/master/src/share/classes/java/util/logging/LogRecord.java#L141
- Loading branch information
Showing
2 changed files
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters