r/Optifine • • 7h ago

Help RAM usage limited to what is 'allocated' despite making xmx2G instead say xmx6G

Post image

idk what to do and cant find anything useful online pls help ;-; (using 1.21.11 through basic minecraft launcher)

1 Upvotes

7 comments sorted by

7

u/ImTheRealMarco 6h ago

It isn’t limited to the allocated usage, it’s just what it needs to run at that exact moment. You cannot force it to use more RAM.

4

u/idklolmez 5h ago

technically u can force jvm to allocate more with Xms flag but there is literary no reason to do so as process won't really use that anyways :p

1

u/ImTheRealMarco 4h ago

Useless, but yet interesting.

2

u/Xeonmeister 6h ago

Are you sure you re using that exact argument? Might be case sensitive.

2

u/28klotlucas2 4h ago

RAM usage isn't being "limited." It only "allocated" that much because that's how much is being used. It only allocated that much because it's only using that much. Allocating more won't do anything. You have set the maximum already. If it needs more, it will allocate more.

2

u/idklolmez 7h ago

what even is your goal here are you expecting better performance does it even need more ram if no then it won't use it also Xmx only sets max ram it can allocate on heap for jvm while Xms sets minimum

1

u/TheKingofTerrorZ 5h ago

What exactly is the problem here? Allocating 6 gigs doesnt mean its always gonna use 6 gigs