I am running a teamspeak 3 server and have been getting random lag spikes. The server has a good overall ping and no one lags when playing on our minecraft server (which is generally lagger dues to java + bad coding :/). We have been trying many things over the past little while, but cannot solve this issue. The lag is dreadfully bad and will randomly shoot from an 80 ping to a 1600 ping for a few seconds, requiring either a client restart or a 1 minute wait for ts to catch up. Can anyone through me some hints?

startscript.sh parameters:

COMMANDLINE_PARAMETERS="dbplugin=ts3db_mysql inifile=ts3server.ini"



ts3server.ini:

machine_id=
default_voice_port=9987
voice_ip=0.0.0.0
liscensepath=./
filetransfert_port=30033
filetransfer_ip=0.0.0.0
query_port=10000
dbplugin=ts3db_mysql
dbpluginparameter=ts3db_mysql.ini
dbsqlpath=sql/
dbsqlreatepath=create_mysql/
logpath=logs
logquerycommands=1




ts3db_mysql.ini:

host=localhost
port=3305 #our server does not work on 3306 for some reason D;
username=******
password=****
database=ts3
socket=