Optimising server for more online players.
This commit is contained in:
parent
e8fca0a668
commit
083c98bca6
34
trunk/dist/game/config/General.properties
vendored
34
trunk/dist/game/config/General.properties
vendored
@ -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).
|
||||
|
4
trunk/dist/game/config/Server.properties
vendored
4
trunk/dist/game/config/Server.properties
vendored
@ -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 ;
|
||||
|
@ -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
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user