Problem Server Ram Problem Need Help!

AndersWithTheCat

Well-Known Member
Jan 23, 2013
130
26
63
Denmark
Hey Ftb Dopes!

i have a big problem i have been working on the past 2 days and i can't find out why and how

i downloaded the ftb server unleashed 1.1.4 and it comes with the ''java -Xms512m -Xmx1G -XX:MaxPermSize=128M -jar ftbserver.jar'' and it start perfectly with it, but then i try to add more ram to ''java -Xms1024m -Xmx2G -XX:MaxPermSize=128M -jar ftbserver.jar'' and it says

C:\Users\anders\Desktop\Modded Server Setup>java -Xms1024m -Xmx2G -XX:MaxPermSiz
e=128M -jar ftbserver.jar nogui
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

C:\Users\anders\Desktop\Modded Server Setup>pause
Press any key to continue . . .

i have both tryed reinstalling Both 32 bit and 64 bit java,and i have no clue why it doing this, i have no problem addig more ram in ftb launcher it self,

Im running
CPU AMD A8 4500m
Ram 8gb
OS: Windows 8
Java: Both 32/64 bit installed


please help!
 

Staxed

New Member
Jul 29, 2019
1,019
-2
0
First, uninstall 32 bit java, there is no reason to have both installed...it will only cause conflicts

Second, make sure your 64bit java is up to date

Third, MaxPermSize should never be set, it can cause out of memory issues, java is good at handling it's own max permsize.

Fourth, try this and see what happens:

-Xms2048m -Xmx2048m -Xmn512m -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=31 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=40 -XX:GCPauseIntervalMillis=150 -XX:+AggressiveOpts -XX:permSize=1024m -XX:+TieredCompilation -XX:ReservedCodeCacheSize=2048m -XX:+UseCodeCacheFlushing -XX:CompileThreshold=1000 -jar “put your server jar name here” nogui

If you are running this on a desktop, you may need to decrease the xms/xmx amounts, this setup requires 5 gb of ram, so you should still be good with an 8gb system. This jvm argument setup was provided by Eyamaz, feel free to read his thread, lots of useful info.http://forum.feed-the-beast.com/threads/jvm-arguments-for-modded-minecraft-updated-9-22-13.28994/

If that doesn't work, let us know :D
 

AndersWithTheCat

Well-Known Member
Jan 23, 2013
130
26
63
Denmark
First, uninstall 32 bit java, there is no reason to have both installed...it will only cause conflicts

Second, make sure your 64bit java is up to date

Third, MaxPermSize should never be set, it can cause out of memory issues, java is good at handling it's own max permsize.

Fourth, try this and see what happens:

-Xms2048m -Xmx2048m -Xmn512m -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=31 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=40 -XX:GCPauseIntervalMillis=150 -XX:+AggressiveOpts -XX:permSize=1024m -XX:+TieredCompilation -XX:ReservedCodeCacheSize=2048m -XX:+UseCodeCacheFlushing -XX:CompileThreshold=1000 -jar “put your server jar name here” nogui

If you are running this on a desktop, you may need to decrease the xms/xmx amounts, this setup requires 5 gb of ram, so you should still be good with an 8gb system. This jvm argument setup was provided by Eyamaz, feel free to read his thread, lots of useful info.http://forum.feed-the-beast.com/threads/jvm-arguments-for-modded-minecraft-updated-9-22-13.28994/

If that doesn't work, let us know :D

this pop's up http://puu.sh/4Nigb.png
 

Staxed

New Member
Jul 29, 2019
1,019
-2
0
you do know you don't add these into a console and try to run them. You have to add them to the file that you are using to start the server.
 

Staxed

New Member
Jul 29, 2019
1,019
-2
0
from the screenshot you showed, something is wrong with your start.bat. Can you upload it, or paste the contents to pastebin?
 

AndersWithTheCat

Well-Known Member
Jan 23, 2013
130
26
63
Denmark
yours
java -Xms2048m Xmx2048m -Xmn512m -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=31 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=40 -XX:GCPauseIntervalMillis=150 -XX:+AggressiveOpts -XX:permSize=1024m -XX:+TieredCompilation -XX:ReservedCodeCacheSize=2048m -XX:+UseCodeCacheFlushing -XX:CompileThreshold=1000 -jar “ftbserver.jar” nogui
pause

mine
java -Xms1024M -Xmx2G -jar ftbserver.jar nogui
pause

the one what comes with ftb
java -Xms512M -Xmx1G -XX:permSize=128m -jar ftbserver.jar
 

Staxed

New Member
Jul 29, 2019
1,019
-2
0
does the one that came with ftb still work if you put that one in?

(also...remove the "" from the ftbserver.jar in mine)
 

Staxed

New Member
Jul 29, 2019
1,019
-2
0
for yours, try this:

java -Xms1024M -Xmx2G -XX:permSize=512m -jar ftbserver.jar nogui
 

Staxed

New Member
Jul 29, 2019
1,019
-2
0
no, I can help via this thread.

The fact that this is getting a strange character added to the command tells me the actual bat file might be messed up. Can you upload the file itself so I can take a look at it?
 

AndersWithTheCat

Well-Known Member
Jan 23, 2013
130
26
63
Denmark
Okey foundt out what the normal ftb server bat that comes with the server didn't work, then i tryed installing 32 bit java and it started again, i think my pc thinks it a 32, even though i have 8gb of ram and it says in 64 bit, System screen http://puu.sh/4NkDA.png[DOUBLEPOST=1381504216][/DOUBLEPOST]And none of those you send worked.
 

Staxed

New Member
Jul 29, 2019
1,019
-2
0
you just told me a few posts ago that the original bat did work?

if the original bat works, use that one, and edit just the amount of ram that xms/xmx have. Set them both to 1024M and see what happens. Change the conditions 1 or 2 at a time.
 

AndersWithTheCat

Well-Known Member
Jan 23, 2013
130
26
63
Denmark
i tryed many time, but i didn't try the original out after unintalling java 32 bit, and then i try it and it didn't work, then i installed 32bit again and it work with only the original still