Page 1 of 1

How to improve performance

Posted: Thu Aug 06, 2009 4:58 pm
by Zdenekhb
Hi all,

I Have gracia final server with 100+ online players and they have told that they are much lags.
I need help with increasing server performance and eliminate lags

Computers config (i have 2 PCs):

MySQL server: CORE 2 DUO E7400, 300GB Sata-II, 2GB RAM DDR2 Dual-channel, OS Archlinux 64bit
Login and Gameserver: CORE 2 DUO E8600 500GB Sata-II. 8GB RAM DDR2 Dual Channel, Ubuntu linux 64bit

Run settigs for java is:
Login server: nice -2, -Xmx128m
Gameserver: nice 0, -Xms2048m, -Xmx5120m

Usage:
CPU MySQL server: 0 - 5%
CPU Login+Gameserver 6-11%

Internet connection: synchronous 50mbps. tested usage internet connection if is 100+ user online : < 1mbps

Telnet Server Status:

Code: Select all

   --->  Player Count: 119/500  ---> Offline Count: 13/119  +-->  Object Count: 92161  +-->      AI Count: 43118  +.... L2Item(Void): 13  +.......... L2Item: 47053  +....... L2Monster: 40535  +......... Minions: 3018  +.. Minions Groups: 1901  +........... L2Npc: 3357  +............ L2Pc: 117  +........ L2Summon: 2  +.......... L2Door: 1033  +.......... L2Char: 51  --->   Ingame Time: 18:18  ---> Server Uptime: 10hrs 2mins 16secs  --->      GM Count: 1  --->       Threads: 52  RAM Used: 1336 
Telnet Server Performance:

Code: Select all

 STP: + Effects: |- ActiveThreads:   0 |- getCorePoolSize: 10 |- PoolSize:        10 |- MaximumPoolSize: 2147483647 |- CompletedTasks:  44048633 |- ScheduledTasks:  9943 | ------- + General: |- ActiveThreads:   0 |- getCorePoolSize: 13 |- PoolSize:        13 |- MaximumPoolSize: 2147483647 |- CompletedTasks:  2931591 |- ScheduledTasks:  2399 | ------- + AI: |- ActiveThreads:   0 |- getCorePoolSize: 6 |- PoolSize:        6 |- MaximumPoolSize: 2147483647 |- CompletedTasks:  13707066 |- ScheduledTasks:  2465TP: + Packets: |- ActiveThreads:   0 |- getCorePoolSize: 4 |- MaximumPoolSize: 6 |- LargestPoolSize: 4 |- PoolSize:        4 |- CompletedTasks:  2904271 |- QueuedTasks:     0 | ------- + I/O Packets: |- ActiveThreads:   0 |- getCorePoolSize: 2 |- MaximumPoolSize: 2147483647 |- LargestPoolSize: 2 |- PoolSize:        2 |- CompletedTasks:  2569 |- QueuedTasks:     0 | ------- + General Tasks: |- ActiveThreads:   0 |- getCorePoolSize: 4 |- MaximumPoolSize: 6 |- LargestPoolSize: 4 |- PoolSize:        4 |- CompletedTasks:  589156 |- QueuedTasks:     0 | ------- + AI: |- Not Done 
Thx for any ideas ....

Re: How to improve performance

Posted: Thu Aug 06, 2009 5:02 pm
by devo
Changed PC's, database more memory, but for 100online it should be ok.

Show here threads configuration and mysql config.

Re: How to improve performance

Posted: Thu Aug 06, 2009 7:05 pm
by Zdenekhb
devo wrote:Changed PC's, database more memory, but for 100online it should be ok.

Show here threads configuration and mysql config.
Threads config is in default state ...

Re: How to improve performance

Posted: Thu Aug 06, 2009 8:35 pm
by devo
nbd wrote somewhere that you need to set it to your core count.

Re: How to improve performance

Posted: Thu Aug 06, 2009 8:38 pm
by Evilus
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8

Re: How to improve performance

Posted: Fri Aug 07, 2009 3:15 pm
by ooman
Try to add to Run settings for java gameserver: -server