Jump to content

Recommended Posts

Posted

Appologies for posting, but Im literally at my wits end trying to find out how to allocate more ram.

I promise you I've searched, but I keep being taken to threads that dont help me or dead end themselves.

I keep being taken to threads telling me how to allocate more RAM for servers, I do not have a server.

I've searched Google, various forums, Youtube, I just guess I dont know what search term to use

I thought this would be a more common question, I guess not

I do remember finding a video on how to install Forge and this had a bit that told me exactly what to do, I can no longer find the video.

Feel my pain

 

So, all I want to do is allocate more ram, My laptop has 6Gb and I'd like to give minecraft/java/forge half of it.

Im playing single player, not on a server, with 27 mods updated for 1.7.10, although the splash screen says 41mods

 

Im using Forge version

forge-1.7.10-10.13.0.1180-installer

 

This is my current JVM arguments line, I didnt make this, it was already there

 

-Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M

 

I know its somethign to do with "Xmx1G", but I see various posts saying to set Xmn/Xms to half of it or something, but I dont have a Xms bit

Ive tried changing it, but Im sure I have to also change the others, but dont know what to

Im on Windows7 64bit and have the latest 64bit Java

 

I hope one day its possible to do this on the mods/config screen for forge, like launchers.

 

Im happy to accept any amount of flaming to get an answer, I just want to play the modpack I've made without crashing to out of memory errors every hour or so.

 

thank you

 

 

  • Like 1
Posted

Easy,

Xmx is for the max. possible ram allocateable. In your case set it to 3G (the G stands for Giga(byte), M would be Mega(byte) and so on)

Xms is the min. possible memory allocated, recommended is that you set it to the same value as your Xmx argument.

Xmn is the heap space, if you have problems with heap space, increase its value. I normally use 512M on my 8Gig PC, but AFAIK 256M should be enough.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

Thank you

 

So as I do not have a Xms in my arguments line can I just add it at the end and end up with something like this

 

-Xmx3G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn256M -Xms1536M

 

or

 

-Xmx3G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn256M -Xms1.5G

                                              ^Throws up an invalid heap size^

Posted

floating points are not allowed there, so you need to use a smaller unit, like in your first.

Also, as I've said previously, it is recommended to set Xms the same value as Xmx, so in your case also 3G

 

And what I've forgot: be careful that you don't allocate too much memory, or it'll crash Minecraft after a while!

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I recently built a mod pack ,RLMCC Insanity Unfolds, and Ive been playing it to make sure its stable and playable, these last few days the game has been running fine with the exception of a few player loading quirks here and there but nothing game breaking, fast forward to this morning attempting to load into my survival world results in the game crashing, I will reach 100% on world loading, the joining game prompt will appear, the loading terrain prompt will appear, I get a large lag spike, and then the game says Saving world and then crashes throwing an unknown error in the launcher when checking the logs I can see that right before the world gets shut down better combat throws a fatal error, I had assumed at first that maybe when the world got shutdown last that something got stuck in an invalid state so I removed the mod and played for a bit to hopefully un-stick whatever it was, no luck there. When I placed the mod back into the game the world continued to crash the game when loading in. I figured that maybe there was a bug introduced in the latest version so I downgraded a couple versions and worked my way back up. The original version of Better Combat the mod pack was using was better combat 1.8.6 - 1.20.1, I tried better combat 1.8.1 - 1.20.1 and worked my way up to version 1.8.5 - 1.20.1, still running into the problem. Removing Better combat solves the problem but removing the mod renders a major part of my mod pack broken as one of the major aspects of the pack was focused around better combat. As mentioned the mod pack was working and running stable prior to this morning with Better Combat 1.8.6 - 1.20.1, and there was no change in the mod list this morning I do not believe that this is a mod compatibility issue as I am still able to generate a new world perfectly fine and the mod pack was working fine these last few days. The loading issue seems to only occur with my original survival world that I made when I built the mod pack.   Here is the last section from my latest.log file https://pastebin.com/6Q9e9ZLf  
    • 4747474785868478474734
    • It's called serverconfig file. You can find it by opening curseforge selecting your modpack, click the 3 dots next to play, select open folder then from there go to saves > your world that isn't working > serverconfig. Then highlight all the files within the serverconfig folder and delete them
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.