In the event you want to disable Retrace's .NET profiler and APM features on a server, but want to continue monitoring the server and the apps on it without profiling, just follow these simple steps.
Disabling via Server Settings
First go to Server Settings for the server that is running APM that you wish to disable.
Simply click the Disable APM button to disable APM and to restart IIS. Once IIS restarts, it will no longer have the Retrace APM Profiler attached and you will stop seeing APM data in your application dashboard.
Disabling the Profiler Manually
While we don't recommend this as your normal course of action, if you need to disable the profiler manually rather than through the UI, take the following actions on your server:
- Stop IIS
- Delete or rename the profiler DLL found at:
[Install Drive]:Program Files (x86)\Stackify\Profiler\[x64 or x86]\StackifyProfiler_[x64 or x86].dll
- Restart IIS
The CLR will still attempt to load the profiler and immediately fail, but will continue to load your app and run it as normal, without profiling. This event will be logged to the Windows Event Viewer.
Disable the Profiler Temporarily
Retrace's profiling is done within your .NET process and the data is then collected by our Windows service. It takes two different components. If you stop the Stackify Monitoring Service, after a few minutes the profiler that runs within your .NET process will stop outputting data. It senses that the Windows service is not running and it stops instrumenting your application at runtime. This will reduce the instrumentation overhead on your .NET process when it stops.