pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.66k stars 1.68k forks source link

Memory Leak caused by too many files/directory (Wings) #5063

Closed Loupric closed 2 months ago

Loupric commented 6 months ago

Current Behavior

Hello, I have a massive memory leak with Wings(latest version) when we have a server with a lot of files.

Expected Behavior

As soon as we have a server with a lot of files (minecraft with a dynmap for example), wings uses a lot of RAM (cache) without clearing it, restarting wings is of no use, as soon as it is turned back on, the memory fills up until it reaches saturation point. the machine.. (32G/32G of RAM)

Steps to Reproduce

1.11.5

Wings Version

1.11.11

Games and/or Eggs Affected

All of Eggs or Games, we just need to have a ton of files. (huge or small)

Is there an existing issue for this?

Verox001 commented 4 months ago
  1. Can you post the output of free -h in here please, when having this high memory consumption? I want to make sure that we're having the same issue: https://github.com/pterodactyl/panel/issues/5115
Verox001 commented 4 months ago
  1. @Loupric Could you also provide if you're having a lot of SFTP login requests? Because the files shouldn't be an issue, since they're only loaded into memory, if the user tries to accesses them. Because large directories aren't displayed and therefore not loaded into memory anyway, the cause may be something else. I have the feeling that it has something to do with SFTP.

  2. Secondly, could you please tell if the memory leak is gone, after restarting the wings service?

Loupric commented 3 months ago

Hi, the problem disappeared after completely reinstalling the machine, as I recall, restarting Wings caused the RAM usage to drop to 0. It was the cache that was used. If I remember the problem was caused by the wings permission check when starting the servers (can be deactivated in the wings config file). The cache fills up when starting a server with a lot of folders/files.

danny6167 commented 2 months ago

Thanks for your report.

As the original poster is no longer having the issue, and I don't see anything to suggest it's distinct from #5115 I'm closing this issue as duplicate. If you run into it again and can demonstrate this is a distinct issue I'm happy to reopen.