#running Minecraft server gives fatal error consistently

1 messages · Page 1 of 1 (latest)

zealous egretBOT
#

<@&987246652869971988> please have a look, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#
TJ-Bot
Im running a minecraft 1.20.6 server, for the last couple of days i havent been getting this error and seemingly randomly i started getting it today . I was originally running java 21 and now i have 22 installed because i wanted to see if that would help.

This error could be caused by a number of different issues. It's important to first check the server logs to see if there are any specific error messages that could give more insight into what is causing the crash.

One common issue that can cause a fatal error is running out of memory. Make sure that you have allocated enough RAM to the server in your launch settings. You can do this by editing the start script or launcher profile used to run the server.

Another potential cause of fatal errors is plugin conflicts or outdated plugins. Try disabling all plugins and then re-enabling them one by one to see if a specific plugin is causing the issue.

It's also possible that there is a corruption in your world files. Try creating a new world and seeing if the error still occurs. If it doesn't, then you may need to restore a backup of your world files.

If none of these solutions work, you may want to try reinstalling Minecraft server completely or reaching out to the Minecraft community for additional support.

toxic mason
#

The error is like 177 thousand characters long
bro what???

#

also we cant really help with this little information

#

we at least need some error

sonic vault
#

G1 crashing 🤔

toxic mason
#

thats the garbage collector

#

and that shouldnt happen lol

radiant nest
#

If you're on vanilla G1GC should be totally fine

#

I've never seen this happen before lol

#

it says its using 1000 mb

toxic mason
#

Yeah this is pretty odd

radiant nest
#

Can you maybe share your startup parameters?

toxic mason
#

1GB is not enough for a server ngl

radiant nest
#

gave it like 16 gb of ram

#

that's overkill btw

#

use around 6-10 if you have many players

#

at that point more RAM won't help

radiant nest
#

I also found that this can be caused by bad RAM

#

e.g. damaged or worse

#

but not sure ofc

sonic vault
#

yea could be a problem

#

but

#

you forget that he is using xmx

#

-Xmx16000m

#

so java could allocate up to 16gb

#

so it shouldn't be a problem

#

16gb is a lot

#

@radiant nest @toxic mason

#

ah and also, this is heap space ram limits

#

so if it uses more than 16gb, then it would throw an out of memor error

#

which isn't the error here

#

so it's totally different

#

Another strange thing it’s doing is that when the server opens it ( before shutting down 10 seconds later ) it says its using 1000 mb and has soemthing like 8% ram free even though i gave it like 16 gb of ram
Wdym, show what you saw please @radiant nest

undone zephyr
#

Another strange thing it’s doing is that when the server opens it ( before shutting down 10 seconds later ) it says its using 1000 mb and has soemthing like 8% ram free even though i gave it like 16 gb of ram

you're allowing it to allocate up to 16gb. that doesn't mean it's going to use all 16gb. java uses as much memory as it needs

toxic mason
#

you talking about speed (in MHz)?

#

its probably caused by cpu or mainboard limitations

#

also 466 MHz is ass

#

check the cpu/mainboard specifications to see the max ram speed

#

ah ok

#

still check the specifications

#

it might not properly work as well

#

I can check

#

which cpu/mainboard you got?

sonic vault
#

how did you find this answer ?

toxic mason
#

seems like 3200 MHz max

toxic mason
toxic mason
#

thats basically fast enough for anything lol

signal fossil
#

on a side note, how do you even change ram speed lol? from bios maybe?

radiant nest
#

another side note

#

Don't set it to 16GB RAM

#

and keep xmx and xms the same

#

(This advice only counts for Minecraft servers)

#

Xms is the start amount

#

If that's not the same as xmx it will take and give back memory to the OS which takes time

#

so the general rule of thumb for a server that's running MC only is to set xmx and xms to the amount of RAM you have minus 2-3GB for JVM overhead and the OS itself

#

may be a bit different for running on your home pc ofc

#

since you run other programs that need it too

toxic mason
#

There is also xmp which will automatically configure it iirc

toxic mason
#

no

#

xms shouldnt be 16gb

#

idk how much ram you got

#

but 8gb should be enough

#

if its not like a big ass server

#

well then you maybe need more

#

though imo it should still be fine

#

no its not bad

toxic mason
#

though almost 30gb ram sounds overkill for a 20 player server

#

that they both should have the same amount

#

no its fine

#

I didnt know you got 32gb and I said that because it sounded like overkill

radiant nest
#

It's not inherintly 'bad'

#

but don't expect better performance just because you give more RAM

#

more RAM also means more RAM to clean up, so at some point there is deminishing returns

#

it's always a bit hard to pinpoint when running Minecraft

#

that's why for vanilla 8GB should be good enough in most cases

#

and since Minecraft is still single threaded for the most part, single core cpu speed also counts

#

buuut if it works it works

toxic mason
#

iirc it says 4gb is recommended for vanilla minecraft, so that might be better to use

#

but thats for the client

#

not for the server

radiant nest
#

server with 20 players I would recommend 8gb

#

also depends on what you're building

#

farms / entities are quite a big contributor to RAM usage

sonic vault
zealous egretBOT
#

@radiant nest

Your question has been closed due to inactivity.

If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.

Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.

When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.

Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.

With enough info, someone knows the answer for sure 👍