0

I'm looking creating some health check scripts via Powershell for my environments. In my health check script I'm including the running status of my IIS Windows Services, and the Worker Process status. However, I can't figure out how to identify if my Appdomain has been unloaded. And if it has, what time was it unloaded.

FYI, the solution at How to check if AppDomain is unloaded? doesn't quite fit the bill. Looking into my own application log is another alternative, but I'm hoping there a way to check that by inspecting the worker process via Powershell or something.

My application is running on Windows Server 2012 R2 and IIS 8.5, and my health check scripts are using Powershell v4.0.

Community
  • 1
  • 1
louis xie
  • 1,352
  • 2
  • 12
  • 22
  • Are you confusing AppDomains and AppPools, or are you truly interested in interrogating the appdomain of a running app? – Mathias R. Jessen Sep 21 '16 at 15:10
  • Even if your Appdomain has been unloaded, your IIS Windows Services, and Worker Processes will still be in a running status. – louis xie Sep 21 '16 at 17:14

0 Answers0