Hi,I’ve developed a java agent with Lotus Domino Designer 8.5.
The agent connects to an iSeries5 to retrieve data. With that data it creates a pdf file. After the file creation it sends mail(s) with that file included.
I’ve implemented it like this:
A java Script Library with classes to create Email and Pdf-file. This library has 2 external jar files as archive.
A java agent that creates objects from the classes in this Script Library.
The following problem appears:
I enabled this agent on the domino server. Everytime the agent is run, the memory use by proces amgr increases. This continues til it reaches the maximum allowed and then the agent shows the error out of memory.
I’ve tried different things:
-
putting the jar-files in …/jvm/lib/ext/
-
calling method recycle() on the session when agent is done processing.
-
changes in the java classes
I hope anyone can help me with this matter
agent code:
…
private Session session;
…
public void NotesMain() {
try {
this.session = getSession();
//retrieving array with numbers of orders to process
...
for (Integer order : orders) {
// creating new object for pdf creation
...
// calling method to create the pdf
...
if ( /*pdf creation successful*/ ) {
// creating new object for mail
...
// call method to send mail
...
}
}
// this.session.recycle(); // trying if this helps
} catch(Exception e) {
e.printStackTrace();
}
}
…