Help Docs

Windows Service Performance Monitoring

Monitor the performance of your Windows services developed in the .NET platform with the APM Insight .NET agent. Analyze the method calls of your Windows services and enhance their performance. You can also monitor the performance of Windows services hosted in your server. 

How it works

In general, .NET web applications hosted in IIS servers will have contextual information instrumented with their HTTP requests. These requests are also reported as web transactions. Windows services, on the other hand, don't have HTTP requests, meaning that default methods like OnStart, Run, OnPause, OnContinue, OnStop, OnSessionChange, OnShutdown, and other similar service methods can be monitored using Custom Instrumentation Manager

By adding methods to Custom Instrumentation Manager, you can monitor the performance of exceptions, database calls, web service calls, and third-party packages like loggers, caches, and NoSQL calls. Use Custom Instrumentation Manager to add more methods from service-dependent dynamic-link library (DLL) files, allowing you to view the performance of every individual transaction.

Configuration steps

  1. Log in to your Site24x7 account, then go to APM > Download .NET Agent. For details, refer to these installation instructions. 
  2. In the Edit configuration dialog box—which appears at the end of agent installation—select the Enable windows service monitoring checkbox under the Windows services tab. 
  3. Click Save.
  4. Windows services developed in .NET will populate a list. Select the services that you want to monitor and click Save.
  5. Upon saving, the executable file for corresponding services will be added to Custom Instrumentation Manager.
  6. Use the services.msc console to restart each of the Windows services from this list.
  7. You can now view the monitors you added from the Site24x7 web client and the basic methods of these services will now be tracked. 
  8. If you want to monitor any dependent DLL methods for particular service processes, just add them using Custom Instrumentation Manager.
  9. View the performance of each your services' executed methods under the Tracestab.
  10. View the status of your Windows service monitors using the Health Monitor. This tool also provides the status of monitors and Windows services.
             

Notes

  1. Whenever you make any changes to Windows services in Edit configurations, you must manually restart the modified services.
  2. Add additional service-dependent DLLs to Custom Instrumentation Manager to track the performance of methods.
  3. Only services developed in .NET will be shown in Edit configurations.

Was this document helpful?

Would you like to help us improve our documents? Tell us what you think we could do better.


We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.


Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!