Inactive [FIX/ADMN] NoLagg v1.88.1 - Prevent common lag causes on your server [2338]

Discussion in 'Inactive/Unsupported Plugins' started by bergerkiller, Sep 17, 2011.

  1. Offline

    bergerkiller

    I had already made this plugin before after having a major lag issue. (lots of torches being filled, turned into items, lag for 20 minutes) It also works for 1060.

    Some feature ideas are taken over from PerformanceTweaks by @LexManos so some credit goes to him. Code, however, written from scratch by me. :)

    Important:

    If you get a warning message [NoLagg TLN] followed up with a stack trace in the log, this has to do with the main thread not having responded within 10 seconds. When a plugin takes more than this time to enable, it will show that. The warning is NOT an error and is no bug, and not a bug related to NoLagg. To disable this feature, disable 'threadlocknotifier' in the config.yml. This feature is mainly intended to notify you what plugin is causing the server to freeze, may it ever happen. It is used to debug plugins in general, as they may get stuck for whatever reason.

    NoLagg's features in a nutshell

    Description

    Prevent lag caused by many items

    Every time an item gets spawned, it is buffered per chunk. For example, you spawn 30 items using Q and the maximum allowed items per chunk is 20, then the 10 remaining items are not spawned. They are spawned as soon the item count in this chunk is < 20 again.

    Read more...

    Form item stacks - fully automatically

    Whenever two or more (configurable) items or experience orbs get near each other, they form a single stack of that item type. If someone drops 64 dirt blocks on the ground using Q, it will show a single item of 64 dirt instead.

    Read more...

    Prevent lag caused by TNT

    This plugin takes over tnt ignition caused by explosions. When exploding stacks of tnt, it does not rush all tnts into a single tick, but detonate them nicely in sync. This results in pretty awesome fireworks. :)

    Read more...

    Prevent lag caused by lighting glitches

    Whenever a new chunk is generated, it's lighting information is generated and all nearby players receive the updated chunk data. If the auto-method fails, you can use /nolagg fix to do it manually. This fixing fixes, for example, dark spots in and around caves lagging the client.

    Read more...

    Set entity spawn limits

    You can set a spawn limit on virtually every entity in the game. From mobs to items to TNT. Only thing being excluded is Players, since I can't simply kick someone 'like that'. :)
    Note: It removes already spawned entities too. So, if you want to keep your animals alive, don't set mob or animal limits, or it will possibly clear your farm animals. (or you can disable the spawn limiter all together)

    I recommend finding an alternative plugin for this instead. Removing entities after they are spawned causes more lag than it prevents!

    Global auto-saver

    Since asynchronous chunk saving is now implemented internally, it is no longer a problem to save entire worlds frequently. You can set auto-save intervals in the configuration. If used with an interval higher than 400 ticks (20 seconds) it will use a scheduled task instead of the internal saver to prevent chunks never getting saved. Another benefit is that player information is also auto-saved, preventing your players losing their inventory state.

    New chunk sending mechanics

    Instead of loading chunks all around the player, the player direction is used to load the visible chunks first. This means that players can expect chunks in front of them to load quickly, while chunks on the sides take a bit longer to appear. When the player looks into another direction, the direction changes and thus the new visible chunks get loaded first. Only if all chunks ahead of the player are loaded, chunks around the player are sent. This all can be configured using a simple minimum and maximum sending rate.

    Read more...

    Examining the server tick rate

    If you encounter very low tick rates and you want to find out what plugin is causing it, you can use the examine component to find it out. It comes with a graphic viewer, which makes bug tracking the easiest thing ever.

    Read more...

    Prevent cross-thread access for events

    As it seems, some plugins don't follow the rules and use Bukkit methods in another thread. This plugin will notify you and cancel if possible whenever this happens so other plugins understand their mistake. If you encounter a lot of spam in the console, first check the stack trace for the plugin that caused the error. Report this error to the author or remove the plugin, if you have questions you are free to ask.



    Configuration (on BukkitDev)

    Commands and Permissions (on BukkitDev)

    Synchronized code accessed by another thread? (BukkitDev)



    Media



    Video by brandcool86


    FAQ

    - Help I experience missing chunks
    If you are using Spout, don't use Reloads. This is also the reason why Spout added a warning when a player tries to reload the server. Not using Spout, then it's a bug which you can report.

    - Can this plugin be used with PTweaks
    (this message was really old...) Yes, they are compatible, but if certain features overlap, make sure you disable these features in either plugin.

    - I get a warning about the async auto save and interval. Wat do?
    Change the autoSaveInterval value in the configuration to a value higher than 400, like 600. The warning is to prevent endless autosaves to occur, clogging up CPU.

    - I have experienced CPU usage
    CPU usage is not the same as lag. NoLagg uses multiple (2-3) extra threads to prevent tick and network lag. If a lot has to be done, it does this quicker, but this takes more CPU obviously.

    - I have lag when using NoLagg
    See also the FAQ above. Explain what type of lag you have: tick lag, client lag, network lag and/or 'block placement' lag. You can use /nolagg monitor to check the tick rate. If this is normal (>15), then you have network lag. Client lag is when the FPS drops. Block placement lag is lag when the tick rate is normal and other network messages, like chat, are instant.

    - WorldEdit causes lag...
    YES because it is unsafe to take over the main thread while another plugin is having hold over it. I can try fixing this, but it could ultimately lead to some serious concurrency exceptions. Don't expect this to be implemented very soon...

    - Do spawn limits interfere with mob-spawning plugins like MobArena?
    No, it does not. It only limits mobs spawned by 'nature': all custom creature spawns are ignored throughout the run of the plugin. Only after you reload will it lose track of these entities and will it remove custom-spawned mobs. If you use MobArena, be sure nothing is going on when you reload the server.

    - Does item stacking interfere with Showcase or BleedingMobs?
    It supports Showcase and ShowcaseStandalone entirely. (showcased items are completely ignored at all times) The same applies to the 'particles' created by the BleedingMobs plugin. Know of a plugin where it stacks items which should not be stacked? Post the plugin name so I can add support. You are an owner and want to add support? Only having a function in your plugin to check if an item is 'ignored' is enough.

    - Can this plugin be used with Chunk Manager
    If you want to use the Chunk Manager with Nolagg, disable the chunk sending of Nolagg first. If you don't do that, this plugin will do that by itself and send a warning in the log. Of course, compare the results first. :)

    - What are the best settings if I have a lot of RAM memory?
    This plugin does not deal with reduced RAM memory. If I could, I would, but you simply can't reduce the amount of memory Java uses. This data is locked and secured, so I can't simply throw away bits of data or write and read data from/to disk. Any plugin claiming to reduce RAM usage on a server, is probably 'garbage collecting'. This fakes having less RAM usage by removing unused data, but Java does this by itself as well once it hits a certain limit. All these plugins will do is make the Garbage Collector run in overdrive, which will only kill your tick rate and/or CPU speeds. A bad thing.

    - I get a lot of 'Synchronized code accessed from another thread' errors
    Find out what plugin is acting up by inspecting the stack trace. If the plugin that causes this is inactive, all you can do is wait for a refurnished version or someone to fix it for you, or use an alternative plugin. If it's still under development, notify the author of this, it IS an error caused by that plugin. If you can't find out the cause, PM me or post in this thread.


    Before you begin writing a lag issue

    This is very important, just posting a 'it causuz lagz und shitz' won't do, won't help and I won't be able to help you any further either. Question is if I even want to help you, if you post such a message without anything worth looking at. Things to include in your message:
    - Errors in the log if possible
    - What CB version you use and what NoLagg version you use
    - When this lag occurs. Tick rate drop in general?
    - The configuration you used when running this plugin
    - What type of lag if applicable. Options are: tick lag, client lag, network lag (see above)

    Important links

    NoLagg Download page and others at Dev Bukkit
    View the source code of NoLagg at GitHub

    Use an archive extracting program (WinRar, WinZip) to open the archive.

    TODO-list:
    - Add option to disable physics when the tick delay becomes too high

    Changelog

    Show your appreciation for my plugins by donating
    [​IMG]
     
  2. Offline

    kahlilnc

    You didn't have to say that in the open like that O_O
     
  3. Offline

    Sayshal

    Psst. I'm using both.. Psst.
     
  4. Offline

    Lakanate

    I've been to so many modding communities, modders need to learn how to cooperate together, for the benefit of everyone, including themselves. And my question hasn't been answered...
     
    diannetea likes this.
  5. Offline

    Massimo1993

    @bergerller

    please readd thedownload link
     
  6. Offline

    Mrchasez

    a profoundly tender, passionate affection for another person.

    2.
    a feeling of warm personal attachment or deep affection, asfor a parent, child, or friend.

    3.
    sexual passion or desire.

    4.
    a person toward whom love is felt; beloved person;sweetheart.

    5.
    (used in direct address as a term of endearment, affection,or the like): [SIZE=13px][FONT=Verdana]Would[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]you[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]like[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]to[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]see[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]a[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]movie,[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]love?[/FONT][/SIZE]
    EXPAND

    –verb (used with object)
    15.
    to have love or affection for: [SIZE=13px][FONT=Verdana]All[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]her[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]pupils[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]love[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]her.[/FONT][/SIZE]

    16.
    to have a profoundly tender, passionate affection for(another person).

    17.
    to have a strong liking for; take great pleasure in: [SIZE=13px][FONT=Verdana]to[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]love[/FONT][/SIZE][SIZE=13px][FONT=Verdana]music.[/FONT][/SIZE]

    18.
    to need or require; benefit greatly from: [SIZE=13px][FONT=Verdana]Plants[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]love[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]sunlight.[/FONT][/SIZE]

    19.
    to embrace and kiss (someone), as a lover.
    EXPAND

    –verb (used without object)
    21.
    to have love or affection for another person; be in love.
    —Verb phrase
    22.
    love up, to hug and cuddle: She loves him up every chanceshe gets.
    —Idioms
    23.
    for love,
    [COLOR=rgb(51, 51, 51)][SIZE=13px][FONT=Verdana]a.[/FONT][/SIZE][/COLOR]
    [SIZE=13px][FONT=Verdana]out[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]of[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]affection[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]or[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]liking;[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]for[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]pleasure.[/FONT][/SIZE]

    [COLOR=rgb(51, 51, 51)][SIZE=13px][FONT=Verdana]b.[/FONT][/SIZE][/COLOR]
    [SIZE=13px][FONT=Verdana]without[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]compensation;[/FONT][/SIZE] [SIZE=13px][FONT=Verdana]gratuitously:[/FONT][/SIZE] [COLOR=rgb(51, 51, 51)][SIZE=13px][FONT=Verdana][COLOR=rgb(51, 51, 51)][SIZE=13px][FONT=Verdana]He[/FONT][/SIZE][/COLOR] [COLOR=rgb(51, 51, 51)][SIZE=13px][FONT=Verdana]took[/FONT][/SIZE][/COLOR] [COLOR=rgb(51, 51, 51)][SIZE=13px][FONT=Verdana]care[/FONT][/SIZE][/COLOR] [COLOR=rgb(51, 51, 51)][SIZE=13px][FONT=Verdana]of[/FONT][/SIZE][/COLOR] [COLOR=rgb(51, 51, 51)][SIZE=13px][FONT=Verdana]the[/FONT][/SIZE][/COLOR][COLOR=rgb(51, 51, 51)][SIZE=13px][FONT=Verdana]poor[/FONT][/SIZE][/COLOR] [COLOR=rgb(51, 51, 51)][SIZE=13px][FONT=Verdana]for[/FONT][/SIZE][/COLOR] [COLOR=rgb(51, 51, 51)][SIZE=13px][FONT=Verdana]love.[/FONT][/SIZE][/COLOR][/FONT][/SIZE][/COLOR]

    24.
    for the love of, in consideration of; for the sake of: For thelove of mercy, stop that noise.
     
  7. Offline

    ParadoXz

    download links not working? please quote this post when you have updated them :)
     
  8. Offline

    Xmillsa

  9. Offline

    ParadoXz

  10. Offline

    bergerkiller

    Woah what is going on here, afraid I got to rage. Lol jk.
    No, I stay on subject, unlike @Mrchasez lol.

    Also, fixed the links. Had to add a d after archived (it's my temp. fix for the Github upload issues)

    @ParadoXz thanks for helping others out with the link :)

    At the end of ptweaks message: I just love how @Mrchasez evades all my questions, wonder if and if ever, an answer will be given. I understand he doesn't want to pollute his already polluted thread...lol
    (Is it really that hard to say you continued Performance Tweaks and you are there to continue it, instead of saying you 'based it off' Performance Tweaks? Ugh.)
     
  11. Offline

    Mrchasez

    It is based off of.
    The main is already been changed more then enough.
    Slow and steady wins the race.
     
  12. Offline

    bergerkiller

    @Mrchasez To inform you: more got removed than got added. And you still haven't stated WHAT you changed, and this is what I have been asking you for so (damn) long a beard started to grow.
    (also good job on changing the convo location to here, but I don't mind)
     
  13. Offline

    Mrchasez

    You think i had some alternative motive to bring the covo here.
    Your really full of yourself. I don't need to state anything. When i have the time, Ill make updates.
    No need to reply to this, I won't even see it.
     
  14. Offline

    bergerkiller

    @Mrchasez Then I have read enough. I don't expect too much from you any more then.
     
  15. Offline

    kazeen

    So everything was going good with this plugin till we added the spawnlimits
    and now we have random hordes of cows spawning 40-50 of them in random areas
    CB1317
    Latest version of NoLagg
    Code:
    autoSaveInterval: 40
    explosionRate: 40
    chunkUnloadDelay: 100
    formItemStacks: true
    tntDetonationRate: 10
    chunkSendInterval: 5.0
    maxItemsPerChunk: 60
    orbScannerInterval: 60
    chunkSendRate: 1
    updateInterval: 20
    tntDetonationInterval: 1
    bufferItems: true
    bufferTNT: true
    useSpawnLimits: true
    useChunkUnloadDelay: true
    spawnlimits:
        default:
            squid: 1
            enderman: 1
            itemwood: 64
            tnt: 50
    
    Checked for mob spawners and their were not any present
    Any ideas
     
  16. Offline

    bergerkiller

    @kazeen It is obvious that other mob types spawn more when one type is disabled, but it is odd that it spawns lots of cows then...got the feeling I end up writing a complete spawn scheduler to set the actual value of the mobs to spawn...

    Does this issue go away if you allow all squids to exist? My guess is that the cows are the result of the 'being less present' of the endermans and squids.

    Try setting fixed defaults for all mobs, including cows, and see if it works out.
     
  17. Offline

    kazeen

    Did this seems to be working now
    Atleast i dont see any cow invasion yet

    Does this work with mobarena without any major issue due to spawn limits?
     
  18. Offline

    bergerkiller

    @kazeen works as long you don't use /reload, because it then auto-clears the mobs. (it loses the ignore lists when the plugin disabled)
     
  19. Offline

    Colm

    do you think you could do in the /nolagg clear add arrows in it because nolagg does not count the fired arrows? is it possible if not don't worry.
     
  20. Offline

    bergerkiller

    @Colm You can use arrow in the spawn limits too, to set the maximum allowed arrows in a world. I can add it in the clear command too, isn't too hard.
     
  21. Offline

    nicholasntp

    This plugin is amazing. Now I can make creepers fear me!
     
  22. Offline

    ray0911

    I dont know you and I fear you :p anyways this is a great plugin. But still having problems with disabling the spawnlimiter. *sigh* i'll update to the newest verison and if i still have problems i will upload my configuration
     
  23. Offline

    nicholasntp

    lol
     
  24. Offline

    Live or Die

    i <3 you XD
    thank you very much!
     
  25. Offline

    Perling

    Nolagg and PTweaks its no conflicts?

    i mean can run both on the same time ?
     
  26. Offline

    narrowtux

    I was informed that NoLagg causes dupe issues with showcase when the formStacks option is turned on. When players drop items on the showcases and they are the same type, they form a stack and thus my pickup prevention doesn't work any more.
     
  27. Offline

    AngelFire

    ty realy worked!!! here u go [cake]
     
  28. Offline

    bergerkiller

    Update to 1.36 to use the new File configuration. If you use CB 1240 or below, don't update, it will probably fail then.
    In /06 I added support for Showcase :)
     
    kahlilnc likes this.
  29. Offline

    Satchel_Adair

    I am unable to find the jar file as well. I really want this plugin, not really sure why the jar wasn't in the nolagg folder i downloaded. Can you just post the link to it in your response? Thanks.
     
  30. Offline

    bergerkiller

    @Satchel_Adair It now links to the Downloads page itself, is easier to maintain. Click one of the download links on that page and open it. It will open the .zip archive. In this archive you will find NoLagg.jar, or Nolagg, depends on what your OS displays. Simply copy and paste that into plugins.
     
  31. Offline

    ray0911

    I'm using CB1317. I update from Nolagg 1.32 to Nolagg 1.36 and now it keeps reseting my config file and wiping the spawnlimiter information. What should I do?
     

Share This Page