Wednesday, March 21, 2012

Handle Leak with Domino Server

Run next code as third party program on Domino binaries.

PATH must point to Domino location and Notes.jar must be from Domino.

It will crash Domino server within few minutes. The reason is that Domino has Handle Leak on every create\recycle session. It will free only if Java program will stop.

The same code works correct with Notes Client



There is dummy work around. I am not sure it will stable and appropriate for any

If test will stop without closing notes thread (incorrect closing) then Domino will generate message in the console:

"process ... javaw.exe ... has terminated abnormally" 

In the case of this message begin to showing in the domino console, then handle counts will not rising and this code will work without crash.

2 comments:

Unknown said...

I do not understand your problem. Why do you want to initialize and terminate the thread all the time You should initiate the thread at the beginning and should terminate at the end. So even if there is a handle leak you will never have a problem with this.

Andriy Kuba said...

Thank you Ralf,

ofc, there is no problem if you need to do something only ones.

I am using framework that runs my code time to time. Every time it leak two handle. My simple example just show the root of issue.

You give a good idea, mb I need to change framework to run it in the NotesThread.

The bad thing there is that I need to run also another tasks, not only Domino. It will look mess to run non-domino code in NotesThread.