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.82k stars 1.74k forks source link

Container using different memory than the server #5239

Open JeanLucaMicheluzzi opened 3 weeks ago

JeanLucaMicheluzzi commented 3 weeks ago

Current Behavior

I was seeing that the server on the panel was showing very high memory usage, whereas using the server locally it was not using even half of what was being shown.

I installed the server analysis plugin and noticed that it was showing a memory value, but on the panel it was twice as much.

It's okay that we must take Docker's memory usage into consideration, but using more than 1GB is almost unfeasible. I see this behavior on all my servers that I have on the panel.

Screenshot_65

Expected Behavior

Validate the behavior of the Panel, I see that the same problem occurs on several hosting

Steps to Reproduce

Start te server

Panel Version

1.11.7

Wings Version

1.11.13

Games and/or Eggs Affected

Minecraft (Paper)

Docker Image

ghcr.io/pterodactyl/yolks:java_16

Error Logs

No response

Is there an existing issue for this?

yesBad commented 3 weeks ago

This is not really something feasible to "fix".

The panel (aka Docker stats) only show the allocated memory for the Java instance. It however doesn't mean it's "using" that much.

JeanLucaMicheluzzi commented 3 weeks ago

Ok, but shouldn't it just show the real value of usage by the server and discard the container's usage without accounting for its memory? Really leaving the total ram for the server.

We can take for example the panel with 1GB, I make 1GB available for the minecraft server, but in the middle of use it ends up reaching 100% of the memory usage not by the server alone, but by the docker + server causing the instance to be restarted.