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
Updates:
Adding following in workstation's notes.ini solved the problem,
JavaDebugString=-XX:MaxPermSize=256M
Any consequences in performance if I go with following setting ?
September 6, 2010 at 12:24 AM
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:
http://www-01.ibm.com/support/docview.wss?uid=swg21097861
Uwe
September 6, 2010 at 12:27 AM
Lonzo,
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?
September 6, 2010 at 1:24 AM
Designer Help might be wrong here. Here is more about the "problem":
Bob Balaban's Blog has more details about the memory management "features".
http://www.bobzblog.com/tuxedoguy.nsf/dx/geek-o-terica-5-taking-out-the-garbage-java?opendocument
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.
September 6, 2010 at 1:49 AM
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.