tomcat-users mailing list archives

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

Howdy,

>    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 java.sun.com.  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
java
>GC.

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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message