> From: Eric Robinson [mailto:eric.robin...@psmnv.com] > Subject: Java Heap Space / Thread Dump Numbers
> PSYoungGen total 95808K, used 22323K [0x00002aaac3770000, > 0x00002aaaca210000, 0x00002aaaca210000) > eden space 82432K, 10% used > [0x00002aaac3770000,0x00002aaac402f7f8,0x00002aaac87f0000) > from space 13376K, 99% used > [0x00002aaac87f0000,0x00002aaac94fd5a8,0x00002aaac9500000) > to space 13376K, 0% used > [0x00002aaac9500000,0x00002aaac9500000,0x00002aaaca210000) > PSOldGen total 177792K, used 144800K [0x00002aaab6210000, > 0x00002aaac0fb0000, 0x00002aaac3770000) > object space 177792K, 81% used > [0x00002aaab6210000,0x00002aaabef78110,0x00002aaac0fb0000) > PSPermGen total 120960K, used 65149K [0x00002aaaae210000, > 0x00002aaab5830000, 0x00002aaab6210000) > object space 120960K, 53% used > [0x00002aaaae210000,0x00002aaab21af440,0x00002aaab5830000) > Which of those lines represents the heap space? Actually, all of them. The JVM's heap is not just a simple collection, but is instead a somewhat complex structure designed to facilitate garbage collection. A brief description of the components: eden space - where most objects are born (and most of them die) from-space - where live objects exist after a minor garbage collection to-space - where objects will be copied to during a minor garbage collection old gen object space - where long-lived objects reside perm gen object space - where instances of java.lang.Class reside Normally sized objects are initially created in eden. When eden fills, a minor GC copies most live objects from eden and the from-space into the to-space; objects that have been around a while are instead put into old gen. At the end of the minor GC, the from- (now empty) and to-spaces swap roles. When things get too full, a major GC is initiated, which squeezes out any dead space from the old gen. One exception to the above is allocation of large objects, which are placed immediately into old gen. Your OOME may be due to attempting to allocate something big. Since you didn't provide any information about the JVM version, GC settings, platform you're running on, or what your applications do, it's hard to say whether or not your heap is sized appropriately. However, your total of around 262M is rather small in this age of 64-bit machines with multiple gigabytes of memory. More information (not all of it up to date): http://www.oracle.com/technetwork/java/javase/tech/index-jsp-140228.html - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org