Search the Community
Showing results for tags 'cpu time'.
-
I have a Terminal Server running a company app. Every now and then one of the instances of the app crashes but keeps running. When this happens the roque program will hog the CPU and other users will start to complain about the server being slow (especially when doing big queries). In the past I have tried several ways to "kill" the roque program, like taskmanager, using taskkill, using PsKill, using other 3rd party program killers, but to no avail. The only way to get rid of the roque program is to restart the server, however because the server is use almost 24/7, I do not want to restart it every day. At the moment, when we determine a roque program, a tasksheduler is turned on to reboot the server after the nightshift, but about 30 minutes before the morning shift starts. One way to determine a program has gone roque, is to check out the "CPU Time" on the WIndows Task Manager. This is the total time a program/process has used the CPU. For most programs this only a few minutes, but definetely less than 1 hour during 24 hours. I would like to find out the CPU (used) Time of all running programs (processes), to determine if there are programs which have used more then 1 hour CPU Time. Whenever I could programatically determine a roque program in progress, I want to shedule a morning restart of the server. My main problem is, I have not find a way to determine the "CPU Time" (see screenshot). I have search the forum, tries several scripts and snippets to no avail. So any help to determine this "CPU Time" for the running processes would be much appreciated!
- 7 replies
-
- cpu time
- task manager
-
(and 1 more)
Tagged with: