Thread: 'Out of Memory'

  1. #1
    The Patient Jomaty's Avatar
    Join Date
    Jan 2011
    Location
    Arizona
    Posts
    278

    'Out of Memory'

    Can anybody help me fix this? I have watched peoples tutorials on YouTube.. Googled it a lot... None of them work. I honestly don't know what to do, I can play maybe 5-10 minutes at a time before being booted for that reason.

    I've got the batch file and when I use this one I get the Error: Could not create Java virtual machine.
    javaw -Xmx3072m -Xms3072m -jar "C:\Users\Jordan\Desktop\Minecraft.exe"
    I Googled the error, someone said you cannot have Minecraft.exe. for a batch file. Replace it with .jar

    After replacing .exe with .jar I get the error: Unable to access jarfile C:\Users\Jordan\Desktop\Minecraft.jar
    javaw -Xmx3072m -Xms3072m -jar "C:\Users\Jordan\Desktop\Minecraft.jar"

    I've had this error problem for a while, quit playing for a few months and are now back, getting kicked from the came over and over for not enough memory is annoying and almost makes me want to even play the game.

    Not sure if there was a thread for this already or not, if so I'm sorry for making another.

    Let me know if anyone has had a problem similar to this, and how they were able to fix it.

    Thank you.

    Credit for the creation of this awesome signature belongs to Shyama

  2. #2
    When creating the batch file, make sure you are using the proper amount of memory that represents the RAM you have access to.

    For instance, this is my file:

    javaw -Xmx8192m -Xms4096m -jar "C:\Users\Greg\Desktop\Minecraft.exe"

  3. #3
    i used to have the same problem, but now i get booted a lot less... sometimes never

  4. #4
    The Patient Jomaty's Avatar
    Join Date
    Jan 2011
    Location
    Arizona
    Posts
    278
    Quote Originally Posted by Forsedar View Post
    When creating the batch file, make sure you are using the proper amount of memory that represents the RAM you have access to.

    For instance, this is my file:

    javaw -Xmx8192m -Xms4096m -jar "C:\Users\Greg\Desktop\Minecraft.exe"
    In this videos description, it shows a list of all of the possible choices of ram and to put in how much you use.
    The example the guy gives is this one javaw -Xmx1024m -Xms1024m -jar "C:\Users\+++\Desktop\Minecraft.exe" So I figured to copy it exactly and to put in the amount of ram I have.

    In another video the guy had said to find your total ram, and subtract one. Which is why I have it in my batch file that I am using 3 gigs instead of 4.

    Your batch file though you have 8192 and then 4096. I am confused as to why You have two different numbers? Maybe mine is just acting dumb or something or the videos are wrong or something, so far none have worked so I don't know what to do.

    ---------- Post added 2012-07-28 at 01:27 PM ----------

    Quote Originally Posted by mattrandom132111 View Post
    i used to have the same problem, but now i get booted a lot less... sometimes never
    What did you do to fix it?

    Credit for the creation of this awesome signature belongs to Shyama

  5. #5
    Quote Originally Posted by Jomaty View Post
    In this videos description, it shows a list of all of the possible choices of ram and to put in how much you use.
    The example the guy gives is this one javaw -Xmx1024m -Xms1024m -jar "C:\Users\+++\Desktop\Minecraft.exe" So I figured to copy it exactly and to put in the amount of ram I have.

    In another video the guy had said to find your total ram, and subtract one. Which is why I have it in my batch file that I am using 3 gigs instead of 4.

    Your batch file though you have 8192 and then 4096. I am confused as to why You have two different numbers? Maybe mine is just acting dumb or something or the videos are wrong or something, so far none have worked so I don't know what to do.

    ---------- Post added 2012-07-28 at 01:27 PM ----------



    What did you do to fix it?
    Couple questions that haven't been asked.

    Do you have a 64bit os?
    Do you have 64 bit java?

  6. #6
    The Patient Jomaty's Avatar
    Join Date
    Jan 2011
    Location
    Arizona
    Posts
    278
    Quote Originally Posted by blackblade View Post
    Couple questions that haven't been asked.

    Do you have a 64bit os?
    Do you have 64 bit java?
    I actually have a 32bit OS. I've looked it up and running Minecraft on a 32bit seems to work just as good. I'm honestly not sure what java I am running

    Credit for the creation of this awesome signature belongs to Shyama

  7. #7
    Your batch file though you have 8192 and then 4096. I am confused as to why You have two different numbers? Maybe mine is just acting dumb or something or the videos are wrong or something, so far none have worked so I don't know what to do.
    I was told that the second number you use will be HALF of your first number. It works perfectly for me. I do not get any disconnects.

  8. #8
    The Patient Jomaty's Avatar
    Join Date
    Jan 2011
    Location
    Arizona
    Posts
    278
    Quote Originally Posted by Forsedar View Post
    I was told that the second number you use will be HALF of your first number. It works perfectly for me. I do not get any disconnects.
    Alright I will try that then and see how it goes. Thank you

    Credit for the creation of this awesome signature belongs to Shyama

  9. #9
    Just use something like MagicLauncher and specify the memory in the setup. You probably won't be able to exceed 1500mb if you're using 32-bit Windows.

  10. #10
    The Patient Jomaty's Avatar
    Join Date
    Jan 2011
    Location
    Arizona
    Posts
    278
    Quote Originally Posted by ramsesakama View Post
    Just use something like MagicLauncher and specify the memory in the setup. You probably won't be able to exceed 1500mb if you're using 32-bit Windows.
    I've never heard of that, where do I get it and how do I use it?

    Credit for the creation of this awesome signature belongs to Shyama

  11. #11
    Quote Originally Posted by Jomaty View Post
    I've never heard of that, where do I get it and how do I use it?
    http://www.minecraftforum.net/topic/...-options-news/

    You just save it to a location somewhere and run it. It's similar to the normal Minecraft launcher, but also lets you swap out mods easily if you want to.

  12. #12
    Over 9000! PizzaSHARK's Avatar
    Join Date
    Jan 2011
    Location
    Oklahoma, USA
    Posts
    9,136
    Quote Originally Posted by ramsesakama View Post
    http://www.minecraftforum.net/topic/...-options-news/

    You just save it to a location somewhere and run it. It's similar to the normal Minecraft launcher, but also lets you swap out mods easily if you want to.
    Yep, it's pretty indispensable for testing new mod combinations since it removes the need to constantly edit, test, and refresh your minecraft.jar. You can also easily select different minecraft.jar files to use (like I can effortlessly swap from the 1.3 Prerelease back to 1.2.5 and vice-versa) and add or remove mods from your loadout on the fly.

    It's pretty handy
    http://steamcommunity.com/id/PizzaSHARK
    It is impossible for a tear of sadness to land on a Warrior Beard. As soon as the tear lands on the Warrior Beard, it is now a happy tear.
    Quote Originally Posted by semaphore View Post
    He used to chew my undies
    5:10 AM - Everything Nice: PizzaSHARK, you're my stand in! You're promoted to like.. Semi-bestfriend.

  13. #13
    High Overlord Blitzdoctor's Avatar
    Join Date
    May 2010
    Location
    The Netherlands
    Posts
    157
    If you have 32 bit windows and/or java, don't use view distance far but medium.

  14. #14
    The Patient Jomaty's Avatar
    Join Date
    Jan 2011
    Location
    Arizona
    Posts
    278
    Quote Originally Posted by Blitzdoctor View Post
    If you have 32 bit windows and/or java, don't use view distance far but medium.
    I haven't played it much recently since everyone has been trying to help, but so far this seems to have helped me. Hopefully it was just that easy of a fix

    Credit for the creation of this awesome signature belongs to Shyama

  15. #15
    Try to get Java 7 if you don't use it already, and for a change try allocating less RAM instead of more. The Java garbage collection only cleans up if the allocated RAM gets close to max levels (unless manually initiated, but Minecraft doesn't seem to do that).

    For instance I'm on a 32Bit Windows XP system with Java 7 and 3 GB of physical RAM. My Minecraft runs best with the OptiFine and allocating 512 MB of RAM. If I allocate more RAM my game gets unstable and/or my framerates drop down to a whopping 1-2 fps after some time.


    P.S.: Just remembered something I did some time ago to redeem the "out of memory" error for me:
    I fiddled with my nVIDIA settings: Go there and change your settings for javaw.exe only (add it to the list and be sure to add the correct one if you have multiple Java-Installations on your system). I enabled 3x buffer, threaded optimising and vsync. At least for me it helped at that time, no harm in trying it.
    Last edited by Tintenkiller; 2012-08-03 at 09:34 PM.

  16. #16
    The Patient Jomaty's Avatar
    Join Date
    Jan 2011
    Location
    Arizona
    Posts
    278
    Well it had seemed to be fine.. I now cannot log on to any multiplayer servers.. Internal exception: javanet.SocketException:Connetion reset I was reading around, apparently anyone who updated to 1.3 will not be able to play until the Minecraft servers are updated to 1.3 as well. This could be wrong but I'm not the only one getting the error and they are saying that is why.

    If this is true, I'd suggest not updating your game client until the servers have been updated. If there is a way to, I guess, 'de-update'? Please let me know, I'd like to play but I can't for the time being

    Credit for the creation of this awesome signature belongs to Shyama

  17. #17
    This has always been the case with Minecraft updates. If there's an update you'll always have to wait/make sure that your client and the server you're playing on are the same

    How long it takes for your server to update highly depends on what kind of server it is. If it's a heavily modded one (like Bukkit with many plugins) it can take a day or two until all mods and plugins are updated by their respective authors. If it's just a vanilla server ... it's probably not going to take too long.

  18. #18
    Quote Originally Posted by Jomaty View Post
    I haven't played it much recently since everyone has been trying to help, but so far this seems to have helped me. Hopefully it was just that easy of a fix
    It is actually a pretty good fix, I used to have these issues and changing the distance always solved it.

    Funnily enough, I'm still on 32bit and am now using Far distance and it seems fine. It's really really odd.

    I blame crappy Java basically /boo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •