Solved FTB server and allocating more ram to server HELP please

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

voh_relic

New Member
Jul 29, 2019
7
0
0
So I modified my Java to be "-Xincgc -Xmx8192m"

Then I changed my server.bat file from "java -Xms512M -Xmx1G -jar direwolf20.jar"

to: "java -Xms1024M -Xmx2G -jar direwolf20.jar"

but when I click to open it dose not open it flashes on the screen and that is it.
 

maxpowa

New Member
Jul 29, 2019
74
0
0
What do you mean by "I modified my Java," as in you modified its default arguments or changed some random thing?
 

voh_relic

New Member
Jul 29, 2019
7
0
0
I went into Control panel -> Java ->under the Java tab -> View and then inputed "-Xincgc -Xmx8192m" under Runtime Parameters. That should let java use up to 8g correct?
 

maxpowa

New Member
Jul 29, 2019
74
0
0
What you did is set a default parameter for any java start. That would allow you to run a server with 8gb allocated without having to type "-Xmx8G" in your start batch. I think your problem could be in capitalization though. Try replacing this "-Xmx8192m" with "-Xmx8192M". If that doesn't work try removing all runtime parameters and putting them into your start batch. Which changes your batch from this "java -Xms1024M -Xmx2G -jar direwolf20.jar" to this "java -Xms1024M -Xmx8G -Xincgc -jar direwolf20.jar"
 

voh_relic

New Member
Jul 29, 2019
7
0
0
Error i get when i use "java -Xms1024M -Xmx8G -Xincgc -jar direwolf20.jar" is:


Invalid maxium heap size: -Xmx8G
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine
Error: fatal exception has occurred. program will exit.

When I use "-Xincgc -Xmx8192M" in Java and '"Xms1024M -Xmx2G -jar direwolf20.jar" in my .bat file i get this:

Error occirred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine
Error: fatal exception has occurred. program will exit.

I have 16g in my computer so it should be fine.
 

maxpowa

New Member
Jul 29, 2019
74
0
0
Do you have 32bit or 64bit windows? In the off chance that you have 32bit, the maximum RAM you can allocate is 4GB. If you have 64bit you might have 32bit java, which also limits at 4GB. I'd advise upgrading your Java to ensure you have 64bit, as it is possible that you could have downloaded the 32bit version instead. You can find Java 64bit here.
 

maxpowa

New Member
Jul 29, 2019
74
0
0
Post the output of "java -version" - in some cases even though you have 64bit java installed, 32bit java will be the one with the environment variable.