Skip to content

A Windows background service which monitors hung processes and kills them after a fixed time period

Notifications You must be signed in to change notification settings

barnardos-au/HungProcessKiller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

HungProcessKiller

A Windows background service which monitors hung processes and kills them after a fixed time period

Configuration

Edit app.settings and define your processes you wish to monitor. Example:

CheckInterval PT30S
Definitions [{ProcessName:chromedriver,MaxRunTime:PT30M},{ProcessName:notepad,MaxRunTime:PT8H4M15S}]

CheckInterval is the interval time for checking for hung processes. The value is a TimeSpan. In this example it is set to 30 seconds.

Definitions is an array of items to monitor. Each item consists of a ProcessName and a MaxRunTime. In this example we wish to monitor for hung chromedriver and notepad instances. The former we're allowing to run up to 30 minutes before the process is killed, and the latter we're allowing up to 8 hours, 4 minutes and 15 seconds before the process is killed.

Install

HungProcessKiller.exe install
HungProcessKiller.exe start

About

A Windows background service which monitors hung processes and kills them after a fixed time period

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages