Lag on Minetime Creative; Timings

Discussion in 'Performance Tweaking' started by CCT, Oct 4, 2013.

  1. CCT

    CCT
    Supporter

    Hello,
    Recently, my creative server has been a bit of a lag fest. I recorded timings, but I'm not sure what to make of them. Anyone know what could be causing the high "Full Server Tick" percentage? Thanks :)

     
  2. What kind of hardware are you running this on? Avg. of 244 players seems quite high for a single instance.
     
  3. Recolance

    Supporter

    My creative server goes to about 11 TPS at 300 players, although I don't notice any 'lag'. What are the main plugins running your creative? PlotMe I assume?
     
  4. CCT

    CCT
    Supporter

    E3 1270 V3 and more than enough RAM.
     
  5. CCT

    CCT
    Supporter

    Plotme, yeah.
     
  6. tips:
    - limit max entities in a chunk
    - A player can fill 50 chests with items and use nuker to break them all at once, causes huge lag
    - Not really sure what NoCheatPlus will help you with?
    - Redstone lag machine
     
  7. Dmck2b

    Services Staff


    Nukers, speed hacks, chat spammers, *insert nearly every other feature of NCP here as they are almost always 10x worse on creative*.
     
  8. I don't use it and I work out okay
     
    • Agree Agree x 1
  9. XZo

    XZo

    A /worldguard report may be useful.
     
    • Useful Useful x 1
  10. CCT

    CCT
    Supporter

    How do you go about limiting max entities in a chunk?
     
  11. For my Creative server I literally just wrote a 4kb plugin that cancels any type of entity spawn event. This has absolutely no affect on gameplay since items drops aren't important, xp isn't important, and mobs aren't important. No entities and no lag :)
     
    • Like Like x 1
    • Agree Agree x 1
    • Disagree Disagree x 1
  12. A plugin
     
  13. CCT

    CCT
    Supporter

    Oh, are you selling it?
     
  14. Wana buy it?
     
  15. Selling it...? It took me like 5 minutes, hardly worth selling. Here is a link: https://dl.dropboxusercontent.com/u/38557600/MegaEntityBlock.jar

    In dire fear that I'm going to blow up your server? Source is only one class:
    Code (Text):
    package org.mcmegacraft.MegaEntityBlock;
     
    import org.bukkit.Bukkit;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.EventPriority;
    import org.bukkit.event.Listener;
    import org.bukkit.event.entity.CreatureSpawnEvent;
    import org.bukkit.event.entity.ItemSpawnEvent;
    import org.bukkit.plugin.java.JavaPlugin;
     
     
    public class MegaEntityBlock extends JavaPlugin implements Listener {
       
        @Override
        public void onEnable() {
            Bukkit.getPluginManager().registerEvents(this, this);
        }
       
        @Override
        public void onDisable() {
           
        }
       
        @EventHandler(priority = EventPriority.HIGH)
        public void onSpawnEvent(ItemSpawnEvent event) {
            event.setCancelled(true);
        }
       
        @EventHandler(priority = EventPriority.HIGH)
        public void onMobSpawnEvent(CreatureSpawnEvent event) {
            event.setCancelled(true);
        }
     
    }
     
    • Like Like x 2
    • Disagree Disagree x 2
    • Agree Agree x 1
  16. Talking about tile limiting
    myfault XD
     
  17. Well, despite your talking about tile entities, it seems blocking normal entities would also boost his TPS since entity tick is about 15ms and having entities on a creative server seems relatively useless.

    Furthermore, I did some research into tile entities. They don't seem like something you can limit, given that they are extra data stored within a block. They shouldn't even be causing much lag (unless your running a modded server), however during research this caught my eye:

    Listed under what is stored in tile entities...
    "Blocks being moved by pistons, to store the offset of block, direction of movement, and ID of moving block."

    The root of your problem might be exactly what kyle said, redstone lag machines that use pistons.

    Edit: Source: http://minecraft.gamepedia.com/Tile_entity
     
    • Like Like x 1
    • Disagree Disagree x 1
  18. KrypticDot

    How mature of you to rate all of my posts disagree without any logical reason. I did my best to assist in solving the problem stated in the original post. If you have a problem with what I said, please come out and say it.

    Note: I'm not really offended by this, just confused about how someone could disagree with these posts in a logical sense.
     
    • Agree Agree x 2
    • Like Like x 1
    • Disagree Disagree x 1
  19. Don't use this unless you know the potential consequences. Simply, that's NOT how you are supposed to cancel mob spawns. Remember, never use random code without knowing what it actually does:
    bergerkiller says:
    http://forums.bukkit.org/threads/important-information-regarding-cancelling-creature-spawns.147007/
     
    #19 EDawg878, Oct 5, 2013
    Last edited: Oct 5, 2013
    • Agree Agree x 1
  20. PhanaticD

    Patron

    tileentitty tick its maybe a ton of hoppers or such