Jump to content
  • 0

[RAM] How to increase it?


Question

Posted

Hey guys,

 

w9b8nm.png

 

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

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

  • 0
Posted

Something's wrong somewhere:

 

10x6p8m.jpg

 

b7fhgl.jpg

 

Maybe because my java files?

 

I got lot of problems with java ...

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock