"out of memory" Minecraft

Discussion in 'Computer Games and General Discussion' started by AlanJohn, Sep 25, 2011.

  1. AlanJohn
    OP

    AlanJohn くたばれ

    Member
    3,447
    2,886
    Jan 6, 2011
    Canada,New Jersey
    I keep getting "out of memory" messages in MC lately. This never happened to me before.
    I tried closing a lot of useless apps but its not helping.
    I also tried re-installing but same result.
    Any help?
     
  2. nintendoom

    nintendoom Nintendoom

    Member
    1,110
    28
    Sep 12, 2009
    Viridian City
    maybe, you're out of harddrive space.

    try uninstalling some stuff you don't use anymore.
     
  3. kevan

    kevan Imagination rules the world

    Member
    1,378
    67
    Dec 4, 2009
    Place
    Are you using a high res texture pack?
    If you are Minecraft tends to run out of the
    memory (ram) allocated to it.
     
  4. AlanJohn
    OP

    AlanJohn くたばれ

    Member
    3,447
    2,886
    Jan 6, 2011
    Canada,New Jersey
    I think you're right.
    I've got a lot of crap on my HDD I need to delete.

    @kevan no, I'm using default and no, I have enough free RAM (2gb)
     
  5. kevan

    kevan Imagination rules the world

    Member
    1,378
    67
    Dec 4, 2009
    Place
    Actually how much ram you have is irrelevant to how much Minecraft
    can use. It is possible to just allocate it more ram.
    Check here for one way or here for another way.
     
  6. gifi4

    gifi4 How am I a 'New Member'?

    Member
    2,352
    142
    Apr 21, 2010
    Melbourne
    Kevan is right, just allocate Java more RAM.
     
  7. kevan

    kevan Imagination rules the world

    Member
    1,378
    67
    Dec 4, 2009
    Place
    Huh I'm not right.
    What I said was mainly if wiping HDD doesn't work.
    Also allocating Java more ram via the second method for
    me never worked. And the first method doesn't work
    for most. So really they are just wild shot at fixing it
    since they are not really reliable for alot of people.

    Plus the only time I did it (First Method) was to run a
    512x512 texture pack =D
     
  8. Wizerzak

    Wizerzak Because I'm a potato!

    Member
    2,784
    847
    May 30, 2010
    United Kingdom
    It's not to do with HDD at all. Memory is different to HDD space. You need to allocate more memory to Minecraft by using the SECOND method that Kevan posted.

    Also, it could be to do with what you are doing on it. Are you using a lot of TNT? Using a HD texture pack? (in which case you definitely need to allocate RAM).
     
  9. kevan

    kevan Imagination rules the world

    Member
    1,378
    67
    Dec 4, 2009
    Place
    He mentioned he is using default and clearing out the HDD always helps with general pc performance.
    But I doubt it will help anything Minecraft related.
     
  10. AlanJohn
    OP

    AlanJohn くたばれ

    Member
    3,447
    2,886
    Jan 6, 2011
    Canada,New Jersey
    How do I change Runtime Parameters?
     
  11. Wizerzak

    Wizerzak Because I'm a potato!

    Member
    2,784
    847
    May 30, 2010
    United Kingdom
    Under the field called 'Runtime parameters' type: -Xmx1G or -Xmx1.5G or w/e depending on how much RAM you want to allocate (1G is good if you have 2GB)
     
  12. AlanJohn
    OP

    AlanJohn くたばれ

    Member
    3,447
    2,886
    Jan 6, 2011
    Canada,New Jersey
    Where is this field?
     
  13. overslept

    overslept WALLY WALLY WALLY WALLY WALLY WALLY WALLY WORLD

    Member
    706
    4
    Mar 22, 2009
    United States
    California
    This usually happens when you have 32-bit Java installed on a 64-bit Windows machine.

    Install 64-bit Java. It worked for me [​IMG]
     
  14. Wizerzak

    Wizerzak Because I'm a potato!

    Member
    2,784
    847
    May 30, 2010
    United Kingdom
  15. Opium

    Opium PogoShell it to me ™

    Former Staff
    8,190
    43
    Dec 22, 2002
    Australia
    Yep. Same problem for me. This fixed it.
     
  16. Rydian

    Rydian Resident Furvert™

    Member
    27,883
    8,102
    Feb 4, 2010
    United States
    Cave Entrance, Watching Cyan Write Letters
    [​IMG]

    A single program under a 32-bit version of windows (or a 32-bit program under a 64-bit version of windows) cannot use more than 2 gigs of ram (3-4 gigs if an optional setting is changed).



    Just had to add this...