Notes client agent - java.lang.OutOfMemoryError

I am running a faily sophisticated agent in Java on the Notes client that fails with a java.lang.OutOfMemoryError error. What is the Java heap size for client agents and can that be increased?

Subject: Notes.ini setting

If I recall correctly it is:

JavaMaxHeapSize=xxxx

Where xxxx is the number of bytes you want to set it to.

99% of the time “out of memory” issues in Java agents is due to the incorrect use of the recycle() method (intentional or otherwise). So I would start by checking your code for that first.

I’d also recommend reading these good articles on the subject.

Subject: JavaMaxHeapSize

That seems to be a server only setting & does not affect client performance. In any case, I tried it on my machine and there was no change.

Subject: How about this?

JavaDebugString=

Subject: cut and paste messed up

JavaDebugString=

Subject: Third times a charm.

No idea why it kept chopping my message.

Here is a Tech note that details the parameter.

http://www-01.ibm.com/support/docview.wss?uid=swg21410374