EssentialsX

EssentialsX

2M Downloads

Sellall lag

Terrobility opened this issue ยท 4 comments

commented

I use Fe, Vault and EssentialsX (updated it 30 mins ago).

This is what I get: (i use massivelag too)

Sold all items and blocks for a total worth of $7742.18.
__________.[ MassiveLag Spike Monitor ]._____________
Tick Length: 1742 milliseconds
TPS Reduction: 33.8 (20.0 --> -13.8)
Stack Tree: (174 samples)
100.00% java.lang.Thread.run(Unknown Source)
94.25% net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:614)
94.25% net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:711)
94.25% net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378)
94.25% net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:772)
94.25% net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
94.25% java.util.concurrent.FutureTask.run(Unknown Source)
94.25% java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
94.25% net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
94.25% net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
94.25% net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
94.25% net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1000)
94.25% net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1165)
94.25% org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
94.25% com.massivecraft.massivelag.inject.command.MassiveLagCommandMap.dispatch(MassiveLagCommandMap.java:86)
94.25% org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
94.25% com.earth2me.essentials.Essentials.onCommand(Essentials.java:338)
94.25% com.earth2me.essentials.Essentials.onCommandEssentials(Essentials.java:428)
94.25% com.earth2me.essentials.commands.EssentialsCommand.run(EssentialsCommand.java:146)
94.25% com.earth2me.essentials.commands.Commandsell.run(Commandsell.java:44)
94.25% com.earth2me.essentials.commands.Commandsell.sellItem(Commandsell.java:95)
94.25% com.earth2me.essentials.User.giveMoney(User.java:123)
94.25% com.earth2me.essentials.User.giveMoney(User.java:131)
 89.08% com.earth2me.essentials.User.setMoney(User.java:381)
  45.40% com.earth2me.essentials.register.payment.methods.VaultEco$VaultAccount.set(VaultEco.java:151)
  45.40% io.loyloy.fe.VaultHandler.depositPlayer(VaultHandler.java:129)
  45.40% io.loyloy.fe.VaultHandler.deposit(VaultHandler.java:152)
  45.40% io.loyloy.fe.database.Account.deposit(Account.java:122)
  45.40% io.loyloy.fe.database.Account.setMoney(Account.java:107)
  45.40% io.loyloy.fe.database.Account.save(Account.java:138)
   44.83% io.loyloy.fe.database.databases.SQLDB.saveAccount(SQLDB.java:383) (children hidden)
   0.57% io.loyloy.fe.database.databases.SQLDB.saveAccount(SQLDB.java:368) (children hidden)
  43.68% com.earth2me.essentials.register.payment.methods.VaultEco$VaultAccount.set(VaultEco.java:145)
   43.10% io.loyloy.fe.VaultHandler.withdrawPlayer(VaultHandler.java:91)
   43.10% io.loyloy.fe.VaultHandler.withdraw(VaultHandler.java:116)
   43.10% io.loyloy.fe.database.Account.withdraw(Account.java:117)
    41.95% io.loyloy.fe.database.Account.setMoney(Account.java:107)
    41.95% io.loyloy.fe.database.Account.save(Account.java:138)
    41.95% io.loyloy.fe.database.databases.SQLDB.saveAccount(SQLDB.java:383) (children hidden)
    1.15% io.loyloy.fe.database.Account.getMoney(Account.java:64) (children hidden)
   0.57% com.earth2me.essentials.register.payment.methods.VaultEco$VaultAccount.balance(VaultEco.java:140) (children hidden)
 2.30% com.earth2me.essentials.User.setMoney(User.java:373) (children hidden)
 1.15% com.earth2me.essentials.User.getMoney(User.java:336) (children hidden)
 1.15% com.earth2me.essentials.User.setMoney(User.java:380) (children hidden)
 0.57% com.earth2me.essentials.User.setMoney(User.java:385) (children hidden)
5.75% net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:592)
5.75% java.lang.Thread.sleep(Native Method)

Any advice/help? I genuinely don't know how to fix this. I use flatfile storage, could this be something that may be causing the lag when I do /sell all?

commented

Why does it say that you use SQL storage then? This seems like an issue with Fe, not Ess at all. Ess just uses the Vault API to deposit money, the actual saving stuff is on your econ plugin (Fe).

commented

@vemacs in that case, I won't use Fe. What would you recommend otherwise, EssentialsEco or an external plugin?

commented

If it's not cross-server, EssentialsEco would be fine imo

commented

Thanks @vemacs