Vault issues - major lag
bloggy opened this issue ยท 4 comments
PlayerInteractEvent is causing our server to lag like shit. We noticed this problem today ... very strange because we never noticed it before and nothing has changed. I am using the latest spigot dev build. We are not using Mysql, but flatfiles. It happens when players are selling stuff to the admin shop for example.
I ran several tests and created different timings:
http://aikar.co/timings.php?url=7588650
http://aikar.co/timings.php?url=7588719
http://aikar.co/timings.php?url=7589459
The event called 'PlayerInteractEvent' seems to be the main issue there - but for what reason? We used these plugins for years with no problems at all and we did not change a thing.
So then .. I have removed ALL plugnis except craftconomy, vault, permissionsex, signshop.
Same issue.
I have then replaced the plugins craftconomy and signshop with different plugins (signshop -> chestshop, craftconomy -> MinecraftEconomy
Same issue.
I deleted the world folders and have it create a brand-new world!
Same issue.
I have tested it on several servers including my localhost server.
Same issue.
Any suggestions? Wtf is going on?
Shouldn't this be a Bukkit / Craftbukkit Spigot issue then? I don't believe Vault uses PlayerInteractEvent. Also considering you said you removed it and it still occurred, that seems to signify that Vault isn't the cause.
EDIT: Sorry, misread. Still, if anything, it's either the economy you specified or the shop plugin. Vault is just a layer between the two and doesn't handle that event.
Yes, I saw, and that doesn't rule out that it could be something on Spigot's end. Vault has nothing to do with PlayerInteractEvent.
EDIT: Have you tried using a normal CraftBukkit server instance and comparing its results?
Vault is not your economy plugin, Vault has negligible time taken for it's operations as it's purely virtual and just passes down method calls to whatever economy you're utilizing. If you're seeing slowdowns as a result of using flatfile and a specific economy, report it to that economy.
Simply put, this can not be a Vault problem at any level.