Cause for constant server crashes?

Discussion in 'Spigot Help' started by Ov7, Jun 23, 2018.

  1. Ov7



    I own a survival server that has around 10-15 players on average online. We have 20~ plugins and they're really only essential plugins so the server itself shouldn't be too intensive. We also have a server with 4GB RAM. Our server specs are an Intel Xeon E5-2630v3 processor, an SSD, DDR4 ECC RAM and a 1 Gbps uplink connection. Overall this should really be more than enough for the server I am running. Sadly, this is not the case. We usually experience about 3-4 crashes a day. Before the server crashes, we get major lag. I tried contacting my server host, but they don't really help. I've tried 2 different hosts but the crashes still pertain. It got so out of hand, I closed down my server until the issues could be resolved. 90% of the time, the crashes are not followed by any sort of error message, it just shows everyone disconnecting for "timed out" and they're able to reconnect. Sometimes the server completely restarts, and spits out 2 error messages:

    1. [04:49:06 ERROR]: Encountered an unexpected exception
    2. net.minecraft.server.v1_12_R1.ReportedException: Exception ticking world
    3. at net.minecraft.server.v1_12_R1.MinecraftServer.D( ~[spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    4. at net.minecraft.server.v1_12_R1.DedicatedServer.D( ~[spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    5. at net.minecraft.server.v1_12_R1.MinecraftServer.C( ~[spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    6. at [spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    7. at [?:1.8.0_172]
    8. Caused by: java.util.ConcurrentModificationException
    9. at java.util.HashMap$HashIterator.nextNode( ~[?:1.8.0_172]
    10. at java.util.HashMap$ ~[?:1.8.0_172]
    11. at net.minecraft.server.v1_12_R1.ChunkProviderServer.unloadChunks( ~[spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    12. at net.minecraft.server.v1_12_R1.WorldServer.doTick( ~[spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    13. at net.minecraft.server.v1_12_R1.MinecraftServer.D( ~[spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    14. ... 4 more
    15. [04:49:06 ERROR]: Cause of unexpected exception was
    16. java.util.ConcurrentModificationException: null
    17. at java.util.HashMap$HashIterator.nextNode( ~[?:1.8.0_172]
    18. at java.util.HashMap$ ~[?:1.8.0_172]
    19. at net.minecraft.server.v1_12_R1.ChunkProviderServer.unloadChunks( ~[spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    20. at net.minecraft.server.v1_12_R1.WorldServer.doTick( ~[spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    21. at net.minecraft.server.v1_12_R1.MinecraftServer.D( ~[spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    22. at net.minecraft.server.v1_12_R1.DedicatedServer.D( ~[spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    23. at net.minecraft.server.v1_12_R1.MinecraftServer.C( ~[spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    24. at [spigot-1.12.2.jar:git-Spigot-642f6d2-fbe3046]
    25. at [?:1.8.0_172]
    26. [04:49:06 ERROR]: This crash report has been saved to: /home/gs/gs/data/servers/10242804/./crash-reports/crash-2018-06-22_04.49.06-server.txt

    Autorank, Clearlag, CoreProtect-Anti-Xray, CoreProtect, DiscordSRV, EssentialsX, GriefPrevention, HolographicDisplays, MinePacks, Multiverse, PlugMan, PluginLibrary, ProtocolLib, Staff+, Statz, Vault, WildTP, JoinMessagePlus, StaffChat, WorldEdit, and WorldGuard.

    Any help on the issue would be appreciated :giggle:
    • Like Like x 1
  2. It looks like GriefPrevention is trying to use too much thread time while attempting to write changes to the file causing other things to not be updated in time

    I would contact the developer of the plugin and see what they recommend

    Code (YAML):
    [04:49:03 ERROR]:      me.ryanhamshire.GriefPrevention.FlatFileDataStore.updateSchemaVersionInStorage(
    [04:49:03 ERROR]
    :      me.ryanhamshire.GriefPrevention.DataStore.setSchemaVersion(
    [04:49:03 ERROR]
    :      me.ryanhamshire.GriefPrevention.DataStore.initialize(
    [04:49:03 ERROR]
    :      me.ryanhamshire.GriefPrevention.FlatFileDataStore.initialize(
    [04:49:03 ERROR]
    :      me.ryanhamshire.GriefPrevention.FlatFileDataStore.<init>(
    [04:49:03 ERROR]
    :      me.ryanhamshire.GriefPrevention.GriefPrevention.onEnable(
  3. Ov7



    I deleted the plugin and sadly we still crash.

    They're spontaneous and very annoying, I'm not sure what causes them but they have no error message whatsoever. The first crash (today) was with only 3 players online. The second crash had 9 players online. When the server crashes, it doesn't actually shut down. It just disconnects everyone:

    Here's the console when it happens:
  4. Happend To Me Many Time Dude I Have 80 Plugins On My Server With 4Gb Ram It Dosent Lag For Me I Think The Plugins You Have Are Corrupted And Please Make A Backup Every 30 Minute Of Your Server If You Install A New Plugin What You Should Do Right Now Is Create A Backup Of Your Plugins And Then Remove All The Plugins From Your Server And Paste Them 1 By 1 It Will Help You I Did It With 60 Plugins And I Found 1 Plugin Was Causing The Problem Thanks!
    #4 SladeHazard, Jun 24, 2018
    Last edited by a moderator: Jun 25, 2018
  5. Ov7


    I'm not sure if a plugin is causing it or not because when the server crashes, it doesn't say any plugin is crashing. It just kicks everyone off the server for "Timed out" or "Disconnected" even though the server doesn't actually turn off or anything.
    #5 Ov7, Jun 24, 2018
    Last edited by a moderator: Jun 25, 2018
  6. Hey buddy, try to remove Statz - It garbage collects shitty (doesnt garbage collect at all) - This means that it is taking up memory and eventually crashing your server when theres no more memory. Try to remove that one - If thats not the cause then try to remove DiscordSRV
  7. Ov7


    Thanks, I'll try it
  8. Also I'd suggest you remove WildTP and just use the basic minecraft commands set a command block, and pressure plate and then type in this ''spreadplayers 1 100 1000 12000 true @p''

    And if you want the /Rtp feature just download MyCmd and put in this
    Code (Text):
    command: /rtp
    type: RUN_CONSOLE
    - /spreadplayers 1 100 1200 14000 true $player
    cooldown: 30
    error-message: '&c/rtp'
    permission-required: false
    And yeah just get MyCommand, it can make a lot of magic happen and also let you make aliases so people can use /wild - /rtp - /randomtp and whatever.