> From: Sharon French [mailto:[EMAIL PROTECTED] 
> Subject: RE: OutOfMemoryError (but not really out of memory?) 
> cause tomcat processes to hang
> 
> Given this information at the top of the jmap -heap output:
>       Heap Configuration:
>               ...
>          PermSize         = 16777216 (16.0MB)
>          MaxPermSize      = 67108864 (64.0MB)
> Doesn't this mean that I can grow to 64M of PermGen space?

In theory, yes.  In practice, the GC may not be able to move the
boundary between the OldGen and the PermGen.  It tries to balance usage
of each of the generations, and doesn't always get it right.

> I do see the capacity of PermGen increase over time (with analogous
> increases in the used field).

More classes are being loaded the longer you run.

> I'm wondering if I may be running into an OutOfMemoryError 
> because I've run out of available PermGen space,

That's what we've been trying to tell you...

> this re-partitioning requires so much time/effort that the
> ergonomics factor is kicking in (as explained in section 5.2.2 of
> http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.
> 0.Ergonomics%20in%20the%20throughput%20collector%7Coutline)?

Unless you've forced -server mode, I would be a bit surprised if the JVM
chose to run that way with such a small heap.  It's unlikely you're
using the throughput collector.

> However, the error message I am getting is: 
> "java.lang.OutOfMemoryError:
> Java heap space" rather than a "perm space" message.

The PermGen is part of the Java heap.  As suggested yesterday, use
-XX:PermSize as well as -XX:MaxPermSize to insure that the PermGen has
adequate reserve.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to