DiscordSRV

DiscordSRV

86.8k Downloads

Console log memory leak filling gigabytes of ram

DoctorDinosaur opened this issue ยท 1 comments

commented

Expected behavior

When a console channel is not configured, console messages are not stored into ram in a queue

Actual behavior

If a console channel isnt configured, the plugin stores every console message in an ever growing linked list in memory.

Over time (and with my dynmap having a bug which spams errors) this fills up gigabytes of memory (example images are after a restart, I noticed this because it was using much more than this before)

image
image
image
image

Steps to reproduce

  • Don't set a console channel
  • Plugin correctly says its not forwarding console output
  • Check a heap dump, its storing console output in ram
    image

Server software and version

git-Paper-34

Checks

  • I am not using an outdated version of DiscordSRV.
  • I asked in DiscordSRV's Discord server to see whether this issue is in fact a bug that needs to be fixed.

Anything else

Reported via discord too, Scarsz confirmed it looks like a bug

commented

Fixed in v1.26.0