Lag Issue

Discussion in 'Bukkit Help' started by brendanhf, Nov 4, 2012.

Thread Status:
Not open for further replies.
  1. Offline


    Hey guys,
    Recently, I upgraded to a new dedicated server for my MC server due to a few lag issues that we were having. I thought that it was an issue with our CPU not being strong enough so I upgraded server the server a new server with the following specs.

    Intel Xeon E3-1270v2 Ivy Bridge Processor
    16GB DDR3 Ram
    2x 500GB SATA-II HDD
    100Mbit Port

    After migrating over to our new server, it seems that the server works great although as more players and time comes through, the TPS gets low. At around 40-60 players, the TPS goes down to about 10. As I believe that the server is more than strong enough now, I cannot find the issue. I tried to figure which/if a plugin was causing the issue, but I cannot figure which is. I would expect that the server should be able to handle 60 players + more easily. If somebody can help me with this, I would greatly appreciate it. This is my list of plugins.

    Blacksmith (For citizens)

    Again, I would appreciate any help I can get in this issues.

    Best regards,
  2. Offline


    My guess would be multiverse and citizens. Multiverse because it creates extra maps that need to be loaded and citizens because as far as I am aware the way it works is each NPC you create makes a new entity on the server - meaning that you may have 10 players online but you could have 150 NPC's which would mean that are 160 people online. I could be wrong on the second one but that is how I see it working.
  3. Offline


    I have LOADS of Citizens, with all sorts of different quests, and I'm cruising at a smooth 20TPS (with the occasional 19.3), and I have 7 loaded worlds. Running on a 24Go server, but only 6Go allocated to MC. So I'm not entirely sure Multiverse or Citizens is the issue.
    What command are you using to run craftbukkit.jar ? (eg. what java flags ?)
  4. Offline


    Hello, using the following command to run craftbukkit
    java -Xmx12G -Xms12G -jar /root/craft/craftbukkit-1.4.2-R0.2.jar
  5. Offline


    It could be not enough ram allocated in the startup.bat file as suggested. The default is only 1GB.
  6. Offline


    I am running CentOS 64 Bit, not windows. About the ram, I also checked the ram usage and it seems that all the ram that I specified (12GB) was being allocated to Minecraft. Anybody else have any idea? Thank you.

    Best regards,
  7. Offline


    In my opinion this lag is simply caused by 1.4... I run two servers, 25+ people online both all day, and ever since I updated my server stability has been the same of my netbook... slow and laggy.

    I have an E3-1290v2, 32GB RAM, on a 1Gbps connection -- no problems. My servers freeze up, CPU usage goes to 0%, then after 5-10~ seconds it goes back to normal again. The whole time it's "frozen", my outbound bandwidth usage is around 20Mbit the whole time, when the server un-freezes, it goes back down to 1-3mbit. Seems like a networking issue with Minecraft/Craftbukkit to me, but who knows, I'm not a developer.

    I just know, we ran the same server, same plugins, same worlds completely fine in 1.3.2.
  8. Offline


    Yea, I thought that may of been an issue also, but I checked a few other servers and they are running at 1.4.2 at 20.0 TPS all the time. :( I hope somebody knows a solution to this. Thanks

  9. Offline


    Try using the server VM by adding -server to your VM flags.
  10. Offline


    I just tried adding it. Lets see how it goes. Is there any other possible reasons say with the plugins that you think would cause this issue?
  11. Offline


    I'm not too familiar with your plugins although I'm aware that ChestShop is known to block your server when players spam right-click signs.
  12. Offline


    Yea, it happens if you used iConomy because iConomy is single threaded which is the reason I switched to BOSEconomy. I will also post results from the -server flag in java when i have all players on tomorrow.
  13. Offline


    Running a somewhat similar setup like you, no problems at all with CPU or lag. Running several maps with Multiverse has never been an issue. RAM and CPU are eaten by players and entities and their actions, not a few files on a hard disk representing different worlds. Assuming your hardware and connectivity really is what they told you it would be, you should test if nocheat, pvptimer or combattag add lag.
  14. Offline


    Hey just wanted to update and it seems that the server is running great now at 20 TPS when I added -server to the java flags. Ill report back here again if I have issues again :D Thanks!
  15. Offline


    Great for you. The Java server VM optimizes your application while it's running; this process is known as Java HotSpot. With HotSpot, many times you'll find your Java code running as fast if not faster than native code.
  16. Offline



    I'm having the same issue. Tried the "-server" command too, but that didn't help me at all.

    Intel Xeon 5420 @ 2.5GHz
    16GB RAM
    500GB HDD
    100Mbps Port
    10TB Bandwidth
    CentOS 5.8
    McMyAdmin Professional

    Running latest 1.4.2 beta build too.

    It's just like brendanhf describes..

    We are experiencing that CPU usage suddenly drops to 0%, stays there for a couple of secs, and then comes up to normal usage again.

    This works for about 1-2 minutes, then it suddenly drops to 0% and stays there for 5-10 minutes, and then goes back to normal.
  17. Offline


    Yea, it seems that im having the same issue again when it reaches about 55 players. Anybody have any idea? THanks.
  18. Offline


    It looks like this lag issue has something to do with the java..
    I'm using now TCAdmin, and the guys from TCAdmin said this:

    "That's the CPU usage of the java process."
  19. Offline


    I just upgraded my java to java 7.0 hoping that it would help. Anybody else have any idea? Thanks
  20. Citizens + NoCheatPlus <- also use CompatNoCheatPlus - do any warnings for NPCs failing checks show up? All warnings cost performance...
  21. Offline


    @brendanhf I would say you have a bad plugin in your setup, you can examine with NoLagg to find out which one is causing lag spikes:

    - WorldGuard and EssentailsProtect: WorldGuard does the same thing + region management. So you can remove EssentialsProtect if you don't use it.
    - Essentials and BOSEconomy: Essentials has also a inbuilt economy which you can use if you want.
    - Essentilas and VanishNoPacket: Essentials has also a /vanish command so if you just need a simple vanish then you can drop VanishNoPacket. If you need more advanced vanishing then you can keep it.
    - EssentialsChat and ChatManager: Both do the same thing, essentials has just more features like local chat n stuff. So you can drop one of them

    Plugin I suspect to cause lag: ShowcaseStandalone

    And of course use CompatNoCheatPlus as asofold says, it should help a lot with your NPCs.
  22. Offline


    Running on 1.4 without any problems, 90player on atm.

    Here's my script.

    java -Xmx10524M -XX:ParallelGCThreads=8 -server -Xincgc -nogui -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+AggressiveOpts -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Xnoclassgc -XX:UseSSE=3 -XX:PermSize=128m -XX:LargePageSizeInBytes=4m -jar craftbukkit.jar
  23. Same issue as OP, similar plugins (confirmed plugins are not the issue), similar server spec, however there appears to be chunk loading lag, alot higher values than 1.3.
    Question to the OP - fresh map or 1.3.2 map? Our issue seems to be map related. Our map works fine on 1.3, lags on 1.4.2.
  24. Offline


    I am facing the same problem, but not with the CPU Usage becoming 0, but with very very very high memory usage. Sometimes it can spike up to 7.5GB Ram when my server is only 8GB Ram.

    Anyone have any idea how to lower down the memory usage? In v1.3 the server only used lesss than 1gb ram
  25. Offline


    Have you trued running with the -Xincgc flag for the VM?
  26. Offline


    Hello, I just tried adding the flag and ill report back in a few hours with the results :) Thanks!

    Hello, I tried removing the ShowcastStandalone and I added nolagg. I also added xincgc to the java flags, but it seems that I am still going below 20 TPS with im at around 50 people. THese were the nolagg results. Any idea?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 29, 2016
  27. Offline


    My guess is that it's just the sheer amount of plugins. Although, with those specs it shouldn't be a problem. :confused:
    I remember when I got up to about 25 or 30 plugins, it started to perform slowly with no explanation until I just started to wipe the plugins.
  28. Offline


    Yea, i mean, they arent really plugins that use much resources so I dont know whats wrong. Anybody else can help? I would appreciated it! Thanks :D
  29. Offline


    ChunkLoading caused a insane lag spike. The problem is that I don't know why.. Can you run a selfcheck on the HDD and RAM?
  30. Offline


    I'm getting the same crap...When new people joins it seems that the chunk loading is causing tons of lag. Specs:
    i7 3770k quad core (4.2Mhz overclocked)
    16gb DDR3 RAM
    Corsair 64gb SSD (holds the server)
    i277 extreme motherboard
    20mb upload speed
    25mb download speed
    Plugins arn't causing errors...just the chunk loading seems to be slowing down the server BIGTIME. I go from the normal 10-25% cpu usage to 99% when new chunks need loading.
Thread Status:
Not open for further replies.

Share This Page