Problem FTB Direwolf 20 1.6.4 Server Lag

Discussion in 'Server Tech Support' started by laserball31, Dec 22, 2013.

  1. Skullywag

    Skullywag New Member

    youre getting tick rate lag but Opis doesnt show anything? that seems...odd. Opis doesnt profile a few things that can cause lag mobs being one, try running a kill-all command (butcher if you have it) see if its a mobs pathing stuck, it happens sometimes in MCPC+.
     
  2. laserball31

    laserball31 New Member

    Its not tick rate lag, it's a sudden drop to 0 for like 15 seconds
     
  3. Connor Gavitt

    Connor Gavitt New Member

    What is going on during that 15 second drop, what's in console. Things just don't pause for a few seconds without cause.
     
  4. laserball31

    laserball31 New Member

    Nothing shows on console. That is why I'm confused.
     
  5. Connor Gavitt

    Connor Gavitt New Member

    Can you post the forge logs, before during and after the lag spikes. They may revil more info.
     
  6. Francis Baster

    Francis Baster New Member

    Hadn't heard of WarmRoast before, looks very useful for the deobfuscation features thanks.
     
    Last edited: Dec 28, 2013
  7. Francis Baster

    Francis Baster New Member

    If you are getting a lag spike with a 21000ms tick time, then the program execution is most likely getting held up in some method. CPU profiling may tell which method it is, so I wouldn't be so fast to dismiss it.

    I see you mentioned that auto save is turned off. Have you checked if this problem persists when autosave is turned on with regular /save-all commands, say every 10 minutes? I've seen lag spikes occur as a result of massive write queues building up in memory due to map saving being disabled. This occurred in spite of the fact that Java still had plenty of spare heap space available.
     
    Last edited: Dec 28, 2013
  8. killer313201

    killer313201 New Member

  9. Francis Baster

    Francis Baster New Member

    I would be surprised if MCPC+ is causing this problem. As Jadedcat points out, there are lots of ways that a Bukkit -> Forge port could go terribly wrong. The fact that MCPC+ causes so few problems really is testament to the skill of the coders who write it (cpw?).
     
  10. Kinluki

    Kinluki New Member

    Maybe a weird one, but one of the things which can give a terrible lag in 1.6.x servers are zombies. This is a known vanilla bug. It has to do with their ai and trying to calculate a path to someone if they can't reach it (be it a player or a villager). Don't know if it is the issue here, but who knows..
     
  11. Sphinx2k

    Sphinx2k New Member

    I like to add myself to the list of people with this problem.
    Only thing i found in the forgeModloader.log file is this part:
    Code:
    2014-01-02 09:16:55 [INFO] [STDERR] java.util.ConcurrentModificationException
    2014-01-02 09:16:55 [INFO] [STDERR]    at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
    2014-01-02 09:16:55 [INFO] [STDERR]    at java.util.HashMap$ValueIterator.next(Unknown Source)
    2014-01-02 09:16:55 [INFO] [STDERR]    at net.minecraft.nbt.NBTTagCompound.func_74734_a(SourceFile:25)
    2014-01-02 09:16:55 [INFO] [STDERR]    at net.minecraft.nbt.NBTBase.func_74731_a(SourceFile:119)
    2014-01-02 09:16:55 [INFO] [STDERR]    at net.minecraft.nbt.CompressedStreamTools.func_74800_a(CompressedStreamTools.java:140)
    2014-01-02 09:16:55 [INFO] [STDERR]    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75821_a(AnvilChunkLoader.java:198)
    2014-01-02 09:16:55 [INFO] [STDERR]    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75814_c(AnvilChunkLoader.java:184)
    2014-01-02 09:16:55 [INFO] [STDERR]    at net.minecraft.world.storage.ThreadedFileIOBase.func_75736_b(SourceFile:30)
    2014-01-02 09:16:55 [INFO] [STDERR]    at net.minecraft.world.storage.ThreadedFileIOBase.run(SourceFile:23)
    2014-01-02 09:16:55 [INFO] [STDERR]    at java.lang.Thread.run(Unknown Source)
    2014-01-02 09:17:23 [INFO] [STDERR] java.util.ConcurrentModificationException
    2014-01-02 09:17:23 [INFO] [STDERR]    at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
    2014-01-02 09:17:23 [INFO] [STDERR]    at java.util.HashMap$ValueIterator.next(Unknown Source)
    2014-01-02 09:17:23 [INFO] [STDERR]    at net.minecraft.nbt.NBTTagCompound.func_74734_a(SourceFile:25)
    2014-01-02 09:17:23 [INFO] [STDERR]    at net.minecraft.nbt.NBTBase.func_74731_a(SourceFile:119)
    2014-01-02 09:17:23 [INFO] [STDERR]    at net.minecraft.nbt.CompressedStreamTools.func_74800_a(CompressedStreamTools.java:140)
    2014-01-02 09:17:23 [INFO] [STDERR]    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75821_a(AnvilChunkLoader.java:198)
    2014-01-02 09:17:23 [INFO] [STDERR]    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75814_c(AnvilChunkLoader.java:184)
    2014-01-02 09:17:23 [INFO] [STDERR]    at net.minecraft.world.storage.ThreadedFileIOBase.func_75736_b(SourceFile:30)
    2014-01-02 09:17:23 [INFO] [STDERR]    at net.minecraft.world.storage.ThreadedFileIOBase.run(SourceFile:23)
    2014-01-02 09:17:23 [INFO] [STDERR]    at java.lang.Thread.run(Unknown Source)
    2014-01-02 09:17:52 [INFO] [STDERR] java.util.ConcurrentModificationException
    2014-01-02 09:17:52 [INFO] [STDERR]    at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
    2014-01-02 09:17:52 [INFO] [STDERR]    at java.util.HashMap$ValueIterator.next(Unknown Source)
    2014-01-02 09:17:52 [INFO] [STDERR]    at net.minecraft.nbt.NBTTagCompound.func_74734_a(SourceFile:25)
    2014-01-02 09:17:52 [INFO] [STDERR]    at net.minecraft.nbt.NBTBase.func_74731_a(SourceFile:119)
    2014-01-02 09:17:52 [INFO] [STDERR]    at net.minecraft.nbt.CompressedStreamTools.func_74800_a(CompressedStreamTools.java:140)
    2014-01-02 09:17:52 [INFO] [STDERR]    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75821_a(AnvilChunkLoader.java:198)
    2014-01-02 09:17:52 [INFO] [STDERR]    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75814_c(AnvilChunkLoader.java:184)
    2014-01-02 09:17:52 [INFO] [STDERR]    at net.minecraft.world.storage.ThreadedFileIOBase.func_75736_b(SourceFile:30)
    2014-01-02 09:17:52 [INFO] [STDERR]    at net.minecraft.world.storage.ThreadedFileIOBase.run(SourceFile:23)
    2014-01-02 09:17:52 [INFO] [STDERR]    at java.lang.Thread.run(Unknown Source)
    2014-01-02 09:19:12 [INFO] [STDERR] java.util.ConcurrentModificationException
    2014-01-02 09:19:12 [INFO] [STDERR]    at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
    2014-01-02 09:19:12 [INFO] [STDERR]    at java.util.HashMap$ValueIterator.next(Unknown Source)
    2014-01-02 09:19:12 [INFO] [STDERR]    at net.minecraft.nbt.NBTTagCompound.func_74734_a(SourceFile:25)
    2014-01-02 09:19:12 [INFO] [STDERR]    at net.minecraft.nbt.NBTBase.func_74731_a(SourceFile:119)
    2014-01-02 09:19:12 [INFO] [STDERR]    at net.minecraft.nbt.CompressedStreamTools.func_74800_a(CompressedStreamTools.java:140)
    2014-01-02 09:19:12 [INFO] [STDERR]    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75821_a(AnvilChunkLoader.java:198)
    2014-01-02 09:19:12 [INFO] [STDERR]    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75814_c(AnvilChunkLoader.java:184)
    2014-01-02 09:19:12 [INFO] [STDERR]    at net.minecraft.world.storage.ThreadedFileIOBase.func_75736_b(SourceFile:30)
    2014-01-02 09:19:12 [INFO] [STDERR]    at net.minecraft.world.storage.ThreadedFileIOBase.run(SourceFile:23)
    2014-01-02 09:19:12 [INFO] [STDERR]    at java.lang.Thread.run(Unknown Source)
    The Server we own is running normal for over a year with 1.4.6 and 1.5 packs (with full members on the server tick time of 37ms). Now with the Direwolf20 1.6 Pack it is lagging like crazy when more people are online.
    Now on the Server -> If i'am the only person on the server the tick time is around 19ms. With 2 it goes up to around ~40ms with spikes over 50ms. With 3 we are at 50 to 60ms with spikes to 70ms. 4 or more the spikes hit sometimes 150ms per tick.
    It seems every player adds around ~20ms of tick time.

    Last weekend i tried to find the cause of this.
    I made a local copy of the server from the online host to my machine. Better tick rate on my machine then the host around 18ms. then without doing anything spike to around ~40ms.
    OK created a fresh map -> 15ms with spikes to ~30ms.
    Removed mod by mod and created fresh maps every time. the tick rate dropped as i removed more and more mods. Spikes happen every 2 minutes (arround 2 - 3 Times the normal tick rate). Then with every mod removed (only forge remained) ~4ms spikes to 9ms.

    Opis did not show anything an our Server (fresh map has not much to show). The CPU during times of lag is at 100%, RAM is OK all the time.

    So to round it up, i could not find the one mod doing this. Then i thought maybe to mob AI is causing this. Set the Server to peaceful tick rate and spikes don't change much.
    I have absolutly no idea what i can do to make it more playable when more people are online at the same time. Hopefully someone can find an answer.
     
  12. Connor Gavitt

    Connor Gavitt New Member

    This shows up in my log during the lag on my horizon server but I have tested it on direworlf and it still happens so it could be a mcpc issue, http://pastebin.com/gGrZSUMT
     
  13. Sphinx2k

    Sphinx2k New Member

    I don't have mcpc on my server so for me it could not be the cause of the lag.
     
  14. MKellerBR

    MKellerBR New Member

  15. Francis Baster

    Francis Baster New Member

    If this is happening on your server with no mods installed, can you try running some CPU or memory sampling to see what might be causing the issue? Tools such as JVisualVM or WarmRoast could help.

    If the problem exists with just plain Forge then hopefully it will be fixed with their next version. But we need to make sure that the Forge devs are aware of this issue.
     
  16. blood

    blood New Member

    The lag during world saves deals with how Mojang added new structure data for compatibility with 1.7 world updates. Basically, world generation logic has changed in 1.7 and in order to make sure 1.6 worlds can update to 1.7, Mojang had to save additional info to structures. However, one type of structure 'Mineshaft' is very common and as a result grows quite rapidly leading to performance issues during world saves. Unfortunately, there is no patch in forge to compensate for the issue at this time but if you really need this working on a forge server you can contact me in mcpc irc channel for a forge patch. If you are using MCPC+, we have already patched this in builds 188+ and will only require that you run StructureSaver plugin before updating to 1.7 to regenerate all your structure data. EvilSeph has made a good explaination here about the problem for those on MCPC+
    https://forums.bukkit.org/threads/psa-minecraft-1-7-update-possibly-losing-structures.186617/

    Hope this helps =)
     
    Last edited: Jan 4, 2014
    Francis Baster likes this.
  17. Sphinx2k

    Sphinx2k New Member

    Hmm i don't know if this is the cause of the problem.Some more thinks i found out:
    The Server logs shows a
    Can't keep up! Did the system time change, or is the server overloaded?
    Message exactly every 20 seconds in the log.
    I checked with /forge tps the tickrate.
    All summed up get me around 60ms but the overall line shows 80ms. So 20ms from nowhere? Opis shows only entitys and such things and is far from the 60ms if i sum this up.
    And if one player is in the deep dark, this dimension has a tick time of ~20ms alone without any tech stuff. (Setting server to peacefull doesn't change anything)

    Really frustrating.
     
  18. MKellerBR

    MKellerBR New Member

    Probably, in my case, the problem is the fact that the server uses shared resources on the Host, with other servers!
    Apparently the problem occurs when another server, or more than one, performs backups or forced bailouts of the worlds loaded and can be raised when one or more servers that share the same Physical Server Host, reboot the same time, because these moments there is a great CPU and IO HD.
    I noticed that in hosted Hosts SSD servers with this problem does not occur!
     
  19. MKellerBR

    MKellerBR New Member

    I using other host now... and works fine, without the error!!
    The problem is in the host! Disk IO or CPU overloaded!
     
  20. Curatho

    Curatho New Member

    so i play only whit a friend of my so we are whit 2 people. and it gives lag spikes.. some times only when running.. so its just randering to mutch ?? or do i need to get more ram for the surver?? useing serverstart.bat whit
    java -Xms2048m -Xmx2048m -XX:permSize=128m -jar FTBServer-1.6.4-965.jar nogui
    pause
     

Share This Page