Results 1 to 3 of 3
  1. #1
    davetheant is offline Member
    Join Date
    Sep 2010
    Posts
    47
    Rep Power
    0

    Default Increasing Java heap space

    Hello all. I am trying to create an array of ints with 10,000,000+ elements but I get an error 'java.lang.OutOfMemoryError: Java heap space'. I understand that I can increase my heap space somehow, but I don't really know how. I have a very good computer so I would like to double it at least. Thanks.

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default

    if you type java on its own on the command line you will get help about options available. One of them is -X. Type java -X and you will get further help about the -X options. Good luck.

  3. #3
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

Similar Threads

  1. Increasing heap/stack size (MacOSX)
    By CapsLoc in forum New To Java
    Replies: 3
    Last Post: 12-13-2010, 10:52 AM
  2. increasing jvm heap space
    By kizyle502 in forum Advanced Java
    Replies: 1
    Last Post: 05-15-2010, 10:51 AM
  3. Java heap space,
    By babyboban in forum Advanced Java
    Replies: 18
    Last Post: 01-14-2010, 12:22 PM
  4. Java Heap Space
    By sandeeprao.techno in forum Advanced Java
    Replies: 19
    Last Post: 10-30-2008, 11:27 AM
  5. Java heap space?
    By javanewbie in forum New To Java
    Replies: 1
    Last Post: 06-24-2008, 06:55 PM

Posting Permissions

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