[Info] ## Java Memory ##

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Mage
Posts: 277
Joined: Fri Apr 17, 2009 2:29 pm

[Info] ## Java Memory ##

Post 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
Forum rules: Please do not use or alter the official L2J Avatars/Signatures/Names for your personal use.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: [Info] ## Java Memory ##

Post by _DS_ »

You should use 64-bit version of the OS and java to be able use more memory.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: [Info] ## Java Memory ##

Post 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 ?
User avatar
ThePhoenixBird
L2j Inner Circle
L2j Inner Circle
Posts: 1857
Joined: Fri May 27, 2005 5:11 pm

Re: [Info] ## Java Memory ##

Post 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
User avatar
badboy29
Posts: 417
Joined: Fri Apr 24, 2009 5:34 am
Location: Brazil

Re: [Info] ## Java Memory ##

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

Re: [Info] ## Java Memory ##

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

Re: [Info] ## Java Memory ##

Post by momo61 »

any help at all ? or just a flame please ?
Emanuel01
Posts: 15
Joined: Mon May 18, 2009 8:35 pm

Re: [Info] ## Java Memory ##

Post by Emanuel01 »

If i have 6-8 gb ram on my computer, the l2j server will not use them ?
:D
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: [Info] ## Java Memory ##

Post 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.
StevenP
Posts: 90
Joined: Mon Jun 09, 2008 1:31 pm

Re: [Info] ## Java Memory ##

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