temple13 Posted April 22, 2012 Posted April 22, 2012 Hey guys, I have 8GB of RAM but as I can see the server is using only 1 GB, where I can increase it? Thanks, Regards Quote
0 Bleadd Posted April 22, 2012 Posted April 22, 2012 Windows 7 ... GL :P So in the startGameServer.bat java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer -Xms1024m -Xmx1024m = 1 Go ram -Xms2048m -Xmx2048m = 2 go Ram But only in binaries numbers, example if you want 1.5 Go, it's 1024 + 512, not 1500 Quote
0 temple13 Posted April 22, 2012 Author Posted April 22, 2012 I have this: java -Dfile.encoding=UTF8 -Xmx1024m -Xms512m -Xmn256m -XX:PermSize=128m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -XX:+UseSerialGC -cp ./lib/*;l2jfrozen-core.jar com.l2jfrozen.gameserver.GameServer So it would be like: java -Dfile.encoding=UTF8 -Xmx4096m -Xms4096m -Xmn4096m -XX:PermSize=128m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -XX:+UseSerialGC -cp ./lib/*;l2jfrozen-core.jar com.l2jfrozen.gameserver.GameServer With this the gameserver will use 4GB, isnt it? Thanks, Regards Quote
0 Zaldron Posted April 22, 2012 Posted April 22, 2012 I have this: java -Dfile.encoding=UTF8 -Xmx1024m -Xms512m -Xmn256m -XX:PermSize=128m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -XX:+UseSerialGC -cp ./lib/*;l2jfrozen-core.jar com.l2jfrozen.gameserver.GameServer So it would be like: java -Dfile.encoding=UTF8 -Xmx4096m -Xms4096m -Xmn4096m -XX:PermSize=128m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -XX:+UseSerialGC -cp ./lib/*;l2jfrozen-core.jar com.l2jfrozen.gameserver.GameServer With this the gameserver will use 4GB, isnt it? Thanks, Regards Yes. Quote
0 Bleadd Posted April 22, 2012 Posted April 22, 2012 XMX = max Xmn = min xms = ? average i guess.. Quote
0 Tryskell Posted April 23, 2012 Posted April 23, 2012 XMX = max Xmn = min xms = ? average i guess.. http://www.caucho.com/resin-3.0/performance/jvm-tuning.xtp Quote
0 temple13 Posted April 23, 2012 Author Posted April 23, 2012 So guys, if I put this: Xmx4096m -Xms4096m -Xmn4096m it will use always 4GB, but if I put this: -Xmx4096m -Xms4096m -Xmn1024m it will use always 1GB but if the server need more RAM it'll take it but with the limit in 4GB? Thanks, Regards. Quote
0 temple13 Posted April 23, 2012 Author Posted April 23, 2012 This will help to server no lag??? Well, if you have 8GB ram and the server is only using 1GB, if the server use 4GB it will be works more fluid, think so. Quote
0 Tryskell Posted April 24, 2012 Posted April 24, 2012 So guys, if I put this: Xmx4096m -Xms4096m -Xmn4096m it will use always 4GB, but if I put this: -Xmx4096m -Xms4096m -Xmn1024m it will use always 1GB but if the server need more RAM it'll take it but with the limit in 4GB? Thanks, Regards. For efficient garbage collection, the -Xmn value should be lower than the -Xmx value. Quote
0 temple13 Posted April 24, 2012 Author Posted April 24, 2012 So I editted the main settings: java -Dfile.encoding=UTF8 -Xmx1024m -Xms512m -Xmn256m -XX:PermSize=128m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -XX:+UseSerialGC -cp ./lib/*;l2jfrozen-core.jar com.l2jfrozen.gameserver.GameServer To this: java -Dfile.encoding=UTF8 -Xmx4096 -Xms512m -Xmn256m -XX:PermSize=128m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -XX:+UseSerialGC -cp ./lib/*;l2jfrozen-core.jar com.l2jfrozen.gameserver.GameServer And it gives me an error: Someone can help me to fix this? Thanks, Regards. Quote
0 Tryskell Posted April 25, 2012 Posted April 25, 2012 All is 64 bits ? JDK, OS, whatever ? More infos : http://javahowto.blogspot.fr/2006/06/6-common-errors-in-setting-java-heap.html See number 5. Quote
0 SweeTs Posted April 25, 2012 Posted April 25, 2012 All is 64 bits ? JDK, OS, whatever ? Look at screen, it says x86 ^^ Quote
0 temple13 Posted April 25, 2012 Author Posted April 25, 2012 Something's wrong somewhere: Maybe because my java files? I got lot of problems with java ... Quote
Question
temple13
Hey guys,
I have 8GB of RAM but as I can see the server is using only 1 GB, where I can increase it?
Thanks,
Regards
15 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.