AuthMe / AuthMeReloaded

The best authentication plugin for the Bukkit/Spigot API!
https://www.spigotmc.org/resources/authmereloaded.6269/
GNU General Public License v3.0
628 stars 516 forks source link

Lag when doing /login or /register #1459

Closed linsaftw closed 6 years ago

linsaftw commented 6 years ago

What behaviour is observed:

Everytime i run /register or /login it takes like 5 - 10 seconds to succesfully login.

What behaviour is expected:

A instant / semi instant login and register.

Steps/models to reproduce:

Do /login or /register.

Plugin list:

AAC, AACAdditionPro, AdvancedPortals, AuthMe, AutoRestart, ChestCommands, CustomJoinItems, DisableChat, Essentials, FastAsyncWorldEdit, HideAchievements, HidePlayers, HolographicDisplays, LiteBans, LuckPerms, MicroJump, ProtocolLib, ProtocolSupport, ProtocolSupportStuff, SpawnTP, VoidtoSpawn, WorldEdit, WorldGuard

Environment description

Bungeecord network with MySql (Everything under the same machine / localhost)

AuthMe build number:

1888

Error Log:

N/A

Configuration:

http://hastebin.com/usoneviyef.bash

I think authme reloaded needs more SQL optimization for small servers like mine. I think the traffic is too high for a non ssd network.

krusic22 commented 6 years ago

Enable caching also this is probably a SQL server issue.

linsaftw commented 6 years ago

How do i enable that? @krusic22

krusic22 commented 6 years ago

In the AuthMe config enable caching: true. Also look at optimizations for your SQL server.

ljacqu commented 6 years ago

Hi @LinsaFTW , still relevant? If so we could provide you with a JAR that has additional debug statement and we could see where most of the time is lost on your server.