The simplest ASP. NET performance monitoring tool is the performance counter:
Run, enter perfmon, you can open the system's built-in Performance Monitor, you can add performance counters.
Performance object |
Performance counters |
ASP. NET |
Application Restarts |
ASP. NET |
Requests Queued |
ASP. NET |
Worker Process Restarts |
ASP. NET Applications |
Errors Total |
ASP. NET Applications |
Requests/Sec |
Processor |
% CPU Utilization |
ASP. NET performance monitoring
Note:
If the CPU usage is low or cannot be maximized regardless of the client load, it indicates that the Web application has a lock or resource contention.
In addition, the following performance counters may also be valuable for determining the performance of Web applications.
Performance object |
Performance counters |
ASP. NET Applications |
Pipeline Instance Count |
. Net clr Exceptions |
# Of Exceps Thrown |
System |
Context Switches/sec |
ASP. NET performance monitoring
Note:
1. The "# of Exceps Thrown" counter shows the number of exceptions Thrown in the application, as these may have performance hint. However, some code paths can be used normally only when the dependency is abnormal. For example, the Redirect method on the Response object causes a ThreadAbortException exception, which cannot be caught. Therefore, it may be useful to use the "Errors Total" counter to track this value to see if an exception has occurred in the application.
2. The Context Switches/sec counter measures the rate of all CPU switching thread Context in the Web server computer. The high value of this counter usually indicates that there is a high lock contention, or there is a large number of switching between the thread mode and the kernel mode. In this case, you should use the Sampling Analyzer and other tools for further research.
- Some misunderstandings about. NET performance and the relationship between C # and VB. NET
- Lambda expressions: Do you need clear code for performance?
- Analysis of methods to improve the performance of GDI Programming
- Use Cache to improve ASP. NET performance
- Analysis on the Performance of sessions in ASP. NET