SujithKumar
20th November 2007, 22:44
We are facing a problem with orphan baan processes on the server. These process leave orphan connection on the server and the database, sucking up memory and other resources

To be precise, we use vertex as tax software, integrated to Baan. When ever baan makes a call to vertex, it uses an excutable api.exe. This executable is started on the server. In normal situations when the user log out of baan api.exe proces is terminated. All fine!

However, if the user connection is lost (this happens some times, laptop user pull their latop out with an open baan connection. Also it can happen with any glitch in network). At this point ntbshell.exe is terminated also sh_server.exe is terminated , but the associated api.exe is not terminated and sits there as orphan, sucking up system resources

If any of you faced this problem? Any ideas? or point me in some direction?
I was wondering if there is some utilities avialable, which can run on the server and periodically look for orphan and kill them??

Even if you are not using vertex, any ideas in this direction would help

Thanks much

sukesh75
21st November 2007, 07:46
If licmon is still available on a Baan5 platform, you could create a job in windows scheduler where in you could use the "licmon -c" command to run at regular intervals..

Do look around for "Orphan process" in Baanboard and you would get more ideas..better ones perhaps..

sk

suhas-mahajan
21st November 2007, 08:58
Hi SujithKumar,

Please refer to - http://www.baanboard.com/baanboard/search.php?searchid=484778

regards,

-Suhas

ecarceller
21st November 2007, 20:36
Suhas, your link returns this:
Sorry - no matches. Please try some different terms.

SK,
licmon -c only releases license slots of dead ntbshells

Sujith,
PsTools v2.44 which can be downloaded from www.microsoft.com has a utility called pslist which can give you processes' trees. Any api.exe with no ntbshell in its tree can be killed. It should not be too difficult to build a script based on this.

Eduardo

suhas-mahajan
22nd November 2007, 06:14
Hmmmm...dont know what happened!

Anyway, here are links, hope this helps -

1. http://www.baanboard.com/baanboard/showthread.php?t=28142&highlight=kill

2. http://www.baanboard.com/baanboard/showthread.php?t=12824&highlight=kill

3. http://www.baanboard.com/baanboard/showthread.php?t=26530&highlight=kill

regards,

-Suhas

SujithKumar
26th November 2007, 16:50
Thanks to all for your suggestions. I will check them out and let you all know