More Ram for hungry minecraft.

I'm currently using the twitch launcher to build personal mod packs and i have created some pretty large ones. is there a way to increase the ram used by minecraft beyond the 12G that the twitch launcher uses? as i have found that sometime late game my contraptions eat up a lot of ram. Ive never run out or memory so this is more a because i wanna question.

​

thanks folks!

Posted Apr 12, 2019, 11:54 PM UTC

28
ReciprocityTJ•

Allocating that much RAM (12 gigs) is actually really inefficient for Java.

5
ElkilloOP•

So im being told.

1
Old_Man_DEnigmatica 2 Expert•

Use the native java launcher, then you can type in whatever you want. One word of advice though, as mentioned in other comments, look into how java does garbage collection. You will probably find, like I did, that a good running java machine is more about tuning the java arguments, than providing raw RAM. More RAM is the brute force approach, when what you really want is subtle tweaking.

3
HabroxMC•

What kind of arguments will help with efficiency?

1
ElkilloOP•

then what would be a good idea way to fix it without brute force im no programmer so i just want to make sure i can have enough to prevent crashes and lockups due to memory. and thanks i found the option in the launcher. if there is a better way thats cool.

1
[deleted]•

[deleted]

1
Booty_BumpingCustom pack masterrace•

See here for garbage collector tuning options https://www.reddit.com/r/FeedTheBeastCrashes/comments/ac9rqx/please_sticky_how_to_avoid_wasting_your_time_and/egezucr/

I'm not sure where this would go in twitch, but in MultiMC it's under Settings > Java arguments in instance settings.

Ping u/HabroxMC

1
ElkilloOP•

that was an interesting read. thanks for that I will try the argument string they mentioned. and see where that gets me.

1
ElkilloOP•

thanks to u/Booty_bumping i understand this a little better. it also helped with another error which may have been occurring because of improper garbage management.

1