Jump to content
  • 0

[RAM] How to increase it?


Question

15 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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

  • 0
Posted

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.
  • 0
Posted

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.

  • 0
Posted

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.

  • 0
Posted

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.
  • 0
Posted

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:

 

10qxisg.png

 

 

Someone can help me to fix this?

 

Thanks,

 

Regards.

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...