• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: java.lang.OutOfMemoryError: Java heap space
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.lang.OutOfMemoryError: Java heap space


  • Subject: Re: java.lang.OutOfMemoryError: Java heap space
  • From: Andrew Lindesay <email@hidden>
  • Date: Fri, 14 Sep 2007 07:32:01 +1200

Hello Kirti;

Is there some sort of stack-trace when the out-of-memory occurs? This might be good to see. Also, if you are able to reproduce this problem on a development machine, perhaps identify the area of the application where the problem *might* lie and put some considered log lines in that output the current free memory. This might help you understand what is going on. Another problem might be that you are doing an enormous fetch for more objects than memory can hold. Perhaps turn on EOF debug logging and watch the SQL queries to see if there are any really large queries being fired prior to the out of memory exception.

cheers.

1GB is a lot of memory. Most times you should be good with 512m or even 256m. There's three things I could think of:
1) You're reading a BLOB from the database that is REALLY BIG.
2) You have a loop that isn't ending and it just keeps creating objects over and over and over.
3) You have a recursive function that isn't ending and so it keeps calling itself over and over.
4) You are adding these parameters in the wrong place and they are not having any effect.

___ Andrew Lindesay technology : www.lindesay.co.nz business : www.silvereye.co.nz


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: java.lang.OutOfMemoryError: Java heap space
      • From: netBrackets <email@hidden>
References: 
 >Re: java.lang.OutOfMemoryError: Java heap space (From: Kirti Roda <email@hidden>)
 >Re: java.lang.OutOfMemoryError: Java heap space (From: Galen Rhodes <email@hidden>)
 >Re: java.lang.OutOfMemoryError: Java heap space (From: Chuck Hill <email@hidden>)
 >Re: java.lang.OutOfMemoryError: Java heap space (From: Ken Anderson <email@hidden>)
 >Re: java.lang.OutOfMemoryError: Java heap space (From: Kirti Roda <email@hidden>)

  • Prev by Date: Re: migrating a jc application from Xcode to wolips - how to build the client side stuff ?
  • Next by Date: Re: java.lang.OutOfMemoryError: Java heap space
  • Previous by thread: Re: java.lang.OutOfMemoryError: Java heap space
  • Next by thread: Re: java.lang.OutOfMemoryError: Java heap space
  • Index(es):
    • Date
    • Thread