Page 2 of 3

Re: Server Increase performance question.

Posted: Tue Jan 18, 2011 10:27 pm
by qwerty13
DB engine - memory, and real time replication on different server. Hard drive will be used only for backups.

Re: Server Increase performance question.

Posted: Wed Jan 19, 2011 11:31 pm
by xone
I installed MySQL and mysqltunner works just fine now :D
Thanks for advices all.

Re: Server Increase performance question.

Posted: Thu Jan 20, 2011 8:43 pm
by JMD
If you run a pvp server use geodata only in importand areas (castles,farming etc.) I was handling 500 players on 2gb ram with autorestart once everyday.

Re: Server Increase performance question.

Posted: Thu Jan 27, 2011 7:56 pm
by xone
Ok, I got my new ram, 8GB DDR2 1066mhz.
MySQL

Code: Select all

memlockmyisam-recover = BACKUPkey_buffer = 600Mjoin_buffer = 10Mjoin_buffer_size = 256Kmax_allowed_packet = 32Mthread_stack = 256Kthread_cache_size = 16max_connections = 600table_cache = 1024thread_concurrency = 8query_cache_limit = 128Mquery_cache_size = 512Mquery_cache_type = 1skip-innodbskip-federated
I moved databse on my other hard drive.
Thread Config

Code: Select all

# ---------------------------------------------------------------------------# Thread Configuration# ---------------------------------------------------------------------------# 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: 10ThreadPoolSizeEffects =  10 # Default: 13ThreadPoolSizeGeneral = 13 # Default: 2UrgentPacketThreadCoreSize = 2 # Default: 4GeneralPacketThreadCoreSize = 4 # Default: 4GeneralThreadCoreSize = 4 # Default: 6AiMaxThread = 6 # Dead Lock Detector (a separate thread for detecting deadlocks).# For improved crash logs and automatic restart in deadlock case if enabled.# Check interval is in seconds.# Default: FalseDeadLockDetector = False # Default: 20DeadLockCheckInterval = 20 # Default: FalseRestartOnDeadlock = False # ---------------------------------------------------------------------------# Client packet queue tuning# ---------------------------------------------------------------------------# Queue size, do not set it too low !# 0 - use value MaxReadPerPass + 2 (from mmo.properties)# Default: 0ClientPacketQueueSize = 0 # 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: 0ClientPacketQueueMaxBurstSize = 0 # 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: 80ClientPacketQueueMaxPacketsPerSecond = 80 # 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: 5ClientPacketQueueMeasureInterval = 7 # 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: 40ClientPacketQueueMaxAveragePacketsPerSecond = 40 # Maximum number of flood triggers per minute.# Client will be kicked if more floods detected.# Default: 2ClientPacketQueueMaxFloodsPerMin = 2 # 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: 1ClientPacketQueueMaxOverflowsPerMin = 1 # Maximum number of buffer underflows per minute.# Client will be kicked if more underflow exceptions detected.# Default: 1ClientPacketQueueMaxUnderflowsPerMin = 1 # Maximum number of unknown packets per minute.# Client will be kicked if more unknown packets received.# Default: 5ClientPacketQueueMaxUnknownPerMin = 5 
using this:

Code: Select all

java -Dc3p0.unreturnedConnectionTimeout=1500 -Dc3p0.maxStatements=150 -Dc3p0.maxIdleTime=300 -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms6g -Xmx6g -server  -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1
I have arround 140 players and some of them have lag, still don't know what the problem is, any ideeas ?
Thanks.

Re: Server Increase performance question.

Posted: Fri Jan 28, 2011 9:20 am
by dark911_ro
how about internet connection ? what bandwidth do you have ?

Re: Server Increase performance question.

Posted: Fri Jan 28, 2011 10:40 am
by xone
dark911_ro wrote:how about internet connection ? what bandwidth do you have ?
Your RO :P , I have from iLink, its stable, and fast ... but from what i've noticed only place where its a bit slow ... is greece. ( In greece internet sux, been there )

Image
now the test was good sometimes upload to greece is like 900kb/s

And mostly the ones lagging are from greece ... :|

Re: Server Increase performance question.

Posted: Fri Jan 28, 2011 12:21 pm
by dark911_ro
with 2 - 3Mbps you can have arround 150 players on your server . Ofc player connection is important also .

But if you say that sometime ur connection goes to 900kbps is bad .. try to get a guaranteed bandwidth starting from 3Mbps.

If you are from Romania , try getting fiber from UPC with guaranteed bandwidth of 10Mbps it's arround 60 Eu / month. Or try RDS but they have a bit higher prices.

Me for ex i have atm both connections ( RDS and UPC ) and UPC is far way better on external , RDS with up min of 50 Mbps and up to 100 Mbps owns intenal . But as you know ... your location is a huge factor for a good internet connection.

As you know , Romania is on 4th place in world for internet connection speed after Koreea, Japan and Latvia :) So you have where to choose from :P

Re: Server Increase performance question.

Posted: Fri Jan 28, 2011 1:01 pm
by baluu
dark911_ro wrote:with 2 - 3Mbps you can have arround 150 players on your server . Ofc player connection is important also .

But if you say that sometime ur connection goes to 900kbps is bad .. try to get a guaranteed bandwidth starting from 3Mbps.

If you are from Romania , try getting fiber from UPC with guaranteed bandwidth of 10Mbps it's arround 60 Eu / month. Or try RDS but they have a bit higher prices.

