This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XML - DOM - OutOfMemoryException  RSS feed

George Berlak
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!