Lag with WorldGuard/WorldEdit #703


  • Defect
  • Started
Open
Assigned to jesster1234
  • _ForgeUser8340299 created this issue Jan 9, 2016

    The issue I am having is an issue which involves the usage of of a fairly large users file & WorldGuard/Edit. Groupmanager also has this problem but PEX does not, unfortunately PEX is not an option due to other flaws. Using bPermissions causes WorldGuard/WorldEdit to have much higher usage resource than they should.

    Which steps will reproduce this problem?:
    1) Load up any build of WorldGuard/WorldEdit
    2) Load up bPermissions with around 2k users
    3) Run a timings and observe high usage from checking permissions when a player mines/interacts with blocks.

    Here is a timings report of just one user mining with bPermissions: http://timings.aikar.co/?url=14455441
    Without bPermissions the usage is minimal from WorldGuard/Edit.
    A worldguard profile report shows the cause of the usage: http://i.imgur.com/PKvQofk.png
    here is a profile from GM but the results are the same with bPermissions: http://paste.enginehub.org/89iua.profile

    Which version of bPermissions are you using?: 2.12 Beta 6, also tried many older versions

    Which version of CraftBukkit?: CraftBukkit version git-Spigot-db6de12-07c3001 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT), also tried older versions

    Which OS?: Cent OS 6

    Any other information we may need (plugins, configs, etc):

    Multiple versions of WG/WE have been tried along with cleared configs.

    Config: http://pastebin.com/ymDMrgQB
    Groups: http://pastebin.com/bANHykHu
    Users: http://pastebin.com/DBD15iz2 (400KB may lag browser)

    Help with this issue would be very appreciated, we recently switched the PEX and that did not have the issue but it has other issues, groupmanager has been discontinued and I'm getting tired of lag issues as its plagued me for months. Willing to donate to the project if it can possibly be fixed.

  • _ForgeUser8340299 added the tags New Defect Jan 9, 2016
  • _ForgeUser8340299 posted a comment Jan 9, 2016

    I should clarify the timings I posted is from one user mining, a server of 20-40 people causes it to hit up to 50% of server resources.

  • jesster1234 posted a comment Jan 10, 2016

    Hmm, I appear to be able to reproduce the issue! Investigating the cause now.

  • jesster1234 unassigned issue from _ForgeUser13166213 Jan 10, 2016
  • jesster1234 self-assigned this issue Jan 10, 2016
  • jesster1234 posted a comment Jan 10, 2016

    @LaughNgamez: Go

    Alright, can you try the latest jenkins build?> http://rymatemc.co.uk/jenkins/job/bPermissions/11/

    It's changed how bPermissions checks whether a player has a permissions, and might help your issue. Judging by some timings, I've reduced the average time from 14.05ms to 3.75ms on my development server

  • jesster1234 removed a tag New Jan 10, 2016
  • jesster1234 added a tag Started Jan 10, 2016
  • jesster1234 posted a comment Jan 11, 2016

    This latest build seems to have improved a few issues - I've been using various java profilers to try and determine exactly where the issue lies. I've not had an awful amount of luck so far, however there are some improvements. Try it and see! http://rymatemc.co.uk/jenkins/job/bPermissions/17/


To post a comment, please login or register a new account.