FTB using only 400 MB of RAM

  • 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
Status
Not open for further replies.

ceadi

New Member
Jul 29, 2019
7
0
0
As said in the title, my feed the beast is only using 400 MB of ram, sometimes goes up to 500 mb if I'm lucky.
And as you probably guessed, my game is laggin real bad. Not even 25 fps with smallest settings and optifine.
I have a total of 6 GB of ram, 4,5 of which is usable for ftb. But its only using 400 ******* MB!
Anyone have the same problem or even solution for this?
I have this problem even with normal minecraft, indeed.
 

Velotican

New Member
Jul 29, 2019
799
0
0
Download 64-bit Java. 32-bit Java is very limited on the amount of memory you have access to.
 

ceadi

New Member
Jul 29, 2019
7
0
0
I should have 64-bit java, but I'm going to check if that's the problem.
 

frostmute

New Member
Jul 29, 2019
38
0
0
specify it in the .bat or .sh you use to start the server:

java -Xms512M -Xmx4G -jar whateveryourjarnameis.jar

(or something similar)
 

frostmute

New Member
Jul 29, 2019
38
0
0
or, i just realized... you are probably referring to your CLIENT memory usage...

in the FTB launcher, click the options tab, then drag the slider over to the right on the 'RAM Maximum' setting.

if it wont let you go up to 4Gb you have the wrong java installed.
 

ceadi

New Member
Jul 29, 2019
7
0
0
Yeah I got kinda confused when you said "server", but I definately know how to edit client memory, and currently I'm having it at 4,5 even though I could go up to 5,5 GB.
 

Velotican

New Member
Jul 29, 2019
799
0
0
The Java controls mentioned earlier would suffice.

Open the FTB Launcher, go to Options > Advanced Options, find the Additional Java Arguments box. This is where you can give Java special loading commands to fix settings and problems directly.

In that box, type:

Code:
-Xms4G -Xmx4G

This sets the minimum and maximum RAM size Minecraft can use to 4GB. It's not normally recommended to have a high minimum RAM value but in your case it may be helpful.
 

ceadi

New Member
Jul 29, 2019
7
0
0
It doesn't work for me, also tried with less memory :/ I mean that the minimum memory doesn't work for me.
 

Velotican

New Member
Jul 29, 2019
799
0
0
If that doesn't work then something somewhere else is choking the amount of RAM Java has access to, and it has nothing to do with Minecraft. :(
 

frostmute

New Member
Jul 29, 2019
38
0
0
i concur, it looks like something external to minecraft is causing issues.

i would uninstall any and every java that you can find, and re-install only the most current 64bit java 7.

also.... are you sure you are on a 64bit os? have to ask....
 

Zelfana

New Member
Jul 29, 2019
813
0
1
Can you take a screenshot of what your F3 screen's memory info is saying so we can tell better what is happening? And also your command line arguments and launcher's memory setting for that. Minecraft uses 910MB by default so your situation sounds like the 400MB number is how much is actually being used and the maximum is something else.

Upping the memory isn't a good idea if you have the game on for long times. You should keep it reasonably low and instead make the memory more efficient with this command line option:
Code:
-XX:UseSSE=3 -XX:+AggressiveOpts
It makes java free up memory more often in small amounts instead of sparingly in big amounts which causes lag spikes. I prefer the constant 1-2 lower fps to the lag spikes.
 
Status
Not open for further replies.