Server crashes randomly

Discussion in 'Spigot Help' started by HelloitsRien, Apr 28, 2017.

  1. Hello people of the Spigot forums,

    Today I have a small question regarding our server crashing randomly. This happens on all our servers and after 2 days of extensive development we still haven't found a solution. Therefore we are hereby asking for you assistance regarding this issue.

    We get the following stacktrace when it shuts down:
    Code (Text):
    8.04 16:27:34 [Server] ERROR java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.FutureTask.run(FutureTask.java:266)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    28.04 16:27:34 [Server] ERROR java.lang.Thread.run(Thread.java:745)
    28.04 16:27:34 [Server] ERROR ------------------------------
    28.04 16:27:34 [Server] ERROR Current Thread: Async Chat Thread - #2
    28.04 16:27:34 [Server] ERROR PID: 517 | Suspended: false | Native: false | State: WAITING
    28.04 16:27:34 [Server] ERROR Stack:
    28.04 16:27:34 [Server] ERROR java.lang.Object.wait(Native Method)
    28.04 16:27:34 [Server] ERROR java.lang.Object.wait(Object.java:502)
    28.04 16:27:34 [Server] ERROR org.bukkit.craftbukkit.v1_8_R3.util.Waitable.get(Waitable.java:39)
    28.04 16:27:34 [Server] ERROR net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1060)
    28.04 16:27:34 [Server] ERROR net.minecraft.server.v1_8_R3.PacketPlayInChat$1.run(PacketPlayInChat.java:39)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.FutureTask.run(FutureTask.java:266)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    28.04 16:27:34 [Server] ERROR java.lang.Thread.run(Thread.java:745)
    28.04 16:27:34 [Server] ERROR ------------------------------
    28.04 16:27:34 [Server] ERROR Current Thread: pool-6-thread-6
    28.04 16:27:34 [Server] ERROR PID: 465 | Suspended: false | Native: false | State: TIMED_WAITING
    28.04 16:27:34 [Server] ERROR Stack:
    28.04 16:27:34 [Server] ERROR sun.misc.Unsafe.park(Native Method)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:362)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1066)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    28.04 16:27:34 [Server] ERROR java.lang.Thread.run(Thread.java:745)
    28.04 16:27:34 [Server] ERROR ------------------------------
    28.04 16:27:34 [Server] ERROR Current Thread: PaperSpigot - Lighting Thread
    28.04 16:27:34 [Server] ERROR PID: 186 | Suspended: false | Native: false | State: WAITING
    28.04 16:27:34 [Server] ERROR Stack:
    28.04 16:27:34 [Server] ERROR sun.misc.Unsafe.park(Native Method)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    28.04 16:27:34 [Server] ERROR java.lang.Thread.run(Thread.java:745)
    28.04 16:27:34 [Server] ERROR ------------------------------
    28.04 16:27:34 [Server] ERROR Current Thread: ExpiringMap-Expirer
    28.04 16:27:34 [Server] ERROR PID: 163 | Suspended: false | Native: false | State: WAITING
    28.04 16:27:34 [Server] ERROR Stack:
    28.04 16:27:34 [Server] ERROR sun.misc.Unsafe.park(Native Method)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1081)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    28.04 16:27:34 [Server] ERROR java.lang.Thread.run(Thread.java:745)
    28.04 16:27:34 [Server] ERROR ------------------------------
    28.04 16:27:34 [Server] ERROR Current Thread: PaperSpigot - Lighting Thread
    28.04 16:27:34 [Server] ERROR PID: 131 | Suspended: false | Native: false | State: WAITING
    28.04 16:27:34 [Server] ERROR Stack:
    28.04 16:27:34 [Server] ERROR sun.misc.Unsafe.park(Native Method)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    28.04 16:27:34 [Server] ERROR java.lang.Thread.run(Thread.java:745)
    28.04 16:27:34 [Server] ERROR ------------------------------
    28.04 16:27:34 [Server] ERROR Current Thread: File IO Thread
    28.04 16:27:34 [Server] ERROR PID: 122 | Suspended: false | Native: false | State: TIMED_WAITING
    28.04 16:27:34 [Server] ERROR Stack:
    28.04 16:27:34 [Server] ERROR java.lang.Thread.sleep(Native Method)
    28.04 16:27:34 [Server] ERROR net.minecraft.server.v1_8_R3.FileIOThread.c(FileIOThread.java:52)
    28.04 16:27:34 [Server] ERROR net.minecraft.server.v1_8_R3.FileIOThread.run(FileIOThread.java:28)
    28.04 16:27:34 [Server] ERROR java.lang.Thread.run(Thread.java:745)
    28.04 16:27:34 [Server] ERROR ------------------------------
    28.04 16:27:34 [Server] ERROR Current Thread: pool-15-thread-1
    28.04 16:27:34 [Server] ERROR PID: 118 | Suspended: false | Native: false | State: WAITING
    28.04 16:27:34 [Server] ERROR Stack:
    28.04 16:27:34 [Server] ERROR sun.misc.Unsafe.park(Native Method)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    28.04 16:27:34 [Server] ERROR java.lang.Thread.run(Thread.java:745)
    28.04 16:27:34 [Server] ERROR ------------------------------
    28.04 16:27:34 [Server] ERROR Current Thread: Chunk I/O Executor Thread-2
    28.04 16:27:34 [Server] ERROR PID: 117 | Suspended: false | Native: false | State: WAITING
    28.04 16:27:34 [Server] ERROR Stack:
    28.04 16:27:34 [Server] ERROR sun.misc.Unsafe.park(Native Method)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    28.04 16:27:34 [Server] ERROR java.lang.Thread.run(Thread.java:745)
    28.04 16:27:34 [Server] ERROR ------------------------------
    28.04 16:27:34 [Server] ERROR Current Thread: Chunk I/O Executor Thread-1
    28.04 16:27:34 [Server] ERROR PID: 116 | Suspended: false | Native: false | State: WAITING
    28.04 16:27:34 [Server] ERROR Stack:
    28.04 16:27:34 [Server] ERROR sun.misc.Unsafe.park(Native Method)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    28.04 16:27:34 [Server] ERROR java.lang.Thread.run(Thread.java:745)
    28.04 16:27:34 [Server] ERROR ------------------------------
    28.04 16:27:34 [Server] ERROR Current Thread: pool-32-thread-1
    28.04 16:27:34 [Server] ERROR PID: 115 | Suspended: false | Native: false | State: TIMED_WAITING
    28.04 16:27:34 [Server] ERROR Stack:
    28.04 16:27:34 [Server] ERROR sun.misc.Unsafe.park(Native Method)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2
    Chain of events pre-crash:
    • Server is running normal
    • Server is lagging extensively
    • Server is not responding to our monitor (a diagnostic tool we made to test if servers are offline and how much resources they utilize)
    • Server crashes
    • Server reboots due to auto-reboot

    I hope some of you can find out what causes this.
     
  2. I think you have too many worlds and plugins
     
    #2 Jobsms, Apr 28, 2017
    Last edited: Apr 29, 2017
  3. This server is running on a 8 core machine with 32GB's of ram. Plugins or worlds should not be an issue.
     
  4. what host do you use? it could be a case of the host is stopping it automaticley becuse of high CPU or somthing...
     
  5. We have our own servers at OVH and in Amsterdam in a datacenter
     
  6. GaIaxy

    Supporter

    Seems like a corrupt world.
    Code (Text):

    ERROR Current Thread: Chunk I/O Executor Thread-1
    Usually what that means. Try loading a fresh new world and see if that works. Don't load the world you are on now.

    If not, is your java updated?
     
  7. Nope, it isn't the map. We tested it.
     
  8. maybe a lighting glitch??
    Code (Text):
    28.04 16:27:34 [Server] ERROR ------------------------------
    28.04 16:27:34 [Server] ERROR Current Thread: PaperSpigot - Lighting Thread
    28.04 16:27:34 [Server] ERROR PID: 186 | Suspended: false | Native: false | State: WAITING
    28.04 16:27:34 [Server] ERROR Stack:
    28.04 16:27:34 [Server] ERROR sun.misc.Unsafe.park(Native Method)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
    28.04 16:27:34 [Server] ERROR java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    28.04 16:27:34 [Server] ERROR java.lang.Thread.run(Thread.java:745)
    28.04 16:27:34 [Server] ERROR ------------------------------
     
  9. Gaxan

    Supporter

    Have you tried running just spigot without paper-spigot to see if the same error occurs?
     
  10. Seems your stacktrace is not complete?Where is the main thread?