Fine server tunning
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- papadkostas
- Posts: 128
- Joined: Fri Jul 02, 2010 8:34 am
- Location: Greece
- Contact:
Re: Fine server tunning
18GB of Ram?
can an l2j server fill that enormous amount of memory
with less than 1k people?
(never seen l2j server more than 1k population at same time)
can an l2j server fill that enormous amount of memory
with less than 1k people?
(never seen l2j server more than 1k population at same time)
I'm learning as fast..as roadrunner - Beeep Beeeep


- Sirpaypi
- Posts: 108
- Joined: Mon May 18, 2009 11:51 pm
- Location: Moяocco.
Re: Fine server tunning
I saw a L2J server with 6k populationpapadkostas wrote:18GB of Ram?
can an l2j server fill that enormous amount of memory
with less than 1k people?
(never seen l2j server more than 1k population at same time)

Saying that Java is nice because it works on all OSes is like saying that anal sex is nice because it works on all genders.
- UnAfraid
- L2j Veteran
- Posts: 4199
- Joined: Mon Jul 23, 2007 4:25 pm
- Location: Bulgaria
- Contact:
Re: Fine server tunning
I saw L2jServer under iPhone xDSirpaypi wrote:I saw a L2J server with 6k populationpapadkostas wrote:18GB of Ram?
can an l2j server fill that enormous amount of memory
with less than 1k people?
(never seen l2j server more than 1k population at same time)
- Ezvra
- Posts: 53
- Joined: Mon Dec 28, 2009 10:22 pm
Re: Fine server tunning
Updeted all except the code for startgameserver.bat, it just closes server, no erros just Server terminated abnormally msg. The rest works fine, perhaps there is something wrong there ? I must say i've tried changing memory values too.Bani wrote:As it goes for your Thread Pool try setting everything there 2x-3x of the default value you will need to try diffrent ratios to get the best results.
As for your startGameServer.bat maybe reconsider using this:
It will run L2 making sure it uses all cores, starts with higher resources also has increased Thread Stack and also it has a better Garbage Collector so this should make your server run a lot more better.Code: Select all
java -server -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms2048m -Xmx18g -Xss256k -XX:PermSize=256m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8 -XX:+AggressiveOpts -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer > log/stdout.log 2>&1
Now i ain't really a proffesional in L2 but i've done this changes and for me it worked perfect though i am using Linux not Windows.
Hope i helped you a bit
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: Fine server tunning
So, the conclusion for a good server performance with a lot of players is
?

- MELERIX
- L2j Veteran
- Posts: 6667
- Joined: Sat Sep 23, 2006 11:31 pm
- Location: Chile
- Contact:
Re: Fine server tunning
I guess is mysql settings, try to post pictures about what mysql settings you use with mysql wizard.
- tukune
- Posts: 533
- Joined: Sun Mar 29, 2009 2:35 pm
- Location: Japan
Re: Fine server tunning
Ezra already posted mysql.iniMELERIX wrote:I guess is mysql settings, try to post pictures about what mysql settings you use with mysql wizard.
query_cache_size=0
table_cache=256
tmp_table_size=35M
...
He have many many memory. but he does not use it.
- pinkcore
- Posts: 247
- Joined: Fri Jul 24, 2009 3:04 am
- Location: Czech Republic
Re: Fine server tunning
I have increased Thread Pool values 5 times and it works for me for few years.
In your my.ini increase your max connections (100 connections to MySQL is pretty low number) (You have to change it in your L2j too). I had document from old l2j board but I can't find it.
In your my.ini increase your max connections (100 connections to MySQL is pretty low number) (You have to change it in your L2j too). I had document from old l2j board but I can't find it.

I'm not here only for food!
- Ezvra
- Posts: 53
- Joined: Mon Dec 28, 2009 10:22 pm
Re: Fine server tunning
Yes! I have increased sql settings and connections (found a post from unafraid with higher values, thnx btw) but the only thing not working is that code for startgameserver.bat, i had to put the old one, however server is going a lot nice now with those changes, i wonder how more efficient could be if that code would work for me, any idea about it?tukune wrote:Ezra already posted mysql.iniMELERIX wrote:I guess is mysql settings, try to post pictures about what mysql settings you use with mysql wizard.
query_cache_size=0
table_cache=256
tmp_table_size=35M
...
He have many many memory. but he does not use it.
-
- L2j Veteran
- Posts: 967
- Joined: Sun Mar 11, 2007 7:49 pm
- Location: Ukraine
Re: Fine server tunning
http://l2jserver.com/old-forum/thread.p ... adid=27154pinkcore wrote:I had document from old l2j board but I can't find it.
this?
- pinkcore
- Posts: 247
- Joined: Fri Jul 24, 2009 3:04 am
- Location: Czech Republic
Re: Fine server tunning
Yes, that's it! This guide is good with few changes according to your hardware.lion wrote:http://l2jserver.com/old-forum/thread.p ... adid=27154pinkcore wrote:I had document from old l2j board but I can't find it.
this?

I'm not here only for food!
- badboy29
- Posts: 417
- Joined: Fri Apr 24, 2009 5:34 am
- Location: Brazil
Re: Fine server tunning
Still don't understand why Thread Configuration need to set 2x, 3x or 5x. Someone can explain this better 
I posted about this here too: viewtopic.php?f=80&t=21007

I posted about this here too: viewtopic.php?f=80&t=21007
Aka UnHoly
- pinkcore
- Posts: 247
- Joined: Fri Jul 24, 2009 3:04 am
- Location: Czech Republic
Re: Fine server tunning
badboy29 wrote:Still don't understand why Thread Configuration need to set 2x, 3x or 5x. Someone can explain this better
I posted about this here too: viewtopic.php?f=80&t=21007
Jurchiks wrote:nobody really knows what those configs do except those who've read the whole code
nitrozik wrote:Here is defined how much threads can be created(Correct me if im wrong!).These settings have always been a mistery to me so i have experimented allot with them.
Before setting them really high you should once again consider your cpu. Dont set them to high if you dont have a fast cpu.
It's all about experimenting. [From Java vs .NET (JavaZone - Java 4-Ever) film]pinkcore wrote:I have increased Thread Pool values 5 times and it works for me for few years
Last edited by pinkcore on Sun Mar 13, 2011 5:17 pm, edited 1 time in total.
I'm not here only for food!
- badboy29
- Posts: 417
- Joined: Fri Apr 24, 2009 5:34 am
- Location: Brazil
Re: Fine server tunning
Ok, but some L2J Dev's say all time for not set this too high. Look what nbd post here a some time ago:
viewtopic.php?f=80&t=12159&start=15
viewtopic.php?f=80&t=12159&start=15
Aka UnHoly
- Sirpaypi
- Posts: 108
- Joined: Mon May 18, 2009 11:51 pm
- Location: Moяocco.
Re: Fine server tunning
I was serious about that, and the owner of that server is in L2J teamUnAfraid wrote:I saw L2jServer under iPhone xDSirpaypi wrote:I saw a L2J server with 6k populationpapadkostas wrote:18GB of Ram?
can an l2j server fill that enormous amount of memory
with less than 1k people?
(never seen l2j server more than 1k population at same time)

Saying that Java is nice because it works on all OSes is like saying that anal sex is nice because it works on all genders.