Jump to content

So..

 

 

My PC can run minecraft decked out at around 90fps (Don't worry, I don't have a GTX980 for Minecraft, I have 200 steam games too). But with both Minecraft and TechnicLauncher It will not let me allocate more than 1GB of ram to the game to run so as you can imagine I crash with Java Virtual Machine out of memory a lot. At this point my macbook pro is more reliable.

 

 

Does anyone have any hints? The highest I've got the game to allow was -Xmx1336m -Xms1336m but anything over -Xmx1536m -Xms1536m and -Xmx2G -Xms2G just won't post.

 

Kind of a bummer tbh. Already tried the Environmental Variables _JAVA_OPTIONS thing.

 

Currently have 8GB of DDR3-1866Mhz ram installed in a dual-channel config (2x4GB).

 

Help?

NCASE M1 i5-12600kf  RTX 4060Ti FE Z690M-ITX  SF600 NH-L9x65 Chromax  LPX 32GB

 

Link to comment
https://linustechtips.com/topic/260834-java-vm-ram-allocation/
Share on other sites

Link to post
Share on other sites

You know, the problem with those arguments is that this means you're running the launcher with those memory settings; not the game itself. Normally you'll find a memory allocation setting somewhere in the launcher's settings. This will then allow the launcher to launch Minecraft with the desired memory settings.

I cannot be held responsible for any bad advice given.

I've no idea why the world is afraid of 3D-printed guns when clearly 3D-printed crossbows would be more practical for now.

My rig: The StealthRay. Plans for a newer, better version of its mufflers are already being made.

Link to comment
https://linustechtips.com/topic/260834-java-vm-ram-allocation/#findComment-3554618
Share on other sites

Link to post
Share on other sites

Do you have the 64bit version of Java installed? (download "64-bit browser")

https://java.com/en/download/faq/java_win64bit.xml

I found that the 32bit only seems to "see" 3.5GB, of which it only wants to use half. If you already have it installed then poke around in the technic settings file and see if you can edit it there.

Edit: if you have both 32bit and 64bit Java installed make sure that 64bit is the primary Java runtime:

http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp/jcp.html#java

"PSU brands are meaningless, look up the OEM."

Link to comment
https://linustechtips.com/topic/260834-java-vm-ram-allocation/#findComment-3554637
Share on other sites

Link to post
Share on other sites

Wow. I'm surprised that after I quit the Minecraft Forum I'm back to this.

 

Yes, it's because Minecraft's using 32-bit Java. The garbage collector for 32-bit Java can be horrendous (for something demanding of Java like Minecraft especially).

For Minecraft, you don't really need to allocate much more RAM as long as you're using 64-bit as it's so much better at clearing up wasted memory.

Sig under construction.

Link to comment
https://linustechtips.com/topic/260834-java-vm-ram-allocation/#findComment-3554674
Share on other sites

Link to post
Share on other sites

Wow. I'm surprised that after I quit the Minecraft Forum I'm back to this.

 

Yes, it's because Minecraft's using 32-bit Java. The garbage collector for 32-bit Java can be horrendous (for something demanding of Java like Minecraft especially).

For Minecraft, you don't really need to allocate much more RAM as long as you're using 64-bit as it's so much better at clearing up wasted memory.

 

Well at 1GB allocated it takes no more than 7minutes for it to run out of memory. I kinda think I need to add more.

NCASE M1 i5-12600kf  RTX 4060Ti FE Z690M-ITX  SF600 NH-L9x65 Chromax  LPX 32GB

 

Link to comment
https://linustechtips.com/topic/260834-java-vm-ram-allocation/#findComment-3554691
Share on other sites

Link to post
Share on other sites

Well at 1GB allocated it takes no more than 7minutes for it to run out of memory. I kinda think I need to add more.

That'll only help if you do that WITHIN THE LAUNCHER. If you don't it'll just invoke Java through the command line and leave it to its own devices, and that means it'll only take 64 MB (last time I checked)

I cannot be held responsible for any bad advice given.

I've no idea why the world is afraid of 3D-printed guns when clearly 3D-printed crossbows would be more practical for now.

My rig: The StealthRay. Plans for a newer, better version of its mufflers are already being made.

Link to comment
https://linustechtips.com/topic/260834-java-vm-ram-allocation/#findComment-3554706
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×