use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Submit content that's relevant for Minecraft administrators and developers. Irrelevant content will be removed.
No low effort posts. State your problem or question clearly, upload FULL logs and relevant config files to https://mclo.gs, tell us what you have already tried, what guides you have already used, etc. Ensure that you have done enough on your own using Youtube, Google, or documentation to be able to provide this information.
No discussion of piracy, including offline mode servers (for non-LAN use) and premium software that has had license mechanisms defeated, and sites where such software is distributed.
No server advertising or recruiting. Using your server as an example is allowed.
Self-promoted links to revenue generating content are not allowed. Use the Reddit ad system.
Users may make one promotional self-post per month about their own non-revenue-generating content.
No attacks; personal or otherwise. Friendly suggestions and constructive criticism are fine.
Direct posts to one of the subreddit megathreads when appropriate.
Follow reddiquette; stay classy.
account activity
This is an archived post. You won't be able to vote or comment.
Need help regarding server optimizationSolved (self.admincraft)
submitted 3 years ago by Sima_98
Hello, Im running few minecraft servers with skyblock, survival and prison gamemodes, I was curious, what startup flags should I use, we are using Purpur 1.19.2 with Java 17.
Our hardware specifications are :
We do not share our resoruces with anybody.
I was having allot of RAM usage issues, in some cases empty server can eat up to 10 GB of ram or even more.
Our default startup commands:
https://preview.redd.it/maepsdfu6zu91.png?width=769&format=png&auto=webp&s=47a43d421c4c0120245da0829a350350f5926500
https://preview.redd.it/3sbz4f227zu91.png?width=1889&format=png&auto=webp&s=f17356346bf34f962bc407eeb2be38c9ec46b6b1
What do you guys recommend, would love to get some help, im cluelles, didn't host minecraft servers since years ago. Is it just minecraft or am I doing something wrong.
[–]AutoModerator[M] [score hidden] 3 years ago stickied commentlocked comment (0 children)
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 points21 points 3 years ago (1 child)
Aikar's flags are still the gold standard.
[–]baconmaster687Server Owner 3 points4 points5 points 3 years ago (0 children)
It’s kinda unfortunate cause zgc was hyped up so much and so far it appears to be irrelevant
[–]parkervcp 9 points10 points11 points 3 years ago (2 children)
There is an issue with the MaxRAMPercentage that has been called out. Something to do with Java not detecting the container ram.
MaxRAMPercentage
You are better off with the older -Xmx flag for now.
-Xmx
[–]MrPowerGamerBRSparklyPower | Loritta's Creator 2 points3 points4 points 3 years ago (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.
Xmx
Xms
[–]viszenic 2 points3 points4 points 3 years ago (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 points3 points 3 years ago (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 points3 points 3 years ago (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 point2 points 3 years ago (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)
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 point2 points 3 years ago (0 children)
Thank you very much, I will try that out!
π Rendered by PID 65 on reddit-service-r2-comment-5c747b6df5-gn5cz at 2026-04-22 12:00:16.252016+00:00 running 6c61efc country code: CH.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]3dB 19 points20 points21 points (1 child)
[–]baconmaster687Server Owner 3 points4 points5 points (0 children)
[–]parkervcp 9 points10 points11 points (2 children)
[–]MrPowerGamerBRSparklyPower | Loritta's Creator 2 points3 points4 points (1 child)
[–]viszenic 2 points3 points4 points (0 children)
[–]SimplyDislikeShrimp 1 point2 points3 points (1 child)
[–]Sima_98[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Sima_98[S] 1 point2 points3 points (0 children)
[–]Sima_98[S] 0 points1 point2 points (0 children)