weird mini lags

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
andr3iu7z
Posts: 114
Joined: Sun Jan 10, 2010 2:25 pm

Re: weird mini lags

Post 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
dinor
Posts: 141
Joined: Tue Aug 26, 2008 10:07 am

Re: weird mini lags

Post 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
andr3iu7z
Posts: 114
Joined: Sun Jan 10, 2010 2:25 pm

Re: weird mini lags

Post by andr3iu7z »

What do you mean "unstable"?
dinor
Posts: 141
Joined: Tue Aug 26, 2008 10:07 am

Re: weird mini lags

Post by dinor »

strange lag
not working the way it should etc.
andr3iu7z
Posts: 114
Joined: Sun Jan 10, 2010 2:25 pm

Re: weird mini lags

Post 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.
dinor
Posts: 141
Joined: Tue Aug 26, 2008 10:07 am

Re: weird mini lags

Post 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)
andr3iu7z
Posts: 114
Joined: Sun Jan 10, 2010 2:25 pm

Re: weird mini lags

Post 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?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: weird mini lags

Post by jurchiks »

which type of raid? raid0, raid1, raid5?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
andr3iu7z
Posts: 114
Joined: Sun Jan 10, 2010 2:25 pm

Re: weird mini lags

Post by andr3iu7z »

raid1
i have hetzner server eq8. i bought this and not bought eq9 because this have 24 gb ram.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: weird mini lags

Post by jurchiks »

well, you could just attach a third hdd for db
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
Raikkon35
Posts: 178
Joined: Sat Mar 08, 2008 2:54 pm

Re: weird mini lags

Post 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!
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: weird mini lags

Post by jurchiks »

imho server and db separate on each...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
dinor
Posts: 141
Joined: Tue Aug 26, 2008 10:07 am

Re: weird mini lags

Post by dinor »

jurchiks wrote:imho server and db separate on each...
+1

1st SSD OS / L2j Server
2nd SSD MySQL
User avatar
Raikkon35
Posts: 178
Joined: Sat Mar 08, 2008 2:54 pm

Re: weird mini lags

Post by Raikkon35 »

Thank you friends! :)
Post Reply