baaka Posted March 26, 2011 Posted March 26, 2011 can anyone explain how to increase java heap size? i've read topics here but noone had written this.
0 Inviction Posted March 26, 2011 Posted March 26, 2011 Allow more ram in your startup.bat. Wrong section
0 Reptant_ Posted March 26, 2011 Posted March 26, 2011 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 SlyWhiteSheep Posted March 27, 2011 Posted March 27, 2011 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 baaka Posted March 27, 2011 Author Posted March 27, 2011 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 baaka Posted March 27, 2011 Author Posted March 27, 2011 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 minideed Posted March 27, 2011 Posted March 27, 2011 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 Inviction Posted March 27, 2011 Posted March 27, 2011 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 baaka Posted March 28, 2011 Author Posted March 28, 2011 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 Intrepid Posted March 28, 2011 Posted March 28, 2011 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
0 Reptant_ Posted March 29, 2011 Posted March 29, 2011 thanks a lot i have solved the problem using java 64 bit Locked then , next time you want to ask something, please use correct section
Question
baaka
can anyone explain how to increase java heap size? i've read topics here but noone had written this.
10 answers to this question
Recommended Posts