Results 1 to 4 of 4
  1. #1
    everlast88az is offline Member
    Join Date
    Nov 2008
    Rep Power

    Default Java heap space OutofMemoryError

    I am trying to pull a large amount of content off of a large webpage. My heap size is already set to a ridiculously large 16384 in the java settings. I dont understand how to get around this exception. The stack trace is below.

    java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOfRange(
    at java.lang.String.<init>(
    at java.lang.StringBuilder.toString(StringBuilder.jav a:430)
    at net.sourceforge.retriever.fetcher.HTTPFetcher.getI nnerURLs(Unknown Source)
    at net.sourceforge.retriever.fetcher.Fetcher.fetch(Un known Source)
    at Source)
    at net.sourceforge.retriever.ThreadPool$RunnableHandl Source)
    at java.util.concurrent.ThreadPoolExecutor$ Task(
    at java.util.concurrent.ThreadPoolExecutor$ (

    Any help is appreciated.


  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Cross-posted on the Sun forum: Java heap space OutofMemoryError

    To the original poster: I recommend against cross-posting, but if you feel you must do this, please post links to all cross-posts in all cross-posts. This will decrease the chance that someone here will waste their time answering a question that has already been answered elsewhere -- a very frustrating experience. Thank you for your consideration in this.

  3. #3
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Rep Power


    Is this a j2me app? If not, 16384 is ridiculously small.

  4. #4
    Supamagier is offline Senior Member
    Join Date
    Aug 2008
    Rep Power


    everlast8az, 16384kb? :s

    What toadaly said ^.
    I die a little on the inside...
    Every time I get shot.

Similar Threads

  1. java.lang.OutOfMemoryError: Java heap space
    By paul in forum Advanced Java
    Replies: 11
    Last Post: 06-12-2010, 05:30 PM
  2. Replies: 10
    Last Post: 05-11-2009, 11:56 AM
  3. [SOLVED] Java heap space OutOfMemoryError
    By loki in forum New To Java
    Replies: 14
    Last Post: 04-25-2009, 04:11 PM
  4. java.lang.OutOfMemoryError: Java heap space
    By vidjogamer in forum New To Java
    Replies: 3
    Last Post: 02-06-2009, 07:52 AM
  5. OutOfMemoryError: heap space (SJSAS PE 8.2 u4)
    By mikamj in forum Advanced Java
    Replies: 0
    Last Post: 11-21-2008, 08:37 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