services and more
Posted: Fri Apr 30, 2021 5:10 pm
Hi you all,
I searched the forum for some code, that will work for services, but most of it is so old that it doesn't work.
My problem:
1.) I need to find services/processes by name. When they are hung (dead), they still show running for some reason, but they not use any memory.
2.) Services are running, but are running out of memory - nothing left, they silently quit/die. How can I find that out.
The program should run every 5 minutes - and take any chance to find out what has quit.
If something quit, kill the dead processes/services and restart the service and/or the process.
Well this is a real world problem and does anyone have a solution or program fragment that would help me?
Thanks in advance
I searched the forum for some code, that will work for services, but most of it is so old that it doesn't work.
My problem:
1.) I need to find services/processes by name. When they are hung (dead), they still show running for some reason, but they not use any memory.
2.) Services are running, but are running out of memory - nothing left, they silently quit/die. How can I find that out.
The program should run every 5 minutes - and take any chance to find out what has quit.
If something quit, kill the dead processes/services and restart the service and/or the process.
Well this is a real world problem and does anyone have a solution or program fragment that would help me?
Thanks in advance