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

    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(Arrays.java:3209)
    at java.lang.String.<init>(String.java:216)
    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 net.sourceforge.retriever.URLParser.run(Unknown Source)
    at net.sourceforge.retriever.ThreadPool$RunnableHandl er.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)


    Any help is appreciated.

    Thanks,

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

    Default

    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
    Posts
    671
    Rep Power
    6

    Default

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

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

    Default

    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, 06:30 PM
  2. Replies: 10
    Last Post: 05-11-2009, 12:56 PM
  3. [SOLVED] Java heap space OutOfMemoryError
    By loki in forum New To Java
    Replies: 14
    Last Post: 04-25-2009, 05: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
  •