hangs on PlayerChangedWorldEvent #259


  • Defect
  • Replied
Open
Assigned to spacemaniac
  • _ForgeUser7140418 created this issue May 25, 2013

    What steps will reproduce the problem?
    1. Let a semi-busy (10-20 players) server run for awhile (12-18 hours)
    2. Do any sort of teleport between worlds
    3. The server hangs for several seconds.

    What is the expected output? What do you see instead?
    I expect it to not hang so badly.

    What version of the product are you using?
    v2.0

    Do you have an error log of what happened?
    I have my timings which point to PermissionBukkit: http://aikar.co/timings.php?url=5702245

    Please provide any additional information below.

  • _ForgeUser7140418 added the tags New Defect May 25, 2013
  • SpaceManiac removed a tag New May 26, 2013
  • SpaceManiac added a tag Accepted May 26, 2013
  • SpaceManiac posted a comment May 26, 2013

    Heya, I really appreciate the timings report. In light of this, I've made what appears to be a major performance improvement and was hoping you'd be able to test it for me.

    The jar can be found here.

    If you are an op or have the permissions.debug permission you will see debug messages in chat with some timings - these should hopefully be staying well below 200 now.

    I'd also appreciate a copy of your /perm about if possible. Let me know if you see an improvement!

  • SpaceManiac removed a tag Accepted May 26, 2013
  • SpaceManiac added a tag Waiting May 26, 2013
  • _ForgeUser7140418 posted a comment May 26, 2013

    @SpaceManiac: Go

    Here is the output of /perm about:

    2013-05-26 10:16:52 [INFO] PermissionsBukkit version 2.1

    2013-05-26 10:16:52 [INFO] By SpaceManiac

    2013-05-26 10:16:52 [INFO] Website: http://dev.bukkit.org/server-mods/permbukkit/

    2013-05-26 10:16:52 [INFO] Features Used:

    2013-05-26 10:16:52 [INFO] Wizards: false

    2013-05-26 10:16:52 [INFO] Per-user permissions: true

    2013-05-26 10:16:52 [INFO] Anti-build message: false

    2013-05-26 10:16:52 [INFO] Group inheritance: true

    2013-05-26 10:16:52 [INFO] Per-world permissions: false

    2013-05-26 10:16:52 [INFO] Debug mode: false

    2013-05-26 10:16:52 [INFO] Anti-build enabled: true

    2013-05-26 10:16:52 [INFO] Uses permissions.yml: false

    2013-05-26 10:16:52 [INFO] Anti-build default: false

    2013-05-26 10:16:52 [INFO] API Used: true

    2013-05-26 10:16:52 [INFO] Usage:

    2013-05-26 10:16:52 [INFO] Groups: 10

    2013-05-26 10:16:52 [INFO] Users: 377

    2013-05-26 10:16:52 [INFO] Permission Roots: 36

    2013-05-26 10:16:52 [INFO] Worlds: 0

    2013-05-26 10:16:52 [INFO] Permissions: 524

    I'll take another timings report after it runs for awhile on 2.1.


    Edited May 26, 2013
  • _ForgeUser7140418 removed a tag Waiting May 26, 2013
  • _ForgeUser7140418 added a tag Replied May 26, 2013
  • _ForgeUser7140418 posted a comment May 26, 2013

    @dalphi: Go

    It doesn't seem to be as extreme. http://aikar.co/timings.php?url=5705592

    The server has only been up for 6 hours at this point, and the problem seems to occur after it's been running for awhile. I may have to wait till Monday or Tuesday before I can verify that it's improved.

  • _ForgeUser7140418 posted a comment May 27, 2013

    Ever since switching to the beta version, my server uses up a lot of memory. I average around 20 players and I allocate 8 gigs of RAM to the java process. I restart once a day automatically, and normally I never run out of memory. It's common for the process to never take more than 4 gigs of memory. However, I'm now hitting the limit at around 6 hours at which time I need to restart.

    Memory leak someplace?

  • _ForgeUser7140418 posted a comment May 27, 2013

    Never mind about the memory thing for now. I have a feeling this has to do with another plugin I updated around the same time.

  • _ForgeUser7140418 posted a comment Jun 2, 2013

    So still not that great after the server is up for awhile. Here are some new timings: http://aikar.co/timings.php?url=5728005

  • _ForgeUser7923785 posted a comment Jan 5, 2014

    I've been having the same problem but to a lesser degree. I get rather high times on PlayerChangedWorldEvent for permissions bukkit, anyware from 700ms to 1200ms with a couple people on the server, seems to get worse the more players there are on the server.

    Comparing the event timing in this plugin and the one in bperms, bperms is some 200-300 times faster in this event(this is with the same permissions sets on both plugins, roughly 400 nodes and 50 users in the permissionsbukkit config file.), it only takes around 3-5ms for a world change event in that plugin.


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