Server crash

Discussion in 'Spigot Help' started by Invicta, Jan 26, 2021.

  1. Hey, so now after about 2 weeks of a perfect server start, I had a crash today. Well it wasn't a real crash but everyone got kicked and couldn't rejoin. So there isn't any crash report, but this is what was in the logs:

    [19:30:50] [pool-35-thread-1/INFO]: Creating empty config: /home/pvpserver/plugins/Essentials/userdata/990a8a90-b29d-42a7-95ed-dd970913039f.yml
    [19:30:50] [Craft Scheduler Thread - 680/WARN]: Exception in thread "Craft Scheduler Thread - 680"
    [19:30:50] [Craft Scheduler Thread - 680/WARN]: java.lang.OutOfMemoryError: unable to create new native thread
    [19:30:50] [Craft Scheduler Thread - 680/WARN]: at java.lang.Thread.start0(Native Method)
    [19:30:50] [Craft Scheduler Thread - 680/WARN]: at java.lang.Thread.start(Thread.java:717)
    [19:30:50] [Craft Scheduler Thread - 680/WARN]: at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:957)
    [19:30:50] [Craft Scheduler Thread - 680/WARN]: at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1025)
    [19:30:50] [Craft Scheduler Thread - 680/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    [19:30:50] [Craft Scheduler Thread - 680/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    [19:30:50] [Craft Scheduler Thread - 680/WARN]: at java.lang.Thread.run(Thread.java:748)

    [19:31:25] [ForkJoinPool-2-worker-3/WARN]: Exception in thread "ForkJoinPool-2-worker-3"
    [19:31:25] [ForkJoinPool-2-worker-3/WARN]: java.lang.OutOfMemoryError: unable to create new native thread
    [19:31:25] [ForkJoinPool-2-worker-3/WARN]: at java.lang.Thread.start0(Native Method)
    [19:31:25] [ForkJoinPool-2-worker-3/WARN]: at java.lang.Thread.start(Thread.java:717)
    [19:31:25] [ForkJoinPool-2-worker-3/WARN]: at java.util.concurrent.ForkJoinPool.createWorker(ForkJoinPool.java:1486)
    [19:31:25] [ForkJoinPool-2-worker-3/WARN]: at java.util.concurrent.ForkJoinPool.tryAddWorker(ForkJoinPool.java:1517)
    [19:31:25] [ForkJoinPool-2-worker-3/WARN]: at java.util.concurrent.ForkJoinPool.deregisterWorker(ForkJoinPool.java:1609)
    [19:31:25] [ForkJoinPool-2-worker-3/WARN]: at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:167)
    [19:31:25] [Server thread/WARN]: Exception thrown when submitting maintenance task
    java.lang.OutOfMemoryError: unable to create new native thread
    at java.lang.Thread.start0(Native Method) ~[?:1.8.0_211]
    at java.lang.Thread.start(Thread.java:717) ~[?:1.8.0_211]
    at java.util.concurrent.ForkJoinPool.createWorker(ForkJoinPool.java:1486) ~[?:1.8.0_211]
    at java.util.concurrent.ForkJoinPool.tryAddWorker(ForkJoinPool.java:1517) ~[?:1.8.0_211]
    at java.util.concurrent.ForkJoinPool.signalWork(ForkJoinPool.java:1634) ~[?:1.8.0_211]
    at java.util.concurrent.ForkJoinPool.externalPush(ForkJoinPool.java:2414) ~[?:1.8.0_211]
    at java.util.concurrent.ForkJoinPool.execute(ForkJoinPool.java:2648) ~[?:1.8.0_211]
    at me.lucko.luckperms.lib.caffeine.cache.BoundedLocalCache.scheduleDrainBuffers(BoundedLocalCache.java:1420) [caffeine-2.8.1-remapped.jar:?]
    at me.lucko.luckperms.lib.caffeine.cache.BoundedLocalCache.scheduleAfterWrite(BoundedLocalCache.java:1387) [caffeine-2.8.1-remapped.jar:?]
    at me.lucko.luckperms.lib.caffeine.cache.BoundedLocalCache.afterWrite(BoundedLocalCache.java:1357) [caffeine-2.8.1-remapped.jar:?]
    at me.lucko.luckperms.lib.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2445) [caffeine-2.8.1-remapped.jar:?]
    at me.lucko.luckperms.lib.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2361) [caffeine-2.8.1-remapped.jar:?]
    at me.lucko.luckperms.lib.caffeine.cache.LocalAsyncCache.get(LocalAsyncCache.java:92) [caffeine-2.8.1-remapped.jar:?]
    at me.lucko.luckperms.lib.caffeine.cache.LocalAsyncCache.get(LocalAsyncCache.java:83) [caffeine-2.8.1-remapped.jar:?]
    at me.lucko.luckperms.lib.caffeine.cache.LocalAsyncLoadingCache.get(LocalAsyncLoadingCache.java:79) [caffeine-2.8.1-remapped.jar:?]
    at me.lucko.luckperms.lib.caffeine.cache.LocalAsyncLoadingCache$LoadingCacheView.get(LocalAsyncLoadingCache.java:122) [caffeine-2.8.1-remapped.jar:?]
    at me.lucko.luckperms.common.cacheddata.AbstractCachedDataManager$Permission.get(AbstractCachedDataManager.java:197) [LuckPerms-v5.0.130.jar:?]
    at me.lucko.luckperms.common.cacheddata.AbstractCachedDataManager.getPermissionData(AbstractCachedDataManager.java:92) [LuckPerms-v5.0.130.jar:?]
    at me.lucko.luckperms.bukkit.inject.permissible.LuckPermsPermissible.hasPermission(LuckPermsPermissible.java:176) [LuckPerms-v5.0.130.jar:?]
    at org.bukkit.craftbukkit.v1_8_R3.entity.CraftHumanEntity.hasPermission(CraftHumanEntity.java:102) [patched.jar:git-PaperSpigot-"4c7641d"]
    at fr.neatmonster.nocheatplus.utilities.CheckUtils.hasBypass(CheckUtils.java:179) [NoCheatPlus.jar:?]
    at fr.neatmonster.nocheatplus.utilities.CheckUtils.hasBypass(CheckUtils.java:155) [NoCheatPlus.jar:?]
    at fr.neatmonster.nocheatplus.checks.Check.isEnabled(Check.java:221) [NoCheatPlus.jar:?]
    at fr.neatmonster.nocheatplus.checks.inventory.Open.check(Open.java:65) [NoCheatPlus.jar:?]
    at fr.neatmonster.nocheatplus.checks.inventory.InventoryListener.playerLeaves(InventoryListener.java:482) [NoCheatPlus.jar:?]
    at fr.neatmonster.nocheatplus.NoCheatPlus.onLeave(NoCheatPlus.java:1401) [NoCheatPlus.jar:?]
    at fr.neatmonster.nocheatplus.NoCheatPlus$7.onPlayerQuit(NoCheatPlus.java:1358) [NoCheatPlus.jar:?]
    at sun.reflect.GeneratedMethodAccessor545.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300) [patched.jar:git-PaperSpigot-"4c7641d"]
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) [patched.jar:git-PaperSpigot-"4c7641d"]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [patched.jar:git-PaperSpigot-"4c7641d"]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) [patched.jar:git-PaperSpigot-"4c7641d"]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502) [patched.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.PlayerList.disconnect(PlayerList.java:364) [patched.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:875) [patched.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.NetworkManager.l(NetworkManager.java:314) [patched.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.ServerConnection.c(ServerConnection.java:145) [patched.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:875) [patched.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [patched.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched.jar:git-PaperSpigot-"4c7641d"]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched.jar:git-PaperSpigot-"4c7641d"]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]

    I have constant 20 TPS with about 20 players online. 8GB Ram while 5 are dedicated to the server, but 4GB are always free.
    Does anyone have an idea what went wrong?
    Thanks so much in advance.
     
  2. You either ran out of RAM or out of HDD/SSD memory.
     
  3. I don‘t really understand that, the stats are always perfect and there are never any lags.
    How many GB would you recommend for a server with 45 plugins and 20-40 players online? I even have 3 cores..
    Thanks for your time.
     
  4. You most likely ran out of HDD/SSD space, as you seem to have enough RAM.

    Check how big your world folders are, as you ran out of some type of memory.
     
  5. All my worlds combined have 1GB. I have 50GB SSD.
     
  6. It could be a problem with
    bad configuration or database
    luckperms
    or could it be a problem due to lack of RAM
     
  7. What could possibly be wrong with luckperms?
     
  8. try disable luckperms and see if the error reoccurs if otherwise it does not repeat again it could be a bad luckperms configuration possibly something you have done wrong
     
  9. Right there in the stacktrace:
    Code (Text):
    java.lang.OutOfMemoryError: unable to create new native thread
     
  10. Code (Text):
    Exception thrown when submitting maintenance task
    java.lang.OutOfMemoryError: unable to create new native thread
     
    Ran out of memory. Monitor it for a while and see if RAM usage climbs.