TAB: Possible memory leak
Server version
Bungeecord (Xcord 1.50 )
TAB version
and 3.2.2+ (maybe other versions too)
Describe the bug
I think TAB plugin has memory leak, this might also be a cause of issue #781 . I did /sparkb heapsummary and /sparkb heapsummary --run-gc-before this is the results:
Before garbage collector:
After garbage collector:

As we see ChatModifier, TextColor and IChatBaseComponent was not garbage collected, also ChatModifier and IChatBaseComponent has the same number of instances (i think that’s because IChatBaseComponent calls ChatModifier).
Here is my heapdump: https://www.mediafire.com/file/jakqa9e6rh8jq2o/tab_config_and_hpdump.zip/file (i wasn’t able to upload it here, because it’s too big)
Expected behavior
No memory leak, ChatModifier, TextColor and IChatBaseComponent being garbage collected normaly
Steps to reproduce
- Install bungeecord and spigot servers
- Add tab and spark plugins to bungeecord.
- Get some players.
- Analyze memory (easiest and fastes way to do it is
/sparkb heapsummaryand/sparkb heapsummary --run-gc-beforein my opinion)
Additional info
No response
Checklist
- I am running latest version of the plugin
- I have read the wiki to make sure it’s not an issue with configuration
- I ticked all of the boxes without actually reading them
- I have read the Compatibility wiki page and am not trying to run the plugin on an unsupported server version / platform
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 24 (14 by maintainers)
I already gave you the link to heapdump in bug description. https://www.mediafire.com/file/jakqa9e6rh8jq2o/tab_config_and_hpdump.zip/file There is heapdump and config in the zip. Also, I’d like to mention, that this also occurs on clean waterfall (no plugins)