Lag in server

SinisterSmile

Heir
Customer
I would like to ask what can cause a little lag like for 3-4s then it disappears. It happens from time to time but it's annoying and the players complain about that.
My dedicated Info:
  1. CPU - Intel Xeon Hex Core E5-2640-V1 2.50Ghz
  2. Cores/Threads - 6 Cores, 12 Threads
  3. RAM - 16GB DDR3 ECC RAM
  4. SSD/HDD - 2x 480GB SSD
  5. RAID - Hardware RAID HP P220i
I'm using Mysql 5.5 with Navicat Premium.
 
When you have small lags and friezes on the server appear on your server, there are several reasons that lead to them and I will describe the solution for you.
_______________________________
1. Increase the memory of the game server process, the default is 3gb (to start and drive 20 windows).
This is done in the WinOS file.:
StartGameServer.bat
By default, for tests (the server immediately loads geo, scripts, etc., there is practically nothing left for the players):
Code:
java -server -Dfile.encoding=UTF-8 -Xmx3G -cp config;./* l2.gameserver.GameServer
Optimal for 1k online:
Code:
java -server -Dfile.encoding=UTF-8 -Xmx5G -cp config;./* l2.gameserver.GameServer

In *NIX like OS:
GameServer_loop.sh
By default, for tests (the server immediately loads geo, scripts, etc., there is practically nothing left for the players):
Code:
java -server -Dfile.encoding=UTF-8 -Xmx3G -cp config:./* l2.gameserver.GameServer > log/stdout.log 2>&1
Optimal for 1k online:
Code:
java -server -Dfile.encoding=UTF-8 -Xmx5G -cp config:./* l2.gameserver.GameServer > log/stdout.log 2>&1
_______________________________
2. Your provider is under a DDoS attack or is located far from your players
2.1 Proxy server connection authserver\config\proxyservers.xml
2.2 Ask the lag player to do
Code:
cmd > ping server.ip
and
Code:
cmd > tracert server.ip
or the player is not able to master such processes.
_______________________________
3. Your player plays on a bucket
3.1 That in the game there is an option .menu или .cfg - Buff animation (default 100), set 50 or less
3.2 Download l2antilag
 
Last edited:
Back
Top