DebugDiagnosticTool Rule for process which restart eriodically

33 Views Asked by At

I suspect the memory leak in our ASP.NET MVC application. I would like create a DebugDiagnosticTool rule for memory leak. The rule is attached to the w3wp process. The problem is we use different process for each app pool. Additionally the app pool is recycled every day and newly created process has of course different PID. Is there any way to automatically create a rule after the IIS pool recycles?

1

There are 1 best solutions below

1
A.Almuqbil On

You can automate the rule creation in IIS by navigate to DebugDiag path and use this syntax in PowerShell:

DebugDiag.Cmd.exe -rule -type Memory -name "Memory Leak Rule" -process w3wp.exe

Hope this answered your need.