Hi,
I have a Java agent which assigns values to a document using .replaceItemValue(fieldName, fieldValue).
From what I have read (hardly any of it official unfortunately), this will implicitly create a back-end instance to an Item object, the memory for which I am concerned about being orphaned.
Consequently I assign the return value (Item) from the .replaceItemValue so that I can recycle it:
item = doc.replaceItemValue(fieldName, fieldValue);
item.recycle();
So, onto my question… if I set a number of values on the document in one go (initial document setup), do I need to recycle the Item object after every .replaceItemValue?
item = doc.replaceItemValue(fieldName1, fieldValue1);
item.recycle();
item = doc.replaceItemValue(fieldName2, fieldValue2);
item.recycle();
…
Or is this all a load of rubbish and I don’t have to bother at all?
Thanks in advance!
Jon
p.s. anyone know if there is a agent manager memory leak problem in 6.5.2 for Windows? I’m aware of one on iSeries 6.5.2, but having OutOfMemory issues, hence the drive for recycling… [