> From: Oleg [mailto:[EMAIL PROTECTED]
> Subject: out of memory when there is plenty
> 
> My question is what can cause Tomcat to report out of memory error
> when so much is still available.

As has been discussed before on this mailing list, the OutOfMemory exception is 
somewhat of a catch-all.  The JVM generates this exception not just for 
overflowing heap space, but also pretty much anytime limits imposed by the 
underlying OS are reached.  These limits include such things as stack space, 
open files, and number of threads.

You didn't mention the JVM version you're using (this is often critical), but a 
1.4 and above JVM can run out of space in the Permanent Generation portion of 
the heap, even though there's plenty of room available in the other portions.  
This occurs more frequently in multiple classloader environments such as 
Tomcat, and, again, has been discussed in some detail on this mailing list.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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

Reply via email to