Jump to content
  • 0

how to increase java heap size


Question

10 answers to this question

Recommended Posts

  • 0
Posted

can anyone explain how to increase java heap size? i've read topics here but noone had written this.

Where did u read topics?In this section?

 

There are more than 100 topics about this @ dev help

  • 0
Posted

Where did u read topics?In this section?

 

There are more than 100 topics about this @ dev help

 

Yea there are guides everywhere reguarding this.

 

Open up gameserver.bat and look at the line that says:

java -Xmx512m -cp ./libs/*; net.sf.l2j.gameserver.GameServer

 

Replace it with something like this:

java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts -cp ./libs/*; net.sf.l2j.gameserver.GameServer

 

;)

  • 0
Posted

i have 8 GB of RAM and when i write java -Xmx2024m -Xms2024m -cp  in gameserver.bat and start the server, the gameserver writes Error occurred during initialization of VM

The size of the object heap + VM data exceeds the maximum representable size

  • 0
Posted

i have 8 GB of RAM and when i write java -Xmx2024m -Xms2024m -cp  in gameserver.bat and start the server, the gameserver writes Error occurred during initialization of VM

The size of the object heap + VM data exceeds the maximum representable size

 

i wrote that and it said this:

 

 

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

 

  • 0
Posted

i wrote that and it said this:

 

 

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

 

 

You are probably using 32bit Java and if will not go over 1520mb, for anything higher you have to run 64bit java.

  • 0
Posted

i wrote that and it said this:

 

 

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

 

 

Try java -Xmx2024m -Xms1536m      Little tip always have Xms set to a smaller number than Xmx. Also make sure you make it smaller in increments like 256, 512,1024  see where I'm going with that? :)

  • 0
Posted

You are probably using 32bit Java and if will not go over 1520mb, for anything higher you have to run 64bit java.

 

thanks a lot i have solved the problem using java 64 bit

  • 0
Posted

Try java -Xmx2024m -Xms1536m      Little tip always have Xms set to a smaller number than Xmx. Also make sure you make it smaller in increments like 256, 512,1024  see where I'm going with that? :)

 

actually until its not bigger doesnt matter and it has no effect at all having xms at the same value xms is by far more than enough

Guest
This topic is now closed to further replies.


×
×
  • Create New...