Page 2 of 2
Re: weird mini lags
Posted: Sat Jul 10, 2010 7:32 pm
by andr3iu7z
tell me if its ok now because today i bought a new machine(24 gb ram) and when it reach more than 400 players its start to have like you weird mini lags.
LE: I have Linux. how that file should look at me GameServer_loop.sh
Re: weird mini lags
Posted: Sat Jul 10, 2010 8:06 pm
by dinor
Go to this topic and start reading.
viewtopic.php?f=94&t=16649
Make sure you will read this as well (only this is enough to make you run over 2000 people.)
http://l2-adrenaline.com/linux/L2DCLinu ... elease.pdf
and finally this
http://www.mysqlperformanceblog.com/
For sure you have to change the default setting.
for a quick fix add this to your GameServer_loop.sh
Note* This is configuration for 8 cores cpu and over 12GB of RAM, if you have 4 cores then change -XX:ParallelGCThreads=3 <--
Code: Select all
java -server -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms2048m -Xmx5000m -Xmn512m -Xss128k -XX:ParallelGCThreads=6 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1
if you see server is unstable remove -XX:+AggressiveOpts
Re: weird mini lags
Posted: Sun Jul 11, 2010 7:09 pm
by andr3iu7z
What do you mean "unstable"?
Re: weird mini lags
Posted: Sun Jul 11, 2010 7:46 pm
by dinor
strange lag
not working the way it should etc.
Re: weird mini lags
Posted: Sun Jul 11, 2010 8:39 pm
by andr3iu7z
dinor i see u really wants to help so i ask you something. 1 week ago i had a machine 8gb ram all works good till ~1.2k on and lag startng. Now i have a new machine and on 800 + starts lagging with same config like the other one
The new machine has 24 gb ddr3 ram and i dont understand why.
Re: weird mini lags
Posted: Sun Jul 11, 2010 9:14 pm
by dinor
well... you haven't say the exact server configuration.
Know that performance is based on:
Hard Drive -- If yuo want performance you get the faster drive for read/write data -- SSD are now even better than HDD 15k RPM
2 Hard drives -- One for OS - GamseServer and the second exclusively for database.
RAM which you have plenty, but also RAM allocation for Java and MySQL
MySQL optimization -- default settings are not for big servers
Java optimization -- like in startGameServer.bat or GameServer_loop.sh
CPU -- 8 core is cool, but 4 cores is fine as well
Do not run website in the same server as the GameServer.
If possible LoginServer and CommunityServer in different server
Network connection 100Mbps is enough for 1000+ people
Thread Configuration in L2j configs (i don't really know what a good config is for this)
Re: weird mini lags
Posted: Sun Jul 11, 2010 9:32 pm
by andr3iu7z
What to change at mysql config except max_connections?
I dont have community server.
It is raid hard so i think i cant make mysql and java runn on different hards?
Re: weird mini lags
Posted: Mon Jul 12, 2010 12:00 pm
by jurchiks
which type of raid? raid0, raid1, raid5?
Re: weird mini lags
Posted: Mon Jul 12, 2010 12:20 pm
by andr3iu7z
raid1
i have hetzner server eq8. i bought this and not bought eq9 because this have 24 gb ram.
Re: weird mini lags
Posted: Mon Jul 12, 2010 10:50 pm
by jurchiks
well, you could just attach a third hdd for db
Re: weird mini lags
Posted: Tue Jul 13, 2010 1:11 pm
by Raikkon35
I take this thread to ask one thing. If this is not a good place, let me know and I'll put it on another.
Which is better, 2 SSD in RAID 0, with everything installed, or an SSD to the server and the other SSD with the database?
Thank you!
Re: weird mini lags
Posted: Tue Jul 13, 2010 1:49 pm
by jurchiks
imho server and db separate on each...
Re: weird mini lags
Posted: Tue Jul 13, 2010 1:56 pm
by dinor
jurchiks wrote:imho server and db separate on each...
+1
1st SSD OS / L2j Server
2nd SSD MySQL
Re: weird mini lags
Posted: Fri Jul 16, 2010 4:01 pm
by Raikkon35
Thank you friends!
