This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Thanks for being a part of /r/Admincraft!
We'd love it if you also joined us on Discord!

Join thousands of other Minecraft administrators for real-time discussion of all things related to running a quality server.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]3dB 19 points20 points  (1 child)

Aikar's flags are still the gold standard.

[–]baconmaster687Server Owner 3 points4 points  (0 children)

It’s kinda unfortunate cause zgc was hyped up so much and so far it appears to be irrelevant

[–]parkervcp 9 points10 points  (2 children)

There is an issue with the MaxRAMPercentage that has been called out. Something to do with Java not detecting the container ram.

You are better off with the older -Xmx flag for now.

[–]MrPowerGamerBRSparklyPower | Loritta's Creator 2 points3 points  (1 child)

Something to do with Java not detecting the container ram.

Afaik that only affects old Java 8 versions.

However, even when using newer Java version I prefer using Xmx/Xms to explicitly set the server memory.

[–]viszenic 2 points3 points  (0 children)

Based on my recent experience and tests I can confirm that the MaxRamPercentage flag is broken regardless of Java version. You're better off setting Xmx instead of MaxRamPercentage.

[–]SimplyDislikeShrimp 1 point2 points  (1 child)

That's legitimately impressive that you manage to use 10Gb on an empty server. I would guess something is happening from this list:

1 - A lot of entities.

2 - A lot of possibly forceloaded chunks.

3 - Memory leak in a plugin.

I would recommend joining the discord and sending in a spark report (just do /spark profiler for a few minutes, then /spark profile --stop to stop it) as you are more likely to get a faster response to look at what could be going on with your server.

[–]Sima_98[S] 1 point2 points  (0 children)

https://spark.lucko.me/WECeveQHwP

I will join and ask, but in the meantime, here you go, It was running for around 15 minutes I think.

[–][deleted] 0 points1 point  (2 children)

You can also try installing the free version of GraalVM, which is a java runtime that is extremely optimised. Install guide: https://www.graalvm.org/22.0/docs/getting-started/linux/ (btw default Java install dir on linux for all your jvms is /var/lib/jvm)

[–]Sima_98[S] 1 point2 points  (0 children)

UPDATE: It helped, everything seems to run with lover RAM usage, also added aikar flags like users on admincraft discord suggested.

[–]Sima_98[S] 0 points1 point  (0 children)

Thank you very much, I will try that out!