Fine server tunning

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
papadkostas
Posts: 128
Joined: Fri Jul 02, 2010 8:34 am
Location: Greece
Contact:

Re: Fine server tunning

Post 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)
I'm learning as fast..as roadrunner - Beeep Beeeep
Image
User avatar
Sirpaypi
Posts: 108
Joined: Mon May 18, 2009 11:51 pm
Location: Moяocco.

Re: Fine server tunning

Post 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
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.
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Fine server tunning

Post 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
Image
User avatar
Ezvra
Posts: 53
Joined: Mon Dec 28, 2009 10:22 pm

Re: Fine server tunning

Post 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.
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: Fine server tunning

Post by momo61 »

So, the conclusion for a good server performance with a lot of players is :D?
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Fine server tunning

Post by MELERIX »

I guess is mysql settings, try to post pictures about what mysql settings you use with mysql wizard.
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: Fine server tunning

Post 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.
User avatar
pinkcore
Posts: 247
Joined: Fri Jul 24, 2009 3:04 am
Location: Czech Republic

Re: Fine server tunning

Post 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. :(
I'm not here only for food!
User avatar
Ezvra
Posts: 53
Joined: Mon Dec 28, 2009 10:22 pm

Re: Fine server tunning

Post 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?
lion
L2j Veteran
L2j Veteran
Posts: 967
Joined: Sun Mar 11, 2007 7:49 pm
Location: Ukraine

Re: Fine server tunning

Post 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?
User avatar
pinkcore
Posts: 247
Joined: Fri Jul 24, 2009 3:04 am
Location: Czech Republic

Re: Fine server tunning

Post 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. :)
I'm not here only for food!
User avatar
badboy29
Posts: 417
Joined: Fri Apr 24, 2009 5:34 am
Location: Brazil

Re: Fine server tunning

Post 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
Aka UnHoly
User avatar
pinkcore
Posts: 247
Joined: Fri Jul 24, 2009 3:04 am
Location: Czech Republic

Re: Fine server tunning

Post 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]
Last edited by pinkcore on Sun Mar 13, 2011 5:17 pm, edited 1 time in total.
I'm not here only for food!
User avatar
badboy29
Posts: 417
Joined: Fri Apr 24, 2009 5:34 am
Location: Brazil

Re: Fine server tunning

Post 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
Aka UnHoly
User avatar
Sirpaypi
Posts: 108
Joined: Mon May 18, 2009 11:51 pm
Location: Moяocco.

Re: Fine server tunning

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