From 083c98bca69287d0ad9ac2f24f8ac5e2761b4542 Mon Sep 17 00:00:00 2001 From: mobius <8391001+MobiusDevelopment@users.noreply.github.com> Date: Fri, 2 Jan 2015 08:19:45 +0000 Subject: [PATCH] Optimising server for more online players. --- trunk/dist/game/config/General.properties | 34 +++++++++---------- trunk/dist/game/config/Server.properties | 4 +-- .../dist/login/config/LoginServer.properties | 4 +-- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/trunk/dist/game/config/General.properties b/trunk/dist/game/config/General.properties index 8eb80403f1..43d5545b25 100644 --- a/trunk/dist/game/config/General.properties +++ b/trunk/dist/game/config/General.properties @@ -152,28 +152,28 @@ SkillCheckGM = True # Extreme caution should be here, set to defaults if you do not know what you are doing. # These could possibly hurt your servers performance or improve it depending on your server's configuration, size, and other factors. # Default: 10 -ThreadPoolSizeEffects = 10 +ThreadPoolSizeEffects = 50 # Default: 13 -ThreadPoolSizeGeneral = 13 +ThreadPoolSizeGeneral = 65 # Default: 2 -ThreadPoolSizeEvents = 2 +ThreadPoolSizeEvents = 10 # Default: 2 -UrgentPacketThreadCoreSize = 2 +UrgentPacketThreadCoreSize = 20 # Default: 4 -GeneralPacketThreadCoreSize = 4 +GeneralPacketThreadCoreSize = 20 # Default: 4 -GeneralThreadCoreSize = 4 +GeneralThreadCoreSize = 20 # Default: 6 -AiMaxThread = 6 +AiMaxThread = 30 # Default: 5 -EventsMaxThread = 5 +EventsMaxThread = 25 # Dead Lock Detector (a separate thread for detecting deadlocks). # For improved crash logs and automatic restart in deadlock case if enabled. @@ -195,47 +195,47 @@ RestartOnDeadlock = False # Queue size, do not set it too low ! # 0 - use value MaxReadPerPass + 2 (from mmo.properties) # Default: 0 -ClientPacketQueueSize = 0 +ClientPacketQueueSize = 80 # Maximum number of packets in burst. # Execution will be aborted and thread released if more packets executed in raw. # 0 - use value MaxReadPerPass + 1 (from mmo.properties) # Default: 0 -ClientPacketQueueMaxBurstSize = 0 +ClientPacketQueueMaxBurstSize = 70 # Maximum number of packets per second. # Flood detector will be triggered if more packets received. # After triggering all incoming packets will be dropped until flooding stopped. # Default: 80 -ClientPacketQueueMaxPacketsPerSecond = 80 +ClientPacketQueueMaxPacketsPerSecond = 160 # Average number of packets per second calculated during this interval. # Using larger value decrease number of false kicks, but slower reaction to flood. # Avoid using too low or too high values, recommended between 3 and 10. # Default: 5 -ClientPacketQueueMeasureInterval = 5 +ClientPacketQueueMeasureInterval = 15 # Maximum average number of packets per second during measure interval. # Flood detector will be triggered if more packets received. # After triggering all incoming packets will be dropped until flooding stopped. # Default: 40 -ClientPacketQueueMaxAveragePacketsPerSecond = 40 +ClientPacketQueueMaxAveragePacketsPerSecond = 120 # Maximum number of flood triggers per minute. # Client will be kicked if more floods detected. # Default: 2 -ClientPacketQueueMaxFloodsPerMin = 2 +ClientPacketQueueMaxFloodsPerMin = 5 # Maximum number of queue overflows per minute. # After overflow all incoming packets from client are dropped until queue is flushed. # Client will be kicked if more queue overflows detected. # Default: 1 -ClientPacketQueueMaxOverflowsPerMin = 1 +ClientPacketQueueMaxOverflowsPerMin = 10 # Maximum number of buffer underflows per minute. # Client will be kicked if more underflow exceptions detected. # Default: 1 -ClientPacketQueueMaxUnderflowsPerMin = 1 +ClientPacketQueueMaxUnderflowsPerMin = 10 # Maximum number of unknown packets per minute. # Client will be kicked if more unknown packets received. @@ -278,7 +278,7 @@ DatabaseCleanUp = True # If a query takes longer to execute than the time defined here, the server will throw "Unclosed Connection!" error. # If you get often this error message, try increasing this. # Default: 60000ms -ConnectionCloseTime = 60000 +ConnectionCloseTime = 20000 # This is the interval (in minutes), that the gameserver will update a players information such as location. # The higher you set this number, there will be less character information saving so you will have less accessessing of the database and your hard drive(s). diff --git a/trunk/dist/game/config/Server.properties b/trunk/dist/game/config/Server.properties index 3f1bfe1af0..11a2601fb6 100644 --- a/trunk/dist/game/config/Server.properties +++ b/trunk/dist/game/config/Server.properties @@ -58,7 +58,7 @@ Login = root Password = # Default: 100 -MaximumDbConnections = 100 +MaximumDbConnections = 500 # Default: 0 MaximumDbIdleTime = 0 @@ -84,7 +84,7 @@ DatapackRoot = . # Define how many players are allowed to play simultaneously on your server. # Default: 100 -MaximumOnlineUsers = 100 +MaximumOnlineUsers = 2000 # Numbers of protocol revisions that server allows to connect. # Delimiter is ; diff --git a/trunk/dist/login/config/LoginServer.properties b/trunk/dist/login/config/LoginServer.properties index b44f358eea..6e9bdc4ed2 100644 --- a/trunk/dist/login/config/LoginServer.properties +++ b/trunk/dist/login/config/LoginServer.properties @@ -88,14 +88,14 @@ Login = root Password = # Default: 10 -MaximumDbConnections = 10 +MaximumDbConnections = 50 # Default: 0 MaximumDbIdleTime = 0 # Connection close time. # Default: 60000 -ConnectionCloseTime = 60000 +ConnectionCloseTime = 20000 # ---------------------------------------------------------------------------