Page 2 of 3

Re: Fine server tunning

Posted: Mon Mar 07, 2011 9:41 pm
by papadkostas
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)

Re: Fine server tunning

Posted: Mon Mar 07, 2011 10:41 pm
by Sirpaypi
papadkostas 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)
I saw a L2J server with 6k population :D

Re: Fine server tunning

Posted: Tue Mar 08, 2011 8:08 pm
by UnAfraid
Sirpaypi wrote:
papadkostas 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)
I saw a L2J server with 6k population :D
I saw L2jServer under iPhone xD

Re: Fine server tunning

Posted: Sat Mar 12, 2011 12:10 pm
by Ezvra
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:

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 
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.

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 :)
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.

Re: Fine server tunning

Posted: Sat Mar 12, 2011 1:43 pm
by momo61
So, the conclusion for a good server performance with a lot of players is :D?

Re: Fine server tunning

Posted: Sun Mar 13, 2011 12:13 am
by MELERIX
I guess is mysql settings, try to post pictures about what mysql settings you use with mysql wizard.

Re: Fine server tunning

Posted: Sun Mar 13, 2011 4:47 am
by tukune
MELERIX wrote:I guess is mysql settings, try to post pictures about what mysql settings you use with mysql wizard.
Ezra already posted mysql.ini
query_cache_size=0
table_cache=256
tmp_table_size=35M
...

He have many many memory. but he does not use it.

Re: Fine server tunning

Posted: Sun Mar 13, 2011 11:28 am
by pinkcore
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. :(

Re: Fine server tunning

Posted: Sun Mar 13, 2011 2:34 pm
by Ezvra
tukune wrote:
MELERIX wrote:I guess is mysql settings, try to post pictures about what mysql settings you use with mysql wizard.
Ezra already posted mysql.ini
query_cache_size=0
table_cache=256
tmp_table_size=35M
...

He have many many memory. but he does not use it.
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?

Re: Fine server tunning

Posted: Sun Mar 13, 2011 2:36 pm
by lion
pinkcore wrote:I had document from old l2j board but I can't find it. :(
http://l2jserver.com/old-forum/thread.p ... adid=27154
this?

Re: Fine server tunning

Posted: Sun Mar 13, 2011 4:59 pm
by pinkcore
lion wrote:
pinkcore wrote:I had document from old l2j board but I can't find it. :(
http://l2jserver.com/old-forum/thread.p ... adid=27154
this?
Yes, that's it! This guide is good with few changes according to your hardware. :)

Re: Fine server tunning

Posted: Sun Mar 13, 2011 5:06 pm
by badboy29
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

Re: Fine server tunning

Posted: Sun Mar 13, 2011 5:13 pm
by pinkcore
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.
pinkcore wrote:I have increased Thread Pool values 5 times and it works for me for few years
It's all about experimenting. [From Java vs .NET (JavaZone - Java 4-Ever) film]

Re: Fine server tunning

Posted: Sun Mar 13, 2011 5:17 pm
by badboy29
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

Re: Fine server tunning

Posted: Mon Mar 14, 2011 9:22 pm
by Sirpaypi
UnAfraid wrote:
Sirpaypi wrote:
papadkostas 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)
I saw a L2J server with 6k population :D
I saw L2jServer under iPhone xD
I was serious about that, and the owner of that server is in L2J team :D ask him or maybe he will show up :p