Me for ex i have atm both connections ( RDS and UPC ) and UPC is far way better on external , RDS with up min of 50 Mbps and up to 100 Mbps owns intenal . But as you know ... your location is a huge factor for a good internet connection.

As you know , Romania is on 4th place in world for internet connection speed after Koreea, Japan and Latvia :) So you have where to choose from :P
Download speed its high for both (RDS and UPC) but upload sucks.. if you want more upload ...well costs are very high

Download Speed: 59830 kbps (7478.8 KB/sec transfer rate)
Upload Speed: 507 kbps (63.4 KB/sec transfer rate)
Latency: 5 ms

my l2server from 1jan until 28jan
Incoming data in gib 206.68
Outbond data in gib 723.34

So how to handle this traffic with 507kbps upload ? You cant

Re: Server Increase performance question.

Posted: Fri Jan 28, 2011 1:29 pm
by xone
baluu wrote:
dark911_ro wrote:with 2 - 3Mbps you can have arround 150 players on your server . Ofc player connection is important also .

But if you say that sometime ur connection goes to 900kbps is bad .. try to get a guaranteed bandwidth starting from 3Mbps.

If you are from Romania , try getting fiber from UPC with guaranteed bandwidth of 10Mbps it's arround 60 Eu / month. Or try RDS but they have a bit higher prices.

Me for ex i have atm both connections ( RDS and UPC ) and UPC is far way better on external , RDS with up min of 50 Mbps and up to 100 Mbps owns intenal . But as you know ... your location is a huge factor for a good internet connection.

As you know , Romania is on 4th place in world for internet connection speed after Koreea, Japan and Latvia :) So you have where to choose from :P
Download speed its high for both (RDS and UPC) but upload sucks.. if you want more upload ...well costs are very high

Download Speed: 59830 kbps (7478.8 KB/sec transfer rate)
Upload Speed: 507 kbps (63.4 KB/sec transfer rate)
Latency: 5 ms

my l2server from 1jan until 28jan
Incoming data in gib 206.68
Outbond data in gib 723.34

So how to handle this traffic with 507kbps upload ? You cant
I found the perfect way and cost effective, iLink + NextGen on Fiber (total price 20E/ month).
iLink works for every country perfect except greece.
Hope next week if I upgrade, the lag issues will go away :D

Re: Server Increase performance question.

Posted: Fri Jan 28, 2011 1:42 pm
by dark911_ro
baluu wrote:
Download Speed: 59830 kbps (7478.8 KB/sec transfer rate)
Upload Speed: 507 kbps (63.4 KB/sec transfer rate)
Latency: 5 ms

my l2server from 1jan until 28jan
Incoming data in gib 206.68
Outbond data in gib 723.34

So how to handle this traffic with 507kbps upload ? You cant
I am pretty sure l2j server in anyway you want did not and wont make 723.34 GB in 28 days :)
Maybe you included there your downloads also ...

Re: Server Increase performance question.

Posted: Fri Jan 28, 2011 1:44 pm
by dark911_ro
dark911_ro wrote:
baluu wrote:
Download Speed: 59830 kbps (7478.8 KB/sec transfer rate)
Upload Speed: 507 kbps (63.4 KB/sec transfer rate)
Latency: 5 ms

my l2server from 1jan until 28jan
Incoming data in gib 206.68
Outbond data in gib 723.34

So how to handle this traffic with 507kbps upload ? You cant
I am pretty sure l2j server in anyway you want did not and wont make 723.34 GB in 28 days :)
Maybe you included there your downloads/uploads from torrents also ...

Re: Server Increase performance question.

Posted: Fri Jan 28, 2011 3:00 pm
by xone
Maybe he has webserver on same box as server, and ppl download patch/client lol + torrents :))

Re: Server Increase performance question.

Posted: Sat Jan 29, 2011 12:01 pm
by macdonald12
dark911_ro wrote:I am pretty sure l2j server in anyway you want did not and wont make 723.34 GB in 28 days :)
Maybe you included there your downloads/uploads from torrents also ...
xone wrote:Maybe he has webserver on same box as server, and ppl download patch/client lol + torrents :))
That's an average of around 300 kB/s upload. If you have somewhat of a population you easily use up such amount of bandwidth in just 28 days.

Re: Server Increase performance question.

Posted: Wed Feb 02, 2011 5:08 pm
by Ralm
ThePhoenixBird wrote:RAID0 of SSD disks.
Just dont do that. Because Trim is not supported by SSD in RAid. That means that theSSDs will became slower with time. The best to do is just buy an SSD and leave it alone. the SandForce ones allready do 285 read 275 write 250 Sustained write. If you buy a REvo Drive from OCZ ( that are in RAID 0, but are prepared for that) you will have 740MBs read 690 Write and 550 Sustained Write. And if that is not enought, you can allways get the new Z-Drive R3 (entreprise Solution) that does an amazing speed of 1GB/s Read 970MB/s Write 900MB/s Sustained write, with everything, like trim, etc etc, and allows you to add more storade if you need more.

I just telling what the crazy people at the Overclock foruns talk about. And they test like 4 SSD in Raid etc, and most of them say the same. Anyway an SSD have allready enought speed. The great improvent for a server will be for sure the seek time of 0.1ms

Re: Server Increase performance question.

Posted: Wed Feb 02, 2011 8:31 pm
by jurchiks
@Ralm - that's some very useful info, thanks :)