FTB Revelation server sag spikes every minute

  • Thread starter Thread starter krezzykid
  • Start date Start date
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
K

krezzykid

Guest
Hello there

I'm running a FTB Revelation 2.5.0 (MC 1.12.2) dedicated server on my Windows 10 on my i7 2600k with 3,4GHz and 16G RAM on an SSD with the following parameters:

-XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:parallelGCThreads=5 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:+UseConcMarkSweepGC -XX:+AggressiveOpts

Server's been up and running for 3 weeks without any hassle or problems, (other than when flying around andgenerating chunks I've never had "Can't keep up!") when yesterday suddenly things went bad.

The process itself uses about 5% CPU and not more than 2,5GB of RAM. However I get regular TPS lag:

[09:36:21] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 4825ms behind, skipping 96 tick(s)
[09:37:09] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 4853ms behind, skipping 97 tick(s)
[09:37:56] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 4181ms behind, skipping 83 tick(s)
[09:38:44] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 5217ms behind, skipping 104 tick(s)
[09:39:31] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 4287ms behind, skipping 85 tick(s)
[09:40:18] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 3903ms behind, skipping 78 tick(s)
[09:41:05] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 3930ms behind, skipping 78 tick(s)
[09:41:52] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 3878ms behind, skipping 77 tick(s)
[09:42:39] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 4329ms behind, skipping 86 tick(s)
[09:43:27] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 4269ms behind, skipping 85 tick(s)
[09:44:13] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 3935ms behind, skipping 78 tick(s)
[09:45:00] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 3884ms behind, skipping 77 tick(s)
[09:45:48] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 4353ms behind, skipping 87 tick(s)
[09:46:35] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 3855ms behind, skipping 77 tick(s)
[09:47:21] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 3796ms behind, skipping 75 tick(s)
[09:48:08] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 3968ms behind, skipping 79 tick(s)
[09:48:56] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 4343ms behind, skipping 86 tick(s)
[09:49:43] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 3944ms behind, skipping 78 tick(s)
[09:50:30] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 4255ms behind, skipping 85 tick(s)
[09:51:18] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Did the system time change, or is the server overloaded? Running 4860ms behind, skipping 97 tick(s)

I installed LagSpikeProfiler and it gives me totally different and weird reasons

[10:07:32] [LagSpikeProfiler/INFO] [TickProfiler]:
The server appears to have lag spiked.
Last tick 0.21037483s ago."Server thread" RUNNABLE
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.WinNTFileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
at java.io.FilePermission$1.run(Unknown Source)
at java.io.FilePermission$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(Unknown Source)
at java.io.FilePermission.<init>(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.exists(Unknown Source)
at java.io.WinNTFileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
at java.io.FilePermission$1.run(Unknown Source)
at java.io.FilePermission$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(Unknown Source)
at java.io.FilePermission.<init>(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.exists(Unknown Source)
at li.cil.oc.common.SaveHandler$.onChunkSave(SaveHandler.scala:181)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_1752_SaveHandler$_onChunkSave_Save.invoke(.dynamic)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75816_a(AnvilChunkLoader.java:175)
at net.minecraft.world.gen.ChunkProviderServer.func_73242_b(ChunkProviderServer.java:202)
at net.minecraft.world.gen.ChunkProviderServer.func_186027_a(ChunkProviderServer.java:230)
at net.minecraft.world.WorldServer.func_73044_a(WorldServer.java:1007)
at net.minecraft.server.MinecraftServer.func_71267_a(MinecraftServer.java:408)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:691)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Unknown Source)

Or this

[10:08:17] [LagSpikeProfiler/INFO] [TickProfiler]:
The server appears to have lag spiked.
Last tick 0.21352655s ago."Server thread" RUNNABLE
at java.util.IdentityHashMap.get(Unknown Source)
at net.minecraftforge.registries.GameData$BlockCallbacks$1.get(GameData.java:348)
at net.minecraftforge.registries.GameData$BlockCallbacks$1.func_148747_b(GameData.java:343)
at ru.fewizz.neid.asm.Hooks.blockStateContainer_getDataForNBT(Hooks.java:74)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75820_a(AnvilChunkLoader.java:324)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75816_a(AnvilChunkLoader.java:173)
at net.minecraft.world.gen.ChunkProviderServer.func_73242_b(ChunkProviderServer.java:202)
at net.minecraft.world.gen.ChunkProviderServer.func_186027_a(ChunkProviderServer.java:230)
at net.minecraft.world.WorldServer.func_73044_a(WorldServer.java:1007)
at net.minecraft.server.MinecraftServer.func_71267_a(MinecraftServer.java:408)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:691)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Unknown Source)

[10:09:02] [LagSpikeProfiler/INFO] [TickProfiler]:
The server appears to have lag spiked.
Last tick 0.2224888s ago."Server thread" RUNNABLE
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at net.minecraft.world.storage.SaveHandler.func_75762_c(SaveHandler.java:90)
at net.minecraft.world.World.func_72906_B(World.java:3480)
at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75816_a(AnvilChunkLoader.java:164)
at net.minecraft.world.gen.ChunkProviderServer.func_73242_b(ChunkProviderServer.java:202)
at net.minecraft.world.gen.ChunkProviderServer.func_186027_a(ChunkProviderServer.java:230)
at net.minecraft.world.WorldServer.func_73044_a(WorldServer.java:1007)
at net.minecraft.server.MinecraftServer.func_71267_a(MinecraftServer.java:408)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:691)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Unknown Source)


can't really make any heads or tails of it.
Any idea what might be causing this?
 
Last edited:
So I would suggest trying LagGoggles instead. Install it on both the server and your client. It will give you a better idea what is causing the TPS lag.
 
We have a similar issue on a revelations server. Didn't notice it early on but it got more and more apparent as time progressed

Server specs:
Windows server 2016 Datacenter 64bit
Modified revelation 2.2.0
Minecraft 1.12.2
i5 8600k, 16GB ram, 960 evo ssd.

It would occur every 45 seconds almost on the dot.
Using /bcore_ticktime brings up a graph of the time it takes to process a server tick. It would spike very high, sometimes off the screen, every 45 seconds.
using ae2 chunklogger (has to be typed in the server console iirc) will output info every time a chunk is loaded or unloaded.
Using these together we concluded that every 45 seconds a ton of chunks would unload and then immediately reload. The spike came when they unloaded, then slight lag as they came back.

I'm not sure if this is the same problem as you're having but it seems to be the same symptoms.

Also sorry to say we found no remedy for this. If all you're seeing is the message in console you can pretty much just ignore it. Eventually you'll notice it in game but it doesn't necessarily make the game unplayable
 
sorry for my English. I have the same problem too. practically the server generates a strange world. high mountains with water and lava. the high ping is because the lava and the water come down, and it is full of all this. I can not generate a normal world. I also tried to copy and paste a world in single player but there is some compatibility problem. How can we solve?