File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes XML - DOM - OutOfMemoryException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML - DOM - OutOfMemoryException" Watch "XML - DOM - OutOfMemoryException" New topic

XML - DOM - OutOfMemoryException

George Berlak

Joined: Dec 15, 2004
Posts: 4
The method below is called several thousand times when 50 users are working with the same screen/form. Result: 2 hours later, the application throws an OutOfMemoryException. The profiler indicates that this method creates many XMLAttr instances when calling the setAttribute method. These objects are not garbage collected by the JVM.

What is wrong with this method? Or is this a bug in the XML parser (Oracle)?

The mDataRowModelDataRowElement object is created when the user starts working with the form and it can be garbage collected when the user exits the given form, which never happens because the application throws an OutOfMemoryException before the user could finish his/her job (after 2 hours).

Edit Comment:
Added [ code ] opening and closing tags, without the spaces.

- m
[ May 04, 2005: Message edited by: Madhav Lakkapragada ]

Regards,<br /> <br />George Berlak<br />M.Sc in IT, SCJP, SCWD<br />IBM Certified Software Specialist<br />IBM Certified e-Business Professional<br />IBM Certified Database Associate
I agree. Here's the link:
subject: XML - DOM - OutOfMemoryException
It's not a secret anymore!