This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jun 14, 2015, 3:01 PM
6 Posts

Recycling Java objects. Is it still necessary?

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: java recycle
  • Replies: 2

I'm developing software in Java connecting to a Domino 9.0.1 server. I had some problems with recycling. Looking for a solution, I found this comment written on 2006.

"Lotus Notes/Domino R6 claims to have solved the recycle problem: It has an internal Map of weak references to potentially allow automatic recycling as soon as a Notes object is not referenced anymore. But this still depends on how often and fast the garbage collector is running."

Source: http://lekkimworld.com/2006/04/09/java_in_notes_domino_explained_the_story_on_recycle.html#comment1145468240417

I searched a lot to find an IBM document about this, but nothing. Do you know something about this? Is it correct?

 

Jun 14, 2015, 8:41 PM
90 Posts
Yes, for operations in loops
It is still necessary unless you use the OpenNTF Java API.

You should recycle objects created/assigned in loops and also any Notes DateTime objects.

When your XPage is done running it will recycle everything but while it is executing the Domino objects use memory.

Howard
Nov 1, 2017, 8:17 AM
1 Posts
Objects must be recycled - but you could use recycler
IBM has increased the number of objects that could be held before Domino runs out of memory (handles?). But when working with large numbers of objects, recycling is still a must. But you could leave that to the recycler: https://sourceforge.net/projects/recycler

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal