I’m developing java agents since Notes/Domino 5.0.x. In the Domino 5 versions every notes-object must be recycled after finishing the processing.
My question is: Do I need recycle notes-objects in Domino 6 environment? I found a java-notes manual on the ibm page. In this manual the notes objects (document, item, view etc.) never have been recycled! Does the jvm automatically determine if the notes-object is never be in use?
JVM does not do a good job collecting C/C++ memory, it is also “lazy” garbage collecting (i.e. not when you stop referencing objects, but when it feels it is a good time to garbarage collect which maybe too late for your application which uses non-Java memory). Recycle() is still recommended if you are doing heavy duty processing, if you are not doing heavy duty processing you don’t need it. Agent FAQ has additional information (including a recent update based on some queries in this forum).