Forums Archived

This forum has been archived. No new posts can be made and no new users can sign up. It remains here for reference only.

Find the new forums here

Minecraft server crashes repeatedly when run

  • 226 Views
  • Last Post 08 January 2022
ABCDWHAT posted this 19 December 2021

When “start” is clicked to start Minecraft, all startup appears positive, a player then logs on, and it crashes after about a minute for no apparent reason. It continues to do this several times, then eventually subsides. I believe this may have something to do with the RAM usage, as it is peaking even with 4GB allocated. As far as I know, Minecraft servers typically use only 2GB of ram. I am using a Debian 11 Linode server, and there is nothing running exept AMP.

Order By: Standard | Newest | Votes
Mike posted this 19 December 2021

Check the logs to see exactly why it's crashing. But these days 4GB is not sufficient for a Minecraft server.

  • Liked by
  • enixlin
Mike posted this 29 December 2021

What version of Java have you told AMP to use? Did you let AMP install Java for you?

ABCDWHAT posted this 29 December 2021

I am using JDK 17 an I installed it myself.

ABCDWHAT posted this 29 December 2021

It also gives the following error

com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ at com.google.gson.internal.Streams.parse(Streams.java:60) ~[gson-2.8.8.jar:?] at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:65) ~[gson-2.8.8.jar:?] at aiq.a(SourceFile:503) ~[server-1.18.jar:?] at aiq.a(SourceFile:527) ~[server-1.18.jar:?] at pz$a.a(SourceFile:365) ~[server-1.18.jar:?] at acj.a(SourceFile:616) ~[server-1.18.jar:?] at acj.(SourceFile:90) ~[server-1.18.jar:?] at net.minecraft.server.Main.a(SourceFile:203) ~[server-1.18.jar:?] at net.minecraft.server.MinecraftServer.a(SourceFile:277) ~[server-1.18.jar:?] at net.minecraft.server.Main.main(SourceFile:202) ~[server-1.18.jar:?] at net.minecraft.bundler.Main.lambda$run$0(Main.java:54) ~[?:?] at java.lang.Thread.run(Thread.java:833) [?:?] Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1562) ~[gson-2.8.8.jar:?] at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1403) ~[gson-2.8.8.jar:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:592) ~[gson-2.8.8.jar:?] at com.google.gson.stream.JsonReader.peek(JsonReader.java:424) ~[gson-2.8.8.jar:?] at com.google.gson.internal.Streams.parse(Streams.java:46) ~[gson-2.8.8.jar:?] ... 11 more

AbhorrentJoel posted this 31 December 2021

What you're seeing above is related to the Resource Pack Prompt. Above that, it probably says Failed to parse resource pack prompt 'A resource pack is required to connect to this server.', which would confirm. @Mike, is there a reason why it can't parse the message?

With the new version of Minecraft (1.18), 4GB is probably the absolute minimum for vanilla with a few players. If you have only 4GB for your whole virtual server, this is going to be a squeeze.

When you say the server crashes, do you mean that it makes players timeout? Or do you mean it has to be restarted?

Edit: Should add that if you are on a shared CPU plan, this may also be a detriment to performance. You may find that if the CPU is strained, it will take a lot of time to generate new chunks - this will cause people to timeout if it takes too long. A dedicated CPU plan would be better, though I am not guaranteeing it is a solution.

ABCDWHAT posted this 07 January 2022

My server has at most 4 player simultaneously online. when the crashes occur, the players are kicked from the game with error "connection refused." the settings are quite low, with render distance at 5, simulation distance at 4, and Entity distance at 45 blocks.

AbhorrentJoel posted this 08 January 2022

So, what is the message in the log/console when it happens?

ABCDWHAT posted this 08 January 2022

I have posted the full log Here

AbhorrentJoel posted this 08 January 2022

So it crashes at 15:40:10?

Also, you're using a third-party server with mods. This may have an impact.

ABCDWHAT posted this 08 January 2022

15:40:10 is simply the time stamp, and I am NOT running any mods.

Close