We are running Domino 6.0.2 and LEI 6.0.2 on an AIX server running 5.1. We connect to a DB2 v7.2.8 database.
We have basically 2 types of agents: Tranmitters, which connect to DB2, extract data, and mail it out to the users; and Receivers, those which get something from the users and load it into DB2.
We wanted to increase the throughput of the Transmitters, and found that multiple agents could run concurrently very effectively. And we also found a way around the Domino restriction of “only 1 active agent per database”. We found that we could run an agent in a different database, and have it run an agent in the first database. Basically, remote-control. Since we already had 2 other databases in our environment, we put a “trigger” into each of those and were then able to run 3 concurrent transmitters in the first database. Worked great in our test environment. Each of the agents operated independently, reading data from DB2 and creating mailings. In fact, they all run the same code, with different data as input. A sample of the trigger and the body of the triggered agent is shown below.
After deploying this approach into production, we started experiencing “Error creating product object” errors with some agents. At first, it was sporadic, where we would get the error only occasionally. It might affect 10% of the runs over a few hours, and then clear up again. We couldn’t find a pattern to this error, either in the system load or in the number of agents running. It would happen during the day when we run 1 concurrent agent, and also at night when we allow 3 concurrent agents. And it would affect all of the scheduled agents EXCEPT for the “triggered” agents. They ran just fine.
Recently, we had a Domino crash, and after that the problem was pretty much continuous. Every run encountered the problem. We rebooted, and that fixed it for about an hour, and then the problem came back. Eventually, we disabled the triggered agents (to return the environment to the single-transmitter approach) and rebooted, and since then we have not seen the problem again. So it appears that something about this triggering approach, or something about the system environment, causes this error. We just can’t pin it down to an exact cause. Maybe it’s something in the Domino code, or maybe a resource constraint on the system. We don’t know.
Our concern is that there is something else happening here, perhaps a resource issue on the system, and that even if we went to a more conventional approach where the transmitters are all in separate databases that we would still have this problem. Especially since it’s such a sporadic problem, and we have been unable to reproduce it in our test environment.
Any ideas?
Here is the code for a trigger:
Sub Initialize
Dim db As NotesDatabase
Dim session As New NotesSession
Dim agent_to_run As notesagent
Set db = session.GetDatabase("","services\competencies\profdev\pdttransmitter.nsf",False)
Set agent_to_run = db.GetAgent("Transmitter1")
agent_to_run.run
Print "after agent"
End Sub
And here is the code which it executes:
Sub Initialize
Call getdata("Transmitter1")
End Sub
Note that there isn’t anything much to it, because everything is in the shared script libraries. The only difference between agents is the name of the configuration file, which tells them the DB2 name and connection information.
I’d include the script libraries, but they have lots of code and I don’t see the need. After all, sometimes it works and sometimes it doesn’t, and it’s always the same code, which tells me that the code is not likely to be the problem. There must be something with the resources on the system which is causing the problem, either not enough of something or something not being freed or something along those lines. At least, that’s how I see it. I just can’t seem to pin down the root cause.