weird mini lags
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 114
- Joined: Sun Jan 10, 2010 2:25 pm
Re: weird mini lags
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
LE: I have Linux. how that file should look at me GameServer_loop.sh
-
- Posts: 141
- Joined: Tue Aug 26, 2008 10:07 am
Re: weird mini lags
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 <--
if you see server is unstable remove -XX:+AggressiveOpts
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
-
- Posts: 114
- Joined: Sun Jan 10, 2010 2:25 pm
Re: weird mini lags
What do you mean "unstable"?
-
- Posts: 141
- Joined: Tue Aug 26, 2008 10:07 am
Re: weird mini lags
strange lag
not working the way it should etc.
not working the way it should etc.
-
- Posts: 114
- Joined: Sun Jan 10, 2010 2:25 pm
Re: weird mini lags
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.
The new machine has 24 gb ddr3 ram and i dont understand why.
-
- Posts: 141
- Joined: Tue Aug 26, 2008 10:07 am
Re: weird mini lags
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)
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)
-
- Posts: 114
- Joined: Sun Jan 10, 2010 2:25 pm
Re: weird mini lags
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?
I dont have community server.
It is raid hard so i think i cant make mysql and java runn on different hards?
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: weird mini lags
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 114
- Joined: Sun Jan 10, 2010 2:25 pm
Re: weird mini lags
raid1
i have hetzner server eq8. i bought this and not bought eq9 because this have 24 gb ram.
i have hetzner server eq8. i bought this and not bought eq9 because this have 24 gb ram.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: weird mini lags
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- Raikkon35
- Posts: 178
- Joined: Sat Mar 08, 2008 2:54 pm
Re: weird mini lags
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!
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!
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: weird mini lags
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 141
- Joined: Tue Aug 26, 2008 10:07 am
Re: weird mini lags
+1jurchiks wrote:imho server and db separate on each...
1st SSD OS / L2j Server
2nd SSD MySQL