How to allocate more memory to FeedtheBeast Server?

  • 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

glasspelican

New Member
Jul 29, 2019
187
0
0
you have a file named ServerStart.bat or ServerStart.sh on mac or linux
open in your favourite text editor

it will look something like
Code:
java -Xms512M -Xmx1G -jar ftbserver.jar

-Xms512M Min heap size in ram
-Xmx1G Max heap size

I would recommend adding "-server" to the command
Cheers
Glass
 

Jemjem787

New Member
Jul 29, 2019
52
0
0
what do you mean by adding -server to this command? Just put it at the end so its like ftbserver.jar -server
 

glasspelican

New Member
Jul 29, 2019
187
0
0
The server tag tweeks the java garbage collector and compiler
The server will start slower, but run with less lag, and use a bit less ram
 

glasspelican

New Member
Jul 29, 2019
187
0
0
Does what work, Adding more memory or the -server tag?

what is your question?
What problem are you trying to solve?
 

Mistereddy

New Member
Jul 29, 2019
4
0
0
Well my question is: Does Ftb still work by adding more memory in the way you described? because for me it doesn't.
Why? well i just had a computer upgrade with 32 Gigs of ram on it. and i want to make use of it :)
i know it doesn't need it. but i still lag without the extra ram... and it's not lagging because of my CPU or my vid card. that i know for sure.
 

glasspelican

New Member
Jul 29, 2019
187
0
0
There can be any number of problems that can cause a server to lag, not just ram or cpu
what cpu do you have? Operating system?
I have observed that giving a server to much ram can cause issues as well, try it with 5Gig
can you open the command prompt or terminal and run
Code:
java -version
 

Jemjem787

New Member
Jul 29, 2019
52
0
0
i7-3770k, 8Gig ram. windows 7 home, 64bit. Allocated 1gig-3gig.

java -version brings up

java version "1.7.0_10"
Build 1.7.0_10b18
64bit server vm (build 23.6-b04 mixed mode
 

Mistereddy

New Member
Jul 29, 2019
4
0
0
i5 dunno which exactly, it runs at 3.2 though. 32 gig ram, windows vista, 32-bit. (the 32 bit doesn't seem to be the problem though).

java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) Client VM (build 23.5-b02, mixed mode, sharing)
 

glasspelican

New Member
Jul 29, 2019
187
0
0
The 32 bit version of java can only use 2G of ram, using a 64bit os also lets it process more data in a clock cycle
you are also defaulting to a client version of the jvm add the -server tag detailed above
 

Mistereddy

New Member
Jul 29, 2019
4
0
0
You got to be shitting me.... -.-" no i didnt know that... ugh.. well, i'm going to upgrade then...