On 01/24/2011 11:05 AM, Wessel van Norel wrote:
The biggest object is: org.apache.poi.xssf.usermodel.XSSFSheet. This sheet is 2Gb in size. It contains almost 2 million org.apache.xmlbeans.impl.store.Xobj$ElementXobj objects, totalling 1.7Gb in heap space retained.
ElementXobj is an inner class of the abstract class Xobj, defined in: xmlbeans/src/store/org/apache/xmlbeans/impl/store/Xobj.java
I've noticed it doesn't override equals or hashCode. It's my understanding that the garbage collector uses hashCode to determine when an object is eligible for collection. Without an override, the garbage collector may be missing some opportunities.
Can someone confirm if my understanding of the garbage collector correct? I'm new at this, and I don't want to take what I think is an issue to the XmlBeans group only to look like an idiot.
Thanks. Joseph D. Wagner --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
