On Fri, Jan 29, 2010 at 10:24 PM, Vasudevan Comandur <[email protected]> wrote: > We were profiling the application using NetBeans profiler and found out > that are memory leaks with some of the Xerces classes. > > For Example: I see lot of references to > org.apache.xerces.dom.DeferredDocumentImp, > org.apache.xerces.dom.DeferredElementNSImpl, and > org.apache.xerces.dom.DeferredTextImpl. > > Is there a way by which I can get rid of these memory leaks?.
Xerces is a framework on which we build XML applications, and there is generally no way to optimize the memory management which goes within a framework, by the client code. And the same is true with Xerces as well. To optimize memory usage, you need to look opportunities within the client code itself. If you could post some actual code fragments you've written, probably somebody might suggest API usage optimizations. I am also curious to know, how big a DOM structure you are trying to produce (for e.g, if you'll serialize it, how much big a XML document will be produced)? What is the size of physical memory of the box, where you are running this program? -- Regards, Mukul Gandhi --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
