There's a memory leak in VS2015's StandardCollector.Service.exe, which is acknowledged by Microsoft, but it won't be fixed until the next Service Pack.
So in the meantime I get a warning from Windows that memory is low and I find out it has exceeded 7 GB of RAM and I kill it. I'd like to be able to automate that.
Requirements:
- Works on Windows.
- Allows you to specify the process by executable path.
- Allows you to specify how much RAM it should exceed before being killed.
- Is free.
There's a similar (unanswered) question here - Choose which program(s) should be killed when out of RAM, but it's different in that I don't want to wait until overall system memory becomes slow, I just want to monitor that process's RAM.
Also there is a question in AskUbuntu that asks basically the same, but I need it for Windows, not for Linux.