World Save Leak?

After the outofmemory error appears it breaks the whole server, commands stop working etc

[17:08:02] [Server thread/DEBUG] [FML/]: Gathering id map for writing to world save world
[17:08:10] [HikariPool-1 housekeeper/DEBUG] [com.zaxxer.hikari.pool.HikariPool/sponge]: HikariPool-1 - Pool stats (total=25, active=0, idle=25, waiting=0)
[17:08:10] [Server thread/INFO] [io.github.hsyyid.essentialcmds/]: [darkrabbit] executed command warp ev
[17:08:21] [HikariPool-3 housekeeper/DEBUG] [com.zaxxer.hikari.pool.HikariPool/sponge]: HikariPool-3 - Pool stats (total=25, active=0, idle=25, waiting=0)
[17:08:22] [HikariPool-2 housekeeper/DEBUG] [com.zaxxer.hikari.pool.HikariPool/sponge]: HikariPool-2 - Pool stats (total=25, active=2, idle=23, waiting=0)
[17:08:26] [Server thread/INFO] [io.github.hsyyid.essentialcmds/]: [cephalopoid] executed command home casa
[17:08:28] [Server thread/INFO] [io.github.hsyyid.essentialcmds/]: [Ironz_playz] executed command warp savanna
[17:08:31] [Server thread/INFO] [io.github.hsyyid.essentialcmds/]: [NinjaMonkey] executed command pex user theZacarias parent add group PokeMaster
[17:08:37] [Server thread/INFO] [io.github.hsyyid.essentialcmds/]: [darkrabbit] executed command warp plains
[17:08:40] [HikariPool-1 housekeeper/DEBUG] [com.zaxxer.hikari.pool.HikariPool/sponge]: HikariPool-1 - Pool stats (total=25, active=0, idle=25, waiting=0)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.OutOfMemoryError: unable to create new native thread
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Thread.start0(Native Method)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Thread.start(Thread.java:714)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1368)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at org.spongepowered.common.scheduler.AsyncScheduler.executeTaskRunnable(AsyncScheduler.java:133)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at org.spongepowered.common.scheduler.SchedulerBase.startTask(SchedulerBase.java:174)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at org.spongepowered.common.scheduler.SchedulerBase.processTask(SchedulerBase.java:160)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4707)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at org.spongepowered.common.scheduler.SchedulerBase.runTick(SchedulerBase.java:104)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at org.spongepowered.common.scheduler.AsyncScheduler.mainLoop(AsyncScheduler.java:66)
[17:08:47] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Thread.run(Thread.java:745)
[17:08:51] [HikariPool-3 housekeeper/DEBUG] [com.zaxxer.hikari.pool.HikariPool/sponge]: HikariPool-3 - Pool stats (total=25, active=0, idle=25, waiting=0)
[17:08:52] [pool-2-thread-153/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.OutOfMemoryError: unable to create new native thread
[17:08:52] [pool-2-thread-153/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Thread.start0(Native Method)
[17:08:52] [pool-2-thread-153/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Thread.start(Thread.java:714)
[17:08:52] [pool-2-thread-153/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
[17:08:52] [pool-2-thread-153/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1018)
[17:08:52] [pool-2-thread-153/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
[17:08:52] [pool-2-thread-153/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[17:08:52] [pool-2-thread-153/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Thread.run(Thread.java:745)

#2

[21:22:22] [Server thread/DEBUG] [FML/]: Gathering id map for writing to world save world
[21:22:25] [HikariPool-3 housekeeper/DEBUG] [com.zaxxer.hikari.pool.HikariPool/sponge]: HikariPool-3 - Pool stats (total=25, active=0, idle=25, waiting=0)
[21:22:25] [HikariPool-1 housekeeper/DEBUG] [com.zaxxer.hikari.pool.HikariPool/sponge]: HikariPool-1 - Pool stats (total=25, active=0, idle=25, waiting=0)
[21:22:29] [HikariPool-2 housekeeper/DEBUG] [com.zaxxer.hikari.pool.HikariPool/sponge]: HikariPool-2 - Pool stats (total=25, active=2, idle=23, waiting=0)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.OutOfMemoryError: unable to create new native thread
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Thread.start0(Native Method)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Thread.start(Thread.java:714)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1368)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at org.spongepowered.common.scheduler.AsyncScheduler.executeTaskRunnable(AsyncScheduler.java:133)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at org.spongepowered.common.scheduler.SchedulerBase.startTask(SchedulerBase.java:174)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at org.spongepowered.common.scheduler.SchedulerBase.processTask(SchedulerBase.java:160)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4707)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at org.spongepowered.common.scheduler.SchedulerBase.runTick(SchedulerBase.java:104)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at org.spongepowered.common.scheduler.AsyncScheduler.mainLoop(AsyncScheduler.java:66)
[21:22:38] [Sponge Async Scheduler Thread/INFO] [STDERR/sponge]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Thread.run(Thread.java:745)

This has been appearing for quite a long time, I have no clue why all commands break, but it seems to happen right after that outofmemory happens, and after looking at many different logs that error happens right after:
“[FML/]: Gathering id map for writing to world save world”

… well yeah.

OutOfMemory means that the server ran out of memory - things will inevitably break when that happens. You need to allocate more memory to your server by adding something like -Xmx4G to your arguments when running java.

It’s already allocated 8 gigs

Hard to troubleshoot without a full log. This only tells us that your server is out of memory as suggested by @ZephireNZ

Here’s the full log but as you can see not too many errors to debug this

http://pastebin.com/sHQaH2Sb