Page 1 of 1

[Info] ## Java Memory ##

Posted: Sat May 23, 2009 10:01 pm
by Mage
Hi,

I have a machine with OS Linux and with 4 Gb of Ram.

I tried to modify the file GameServer_loop.sh, and i saw the results:

I use this string java -server -Xmx2024m -Xms1540m -Xmn1024m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -cp ./../libs/*:l2jserver.jar net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1

If i Tried to Increase the Xmx the Server gives strange error, for Example the Server doesn't load Geodata.

I have a question: If i Increase the valor of Java, the Server go goodest or not? Or I must use low valor...

Thankz for the Answers.

Ps: This string that I use is good? "java -server -Xmx2024m -Xms1540m -Xmn1024m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -cp ./../libs/*:l2jserver.jar net.sf.l2j.gameserver.GameServer > log/stdout.log 2>&1"

Bye

Re: [Info] ## Java Memory ##

Posted: Sun May 24, 2009 12:29 pm
by _DS_
You should use 64-bit version of the OS and java to be able use more memory.

Re: [Info] ## Java Memory ##

Posted: Sun May 24, 2009 12:46 pm
by momo61
_DS_ wrote:You should use 64-bit version of the OS and java to be able use more memory.
oh ? So if i have windows server 2003 x64 bit and 12GB RAM i can give the gameserver more RAM ?

Re: [Info] ## Java Memory ##

Posted: Sun May 24, 2009 3:02 pm
by ThePhoenixBird
momo61 wrote:
_DS_ wrote:You should use 64-bit version of the OS and java to be able use more memory.
oh ? So if i have windows server 2003 x64 bit and 12GB RAM i can give the gameserver more RAM ?
Yes

Re: [Info] ## Java Memory ##

Posted: Mon May 25, 2009 1:21 am
by badboy29
Machine with 8GB Ram, what's best setting ?

Code: Select all

start /wait /realtime java -server -Xmx4096m -Xms4096m -Xmn1024m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts -cp ./../libs/*:l2jserver.jar net.sf.l2j.gameserver.GameServer 
This GC setting is better ?

Re: [Info] ## Java Memory ##

Posted: Mon May 25, 2009 8:20 am
by momo61
ThePhoenixBird wrote:
momo61 wrote:
_DS_ wrote:You should use 64-bit version of the OS and java to be able use more memory.
oh ? So if i have windows server 2003 x64 bit and 12GB RAM i can give the gameserver more RAM ?
Yes
O_o could you tell me how I must change the gameserver specs to add more RAM ? I have 6GB DDR3 RAM.

these are my current settings:

Code: Select all

@echo offtitle Game Server Console:startecho Starting L2J Game Server.echo.java -server  -Xmx4096m -Xms2048m -Xmn1024m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServerif ERRORLEVEL 2 goto restartif ERRORLEVEL 1 goto errorgoto end:restartecho.echo Admin Restart ...echo.goto start:errorecho.echo Server terminated abnormalyecho.:endecho.echo server terminatedecho.goto startpause

Re: [Info] ## Java Memory ##

Posted: Wed May 27, 2009 7:41 pm
by momo61
any help at all ? or just a flame please ?

Re: [Info] ## Java Memory ##

Posted: Fri May 29, 2009 4:34 am
by Emanuel01
If i have 6-8 gb ram on my computer, the l2j server will not use them ?
:D

Re: [Info] ## Java Memory ##

Posted: Fri May 29, 2009 9:50 am
by momo61
Emanuel01 wrote:If i have 6-8 gb ram on my computer, the l2j server will not use them ?
:D
if you have a 64 bit system, then the gameserver can use them ... but I dont know how the settings should be.

Re: [Info] ## Java Memory ##

Posted: Fri May 29, 2009 1:16 pm
by StevenP
I had a lot of problem with x64 Java so I reverted to 32 bit version (running on ubuntu x64) do you know if there is an x64 stable java runtime ?