On Fri, Aug 27, 2004 at 01:24:41PM +1000, Singh, Vishal wrote:
: Apologies for missing the actual error message as following
: java.lang.OutOfMemoryError

Hello,

Did you search the archives?  This question comes up quite a bit, and
the answer is the same:

load-test your app to see how much memory you need, then set the max
heap size accordingly.

On a more scientific level:
- profile your app to see where you're using the most memory, and adjust
  accordingly.  Often you'll have a tradeoff between memory and speed
  (e.g. holding something in-memory vs repeatedly fetching it from a data
  store)

- try the various GC algorithms that come with JDK 1.4+

- based on profiling determine what sort of objects and increase that
  portion of the heap as needed (e.g. larger new/eden vs old space)

... and so on, and so forth.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to