LS2J Error

I have a lotusscript agent on a domino 6 machine that uses LS2J to call a java agent. The java object that I call hits a web service and returns the XML to my lotusscript. This agent runs like a champ until you start hitting it with recordsets of 200-300. Then it returns the LS2J Error: Threw java.lang.OutOfMemoryError error. The odd thing is that the same data sets where returned just a few moments before. It is almost as if something in the agent never cleans up any data returned from the java. The java object does not grab any notes items or anything like that. It just returns the XML to a string. I even have it running fine with a small recordset (8-10) records. I thought of increasing the JVM but I am concerned that all that will do is prolong the agony. I am destroying the java objects using Delete JWebServicesObject. Does that not work to help clean up? If that does not work I would still think that the when the lotusscript agent ends it would clean up. Anyone else have any simiiar experiences or thoghts?

Subject: LS2J Error

Are you recycling in your Java agent? If not, read the section on java memory management in the Agent FAQ, you might find it helpful.

Subject: LS2J Error

How can you call a Java agent using LS2J?I was told in this forum that this was not possible! Iwould like to know how you called it

by using LS2J! Can you let me know?

Subject: RE: LS2J Error

Danny,If you have Notes 6 simply do a search on LS2J, it will tell you everything that you need to know.

Regards

Rolf Pfotenhauer

email: rolfpf@yahoo.com.au

Subject: LS2J Error

I have the same problem, using LS2J to access MQSeries. I think the problem is that the C API doesn’t dealocate the java object, so, the object is not cleaned by gc. In my case, the problem is in MQMessage object. If i run the same example as a java agent, all the memory is returned to the JVM.

I Have tried almost everything (Delete the object, assign null to the object…)

Have you resolved your problem?

Subject: RE: LS2J Error

Done !!!

Thanks for the precious help.