I’m not sure if this is the correct category.
I’m having a problem where when someone connects to the server, I get a few warnings about the server not being able to keep up and skipping ticks in the log and then the server crashes, unless I disconnect before that happens, then the server just keeps running and the warnings stop. I’ll copy part of the log here:
[12:40:28] [Server thread/INFO]: PcNerd512[/192.168.0.118:61529] logged in with entity id 270 at (189.5, 65.20283987024771, 265.5)
[12:40:29] [Server thread/INFO]: PcNerd512 joined the game
[12:40:33] [Server thread/WARN]: Can’t keep up! Did the system time change, or is the server overloaded? Running 3150ms behind, skipping 63 tick(s)
[12:41:36] [Server thread/WARN]: Can’t keep up! Did the system time change, or is the server overloaded? Running 44292ms behind, skipping 885 tick(s)
[12:41:43] [Server thread/WARN]: Can’t keep up! Did the system time change, or is the server overloaded? Running 6410ms behind, skipping 128 tick(s)
[12:42:46] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:300) ~[?:1.8.0_111]
at java.lang.StringCoding.encode(StringCoding.java:344) ~[?:1.8.0_111]
at java.lang.String.getBytes(String.java:918) ~[?:1.8.0_111]
at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0_111]
at java.io.FileInputStream.open(FileInputStream.java:195) ~[?:1.8.0_111]
at java.io.FileInputStream.(FileInputStream.java:138) ~[?:1.8.0_111]
at bez.c(SourceFile:77) ~inecraft_server.1.12.jar:?]
at ams.P(SourceFile:2647) ~inecraft_server.1.12.jar:?]
at ayc.a(SourceFile:109) ~inecraft_server.1.12.jar:?]
at ol.c(SourceFile:147) ~inecraft_server.1.12.jar:?]
at ol.a(SourceFile:166) ~inecraft_server.1.12.jar:?]
at om.a(SourceFile:881) ~inecraft_server.1.12.jar:?]
at net.minecraft.server.MinecraftServer.a(SourceFile:378) ~inecraft_server.1.12.jar:?]
at net.minecraft.server.MinecraftServer.C(SourceFile:578) ~inecraft_server.1.12.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:464) inecraft_server.1.12.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
[12:42:47] [Server thread/ERROR]: Could not save crash report to ./crash-reports/crash-2017-07-10_12.42.47-server.txt
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.nio.HeapByteBuffer.(HeapByteBuffer.java:57) ~[?:1.8.0_111]
at java.nio.ByteBuffer.allocate(ByteBuffer.java:335) ~[?:1.8.0_111]
at sun.nio.cs.StreamEncoder.(StreamEncoder.java:195) ~[?:1.8.0_111]
at sun.nio.cs.StreamEncoder.(StreamEncoder.java:175) ~[?:1.8.0_111]
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:68) ~[?:1.8.0_111]
at java.io.OutputStreamWriter.(OutputStreamWriter.java:133) ~[?:1.8.0_111]
at b.a(SourceFile:230) inecraft_server.1.12.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:487) inecraft_server.1.12.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
[12:42:47] [Server thread/ERROR]: We were unable to save this crash report to disk.
[12:42:47] [Server thread/INFO]: Stopping server
[12:42:47] [Server thread/INFO]: Saving players
[12:42:47] [Server thread/INFO]: Saving worlds
[12:42:47] [Server thread/INFO]: Saving chunks for level ‘world’/overworld
[12:42:48] [Server thread/ERROR]: Exception stopping the server
It looks like it’s running out of memory, but I think (I set -Xmx and -Xms to 2048MB) I gave the server 2GB, which should be enough for 1 player. I’m kind of out of ideas myself, I searched Google and this forum for this issue, but I found nothing where the server actually crashed.
Also, less important at the moment but still an issue: I can’t find the server console where I can whitelist or OP players.
Any help is appreciated!
EDIT: The crashes seem to have solved themselves now, but I’m still getting the warnings about the server not being able to keep up.