#memory leak

41 messages · Page 1 of 1 (latest)

bronze linden
#

The pack has a memory leak issue its not severe but as u can see by the graph the server slowly uses more and more ram even if there are no players online so i have to restart the server once every like 8 hours if i dont want the server to use all of my ram (i am running the server on a spare pc running debian 12 headless with casaos and crafty server specs are i5 8500 8gb of ram)

placid kestrel
#

makes me believe something is going on with your host

bronze linden
#

i am using no additional mods configs or datapacks

placid kestrel
#

i will admit tho there is a very minor memory leak but it doesnt even start taking hold until 12 hours after playing

#

and even then its extremely minor

#

what or who do you use to host your server?

bronze linden
#

i setup a brand new server like an hour before

placid kestrel
#

locally?

bronze linden
#

Yup

#

on a spare pc

placid kestrel
#

what java version is it on

bronze linden
#

the server?

placid kestrel
#

yeah

#

in the console you can do something like java -version

#

or terminal i guess cmd line whatever u call it

bronze linden
#

hmmm\

#

we talking the minecraft server terminal or my debian terminal

bronze linden
placid kestrel
#

oh hold on

#

hmmm

bronze linden
#

i didnt actually manually install java so i dont know i used the a docker app called crafty which allows me to easily setup minecraft servers and i am pretty sure it comes with java

#

or auto installs java or something

placid kestrel
#

id recommend finding a way to check your java version heres another way

#

send a log from the latest log report

#

should be a logs folder atleast

bronze linden
#

alright it says java 21

placid kestrel
#

Okay im not really sure how to get it to java 17 through crafty

#

but thats the java you want

#

also some basic jvm flags probably would help you too

#

im not saying this is the be all end all of flag sources

#

but it helped me

bronze linden
#

hmm alright thats wierd that it works quite well in java 21 though if its not supposed to do that

#

what do the jvm tags do i know about min and max mem usage but all the other stuff i am curios

#

thats my current tags ( i think thats what they are) on crafty its under "Server Execution Command" java -Xms3000M -Xmx6500M -jar fabric-1.20.1.jar nogui

#

thx

placid kestrel
#

the flags above help manage the jvm pretty much

#

GC is a large part of java virtual stuff

#

garbage collection

#

the flags that flags.sh offer are geared towards a ton of research done by akiar to provide us the best preformance