Processes snapshot throttling, no CPU/RAM reports
- Prevents crashes caused by extensive use of AdoptIfAlreadyRunning="1" in SharedConfig.xml.
- Disabled the CPU/RAM usage reports per app, also suspected from occasionally crashing the dirigent.
Problem fixed: Many apps started in close sequence and having AdoptIfAlreadyRunning="1" caused the dirigent process to crash/disappear with no exception or other trace.
Now throttling the GetProcesses() method call frequency to avoid the dirigent from being killed by OS.
-
A log message indicating the active throttling:
FindProcessByExeName(C:\Windows\notepad.exe): Throttling the Process.GetProcesses() calls to prevent resource shortage and being killed by OS. Sleep(311).