Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory on WebInterface differs from /spark health Command #487

Open
StaticFX opened this issue Jan 24, 2025 · 1 comment
Open

Memory on WebInterface differs from /spark health Command #487

StaticFX opened this issue Jan 24, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@StaticFX
Copy link

Description

Hello,
using spark 1.10.42-forge i see the following issue. On the webinterface i get the info, that my server has 6,3GB of ram (process). I set the server to use 12GB of ram using the -Xmx12G flag. Using the /spark health command i also get this behaviour.

Image Image

Reproduction Steps

  • Set server Ram to 12G
  • Open spark profiler using the command
  • Compare memory values to /spark health

Expected Behaviour

Both memory values should be the same

Platform Information

  • Minecraft Version: 1.20.1
  • Platform Type: Server
  • Platform Brand: Forge
  • Platform Version: 47.3.0

Spark Version

1.10.42

Logs and Configs

No response

Extra Details

No response

@StaticFX StaticFX added the bug Something isn't working label Jan 24, 2025
@SirYwell
Copy link
Contributor

Both numbers are "correct" in their way. As you noticed, the /spark health command shows a diagram of how large the heap currently is and how large it is allowed to get. What it doesn't show as your console doesn't show colors: One of the bars is colored differently, marking the committed heap space. As an example, see the red bar here:
Image

This bar is what's shown as the upper (process) memory value in the web viewer. If you switch to the memory tab, you can also see this in more detail:
Image

I think showing the committed memory is more useful in the overview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants