baaka Posted March 26, 2011 Share Posted March 26, 2011 can anyone explain how to increase java heap size? i've read topics here but noone had written this. Link to comment Share on other sites More sharing options...
0 Inviction Posted March 26, 2011 Share Posted March 26, 2011 Allow more ram in your startup.bat. Wrong section Link to comment Share on other sites More sharing options...
0 Reptant_ Posted March 26, 2011 Share 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 Link to comment Share on other sites More sharing options...
0 SlyWhiteSheep Posted March 27, 2011 Share 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 ;) Link to comment Share on other sites More sharing options...
0 baaka Posted March 27, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
0 baaka Posted March 27, 2011 Author Share 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. Link to comment Share on other sites More sharing options...
0 minideed Posted March 27, 2011 Share 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. Link to comment Share on other sites More sharing options...
0 Inviction Posted March 27, 2011 Share 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? :) Link to comment Share on other sites More sharing options...
0 baaka Posted March 28, 2011 Author Share 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 Link to comment Share on other sites More sharing options...
0 Intrepid Posted March 28, 2011 Share 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 Link to comment Share on other sites More sharing options...
0 Reptant_ Posted March 29, 2011 Share 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 Link to comment Share on other sites More sharing options...
Question
baaka
can anyone explain how to increase java heap size? i've read topics here but noone had written this.
Link to comment
Share on other sites
10 answers to this question
Recommended Posts