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
[Info] ## Java Memory ##
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 277
- Joined: Fri Apr 17, 2009 2:29 pm
[Info] ## Java Memory ##
Forum rules: Please do not use or alter the official L2J Avatars/Signatures/Names for your personal use.
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: [Info] ## Java Memory ##
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;
public static final int PI = 3.1415926535897932384626433832795;
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: [Info] ## Java Memory ##
oh ? So if i have windows server 2003 x64 bit and 12GB RAM i can give the gameserver more RAM ?_DS_ wrote:You should use 64-bit version of the OS and java to be able use more memory.
- ThePhoenixBird
- L2j Inner Circle
- Posts: 1857
- Joined: Fri May 27, 2005 5:11 pm
Re: [Info] ## Java Memory ##
Yesmomo61 wrote:oh ? So if i have windows server 2003 x64 bit and 12GB RAM i can give the gameserver more RAM ?_DS_ wrote:You should use 64-bit version of the OS and java to be able use more memory.
- badboy29
- Posts: 417
- Joined: Fri Apr 24, 2009 5:34 am
- Location: Brazil
Re: [Info] ## Java Memory ##
Machine with 8GB Ram, what's best setting ?
This GC setting is better ?
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
Aka UnHoly
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: [Info] ## Java Memory ##
O_o could you tell me how I must change the gameserver specs to add more RAM ? I have 6GB DDR3 RAM.ThePhoenixBird wrote:Yesmomo61 wrote:oh ? So if i have windows server 2003 x64 bit and 12GB RAM i can give the gameserver more RAM ?_DS_ wrote:You should use 64-bit version of the OS and java to be able use more memory.
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
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: [Info] ## Java Memory ##
any help at all ? or just a flame please ?
-
- Posts: 15
- Joined: Mon May 18, 2009 8:35 pm
Re: [Info] ## Java Memory ##
If i have 6-8 gb ram on my computer, the l2j server will not use them ?


- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: [Info] ## Java Memory ##
if you have a 64 bit system, then the gameserver can use them ... but I dont know how the settings should be.Emanuel01 wrote:If i have 6-8 gb ram on my computer, the l2j server will not use them ?
-
- Posts: 90
- Joined: Mon Jun 09, 2008 1:31 pm
Re: [Info] ## Java Memory ##
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 ?