Solved Server memory problems

  • 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

HeroUltraOmega

New Member
Jul 29, 2019
10
0
0
OS is Windows 7 home premium.
Running my minecraft server on my local network
Server version: FTB Unleashed 1.1.2
I have not added in any mods into the modpack other than enabling all disabled mods except for Death timer, enchanting plus, power converters, and vending.
(Not sure what server specs is)

My problem consists of my server closing the instant it is opened. In the ServerStart.bat file I tried adding more ram, but when I do the server crashes down instant it loads, not even enough time to read the error message. Here is what I changed it to
Code:
java -Xms1G -Xmx2G -XX:PermSize=128m -jar ftbserver.jar
Other than that if I leave it the way it is, the server starts up just fine other than lag and frame rate problems. I'm not sure how else to describe my problem.
 

cjm721

New Member
Jul 29, 2019
734
0
1
Add pause on the next line. And I would check to make sure your running 64bit java by default (type java -version in cmd).
 

HeroUltraOmega

New Member
Jul 29, 2019
10
0
0
Upon doing that I received the following information
Code:
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)
EDIT: Also what do you mean add a pause on the next line?
 

HeroUltraOmega

New Member
Jul 29, 2019
10
0
0
I could really use some help, my friend keeps getting disconnected from my server. Can't even run a quarry on the server either.
 

HeroUltraOmega

New Member
Jul 29, 2019
10
0
0
Upon doing that I received the following information
Code:
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)
EDIT: Also what do you mean add a pause on the next line?

Found out what you meant by pause, and this is the error I get when server is trying to get up.
Code:
C:\Users\Miller\Desktop\Minecraft stuff\Server\Feed The Beast Servers\Unleashed-
server - TEST>java -Xms1024M -Xmx3G -XX:PermSize=128m -jar ftbserver.jar
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\Miller\Desktop\Minecraft stuff\Server\Feed The Beast Servers\Unleashed-
server - TEST>pause
Press any key to continue . . .
I've been doing some outside research and found out that I wasn't running 64 bit version of java by default, but I'm not sure how to change that. I already have it installed though.

EDIT:
Solved it! I changed the text in my ServerStart.bat from
Code:
[FONT=Consolas]java -Xms1024M -Xmx3G -XX:PermSize=128m -jar ftbserver.jar[/FONT]
To
Code:
"C:\Program Files\Java\jre7\bin\java.exe" -Xms1024M -Xmx3G -XX:PermSize=128m -jar ftbserver.jar
And now it's running the 64bit version of java I believe, and it starts up without a problem.
 

longplayer

New Member
Jul 29, 2019
20
0
0
i think its a propblem with the system variables... if you try to use without a path it has to has the system variable for java, you can change this somehow i think but if its working like this its fine...
also the message:
Could not reserve enough space for object heap
is saying that java cant reserve memory for the process to work