Results 1 to 8 of 8
  1. #1
    Linek is offline Member
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Default How to make java use more ram

    Hello,

    As title says. How to make java use more ram? I read about -Xmx and -Xms parameters but every way of using it just failed for me. I want every application to run with these parameters.

    I tried to do it using Java Runtime Enviroment Settings in java control panel but when I do it my changes are just getting erased.

    PS:
    I want it to make games run smoothly.

    @EDIT
    I'm using Windows 7
    Last edited by Linek; 12-26-2010 at 06:18 PM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Is this a program you've created yourself, or are you talking about games that you've purchased or downloaded?

  3. #3
    Linek is offline Member
    Join Date
    Dec 2010
    Posts
    2
    Rep Power
    0

    Default

    Purchased/downloaded

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Then your best bet is to contact the vendors. This is not a support site for everything Java but rather a site for people learning to program.

  5. #5
    Hibernate's Avatar
    Hibernate is offline Senior Member
    Join Date
    Dec 2010
    Location
    Stockholm, Sweden
    Posts
    222
    Blog Entries
    9
    Rep Power
    4

    Default

    Modifying how much RAM (256 by default?) Java can use is not possible in Windows. You should let the vendor know Java runs out of memory in Windows with your JVM.

    If you switch to GNU/Linux everything should work. If you want to use Windows and can't get help from the vendor, look for another JVM that does not have this problem.

  6. #6
    Alpha82 is offline Member
    Join Date
    Dec 2011
    Posts
    1
    Rep Power
    0

    Default Re: How to make java use more ram

    Quote Originally Posted by Hibernate View Post
    Modifying how much RAM (256 by default?) Java can use is not possible in Windows. You should let the vendor know Java runs out of memory in Windows with your JVM.

    If you switch to GNU/Linux everything should work. If you want to use Windows and can't get help from the vendor, look for another JVM that does not have this problem.

    Actually you can. I hate when people comment without knowing what they are talking about. Anyway go to Control Panel then you'll eventually see Java (I use the classic view in Control Panel) click on Java then when it opens you'll go to the Java tab and it will say Java Run time environments click view then it opens. Under the area that says "Runtime Parameters" you click there to add in -Xmx1024mb You can add more but that should be fine if you're running Minecraft which I assume you will be.

  7. #7
    kevinn205 is offline Member
    Join Date
    Nov 2011
    Posts
    65
    Rep Power
    0

    Default Re: How to make java use more ram

    The minecraft invasion :D I though the same thing, that or read up online for the simple add ram to server trick

    Basicly you create a executable .bat and specify this command as a tag when ran

    Xmx1024mb

  8. #8
    mm2
    mm2 is offline Member
    Join Date
    Jun 2012
    Posts
    1
    Rep Power
    0

    Default Re: How to make java use more ram

    i had this problem while developing a game. i use netbeans, not sure how to do this in eclipse, but i went to project properties and added more from there :)

    note- i use a mac

Similar Threads

  1. Make a 3D java game
    By Nuclear Mosquito in forum Java Gaming
    Replies: 7
    Last Post: 12-08-2010, 10:07 AM
  2. Make Java Pause
    By FlyNn in forum New To Java
    Replies: 2
    Last Post: 02-10-2010, 10:18 AM
  3. Help! How to make triangle with java
    By java greek in forum New To Java
    Replies: 4
    Last Post: 09-07-2009, 02:09 PM
  4. Java: Make runnable java-file
    By MrBambey in forum New To Java
    Replies: 4
    Last Post: 08-10-2009, 06:40 AM
  5. Can anybody make this on java ???
    By eliCanzee in forum AWT / Swing
    Replies: 9
    Last Post: 04-30-2009, 01:14 AM

Posting Permissions

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