FalloutBe Posted June 27, 2013 Posted June 27, 2013 Hello, On my current host, it seems that I can no longer run the TekkitLite.jar file without using the -Xmx -Xms parameters. If I don't use them, I get a java heap size error. Is there a way to get rid if this error without using these parameters? I don't like them because they make the .jar show a constant ram usage of (for example) 3GB while which is just the allocated memory.. I can no longer see how much ram it Actually uses. I want Tekkit to just change its ram usage to what it needs; I don't want it to be a constant number. Is that possible? Greetings, Fallout Quote
Maxis010 Posted June 27, 2013 Posted June 27, 2013 Don't sign your posts Set Xmx high but Xms really low This will give it a low allocation but allow it to request more RAM, once it starts requesting the RAM allocation is actual use Quote
FalloutBe Posted June 27, 2013 Author Posted June 27, 2013 It doesn't work, it still shows that it's using 3GB ram while I set it to -Xmx3G -Xms16m This is how I launch it: java -Xmx3G -Xms16m -jar TekkitLite.jar Quote
Meems33 Posted June 28, 2013 Posted June 28, 2013 What are you using to determine how much ram you are using? Quote
Meems33 Posted June 30, 2013 Posted June 30, 2013 I don't think top is reporting the correct information. If you have the jdk installed, you can use 'jstat' and 'jmap.' These should give you a more accurate estimate to verify that this is the case. The JVM should allocate memory as needed starting with 16M (you might want to increase this) and going up to up to 3GB. Are you sure you need to allocate 3G? Does the system have sufficient ram for you to run with (physical not virtual memory). Quote
FalloutBe Posted July 1, 2013 Author Posted July 1, 2013 Ah ok, thank you. The system has 4GB RAM. Is it ok then to use 3GB or is it better to lower it? Quote
Meems33 Posted July 1, 2013 Posted July 1, 2013 It depends on how many people are on the server at once. You could try 2G or so. Maybe allocate 250Mb per player online. Machines and chunkloaders will require more memory. Quote
FalloutBe Posted July 2, 2013 Author Posted July 2, 2013 Ok. I'm using 2GB now and it works fine :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.