Jump to content
  • 0

how to increase java heap size


baaka

Question

10 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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

 

;)

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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.

 

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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? :)

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...