|more useful options|
DBI connection creates zombie processby prashantktyagi (Scribe)
|on Sep 06, 2012 at 09:32 UTC||Need Help??|
prashantktyagi has asked for the
wisdom of the Perl Monks concerning the following question:
I am making db connection to sql server using dbi proxy.I have one window service(build using perlsvc) written in perl bundled dbiproxy.exe and myserver.exe.myserver.exe return a available port when client make INET connection.
myserver.exe checks port used and return a port. after that db connection is made from DBI.
After all db operation we close $dbh handle. Here it should kill dbiproxy.exe running on server. But in some case or may be when too much or parallel connection is made, some zombie process created even after closing DBI connection. This cause on server side that dbiproxy.exe hold a port that should be free.
when reserved port (9000-9100) hold by these process. It failed to get a port.
How I can kill these zombie process. I have tried wmic and tasklist command to get the process status but no luck from it.
Guide me and if need more info let me know.
I did some investigation and found out dbiproxy.exe created folders inside windows directory. like
I did wmic query to check the list of zombie process and deleted process and after that folder related to these process too.