tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: java out of f memory exception
Date Thu, 26 Jun 2003 13:46:08 GMT


>    Whats the reason behind java out of memory exception...How to solve

The JVM doesn't have enough memory to accomplish what it's trying to do.
This happens either because your program simply requires more memory
than the heap has, or because your program is flawed with regard to
releasing object references, thereby preventing garbage collection from
freeing up memory.

There is much literature on this subject, including in this list's
archives and on  For starters, you can increase the heap
using -XmxNm where N is the maximum number of megabytes of RAM to
allocate to the heap.  This N is 64 by default.

>exception....What happens if i increase the Heap size...does it effect

Increasing heap size affects GC, but not necessarily in a negative way.
You should research this issue a bit more and then post more
application-specific memory usage questions if you have them.

Yoav Shapira

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message