Reduce ram usage? or at least not be at 100%

Hi, I rent/bought a server from heavynode, the specs are 5 threads of an AMD 7950x & 20gb ddr5 memory, and it's using Pterodactyl Control Panel.

render distance is 11 and simulation distance is 6

The memory usage starts at about 30% when the server boots, then steadily climbs up to 100% over the next few hours before the daily restart sets it back to 30% again.

The server is running fabric 1.20
I have anywhere from 5-25 people online at a time

current installed mods:
Dynmap
Cloth-config
Simple voice chat
Fabric api
lithium
krypton
ferritecore
memoryleakfix
simple_end_disable
vanish
MCDiscordChat
Ledger
Fabric Language Kotlin

the server startup command/s are:
java -Xms128M -Xmx20480M -Dterminal.jline=false -Dterminal.ansi=true -jar fabric-server-launch.jar
(This is how it came, I have not edited this)
it's running on java 18 (NOT Java 18 OpenJ9) (I have the option to change this to 8/11/16/17)

Sometimes the server will just crash out of nowhere, usually its due to "out of memory" but sometimes i can't find a crash reason, and it also does not create crash reports, i am unsure why

my settings for dynmap are vlowres, i have deleted the cave and surface map for the overworld so it has to render less, i also pause it at the beginning of server start so it doesnt render anything at all,

I have not touched any configs for lithium or ferritecore.

It's possible that i have too many "optimization" mods? or maybe i need to add more JVM arguments, I really do not know.

any help really appreciated.
ask any and all questions and i will do my best to help provide what you need
Was this page helpful?