Any clue about this error ? Please note, I'm not doing anything to handle attachments.

My Java console says , "java.lang.OutOfMemoryError"

I'm recycling session and database once agent is done. Here is some piece of code,

Some more updates , code even doesn't execute very first "system.out.println.." line


Adding following in workstation's notes.ini solved the problem,


Any consequences in performance if I go with following setting ?

4 Responses to "What does this Domino Java error means ?"

  1. gravatar Lonzo Says:

    Session and Database recycling is often not sufficient.
    Once you access documents (sure you do), you need to recycle
    these as well.

    Please have a look at this IBM Documentation:


  2. gravatar Rishi Says:


    As per designer help, Recycling a parent recycles all the children.So,if I recycle "Session" , all the related instances should be recycled. Isn't it?

  3. gravatar Lonzo Says:

    Designer Help might be wrong here. Here is more about the "problem":

    Bob Balaban's Blog has more details about the memory management "features".

    Bob is the one that has done the Java integration into Notes/Domino.
    He knows what he is talking about :-)

    Let us know if this information is helpful for you.

  4. gravatar Rishi Says:

    Thanks Lonzo. Great article indeed.
    Does it mean default heap size is enough to run complex java agents ? Once I've increase my client heap size ( JavaDebugString=-XX:MaxPermSize=256M ), code started working fine.

Leave a Reply

preload preload preload