The following sections list other ASP. NET applications that can be monitoredProgramPerformance objects and counters. This list is listed alphabetically by the performance object. If the alphabetic order is the same, it is listed alphabetically by the counter.
. Net CLR exceptions
# Of exceptions thrown/sec
The total number of controlled exceptions per second. Performance decreases as the number increases.
. Net CLR Loading
Bytes in loader heap
The number of bytes submitted by the class loader in all application domains.
Current app Domains
The current number of application domains loaded in the process. The value of this counter should be 1 more than the number of virtual directories (the default application domain ).
Current assemblies
The current number of assemblies loaded in the process. Note: The Assembly cannot be detached from the application domain; the entire application domain must be detached. This is a problem for websites with a large number of pages.
. Net CLR memory
# Bytes in all heaps
Displays the total of Gen 0 heap size, Gen 1 heap size, Gen 2 heap size, and large object heap size counters. This counter indicates the memory (in bytes) currently allocated on the garbage collection stack ).
# Gen 0 collections
Displays the number of times the garbage collection function has reclaimed 0th generation objects (the latest and recently allocated objects) since the application was started.
When the available memory in The 0th generation cannot meet the allocation request, The 0th generation garbage collection will occur. At the end of the 0th generation garbage collection, this counter will increase. High-generation garbage collection includes low-generation garbage collection. When high-generation (1st or 2nd) garbage collection occurs, the counter count increases significantly.
This counter displays the previous observed value. The counter value of _ global _ is inaccurate and should be ignored.
# Gen 1 collections
Displays the number of times the 1st-generation object has been reclaimed by the garbage collection function since the application was started.
At the end of the 1st generation garbage collection, this counter will increase. High-generation garbage collection includes low-generation garbage collection. When a high-generation (2nd generation) garbage collection occurs, the counter count increases significantly.
This counter displays the previous observed value. The counter value of _ global _ is inaccurate and should be ignored.
# Gen 2 collections
Displays the number of times the 2nd-generation object has been reclaimed by the garbage collection function since the application was started. This counter will increase when the 2nd-generation garbage collection (also known as "full garbage collection") ends.
This counter displays the previous observed value. The counter value of _ global _ is inaccurate and should be ignored.
Memory
Available Mbytes
The number of physical memory available for processes running on the computer (in MB ). It is calculated by adding the amount of space in the zero-filled, idle, and standby memory list. The idle memory can be used at any time. The zero-filled memory is used to prevent future processes from seeing the data used by previous processes; backup memory refers to the memory that is moved from the working set of the process (its physical memory) to the hard drive of the server but can still be re-called. This counter only displays the value observed last time; it is not the average value.
Process
% Processor time
The percentage of time taken by all process threads to execute commands using the processor. Commands are the basic unit for computer execution. A thread is the object for executing commands, and a process is the object created when the program is running. This count includes processing the execution of certain hardware intervals and trap conditions Code .
Handle count
The total number of handles opened by this process. This number is equal to the total number of handles currently opened by each thread in the process.
Private bytes
The number of bytes of the allocated current memory that the process cannot share with other processes.
Thread Count
Number of active threads in the process. A command is a basic execution unit in a processor, and a thread is the object that executes the command. Each running process has at least one thread.
Processor
% Processor time
Percentage of sampling time taken by the processor to execute non-Idle threads. This is calculated by measuring the time when Idle threads are active at the sampling interval and subtracting the time from the Interval Duration. (When there are no other threads to run, each processor has a idle thread that occupies the processing cycle ). This counter is the primary indicator of processor activity and displays the average percentage of busy time observed during the sampling interval.
Web Service
Bytes encoded ED/sec
The number of bytes received by the web service per second.
Bytes Sent/sec
The number of bytes sent by the web service per second.
Current connections
The number of connections currently established by the web service.
ISAPI extension requests/sec
The number of ISAPI extension requests processed by the web service per second.
Total method requests/sec
The number of HTTP requests received by the web service per second.
Analysis of counter results
Virtual bytes must be larger than private bytes. In general, the changes of virtual bytes and private bytes are roughly the same. When the ratio of virtual bytes to private bytes is greater than 2, the program often has serious memory fragments.
If virtual bytes continues to grow and private bytes remains stable, it indicates that virtual memory is reserving but not used, and some useless objects are left in the memory.
If private bytes continues to grow and # bytes in all heaps does not grow, it indicates that it may be native memory leak, such as the leak in the COM component.
If private bytes and # bytes in all heaps increase synchronously, it indicates that the leak may occur in the managed code.
Normally, the process starts. After all app domains are loaded, bytes in loader heap and current assemblies should be stable. otherwise, the Assembly leak exists. for ASP. net program. If DEBUG = true, it may cause Assembly leak
RelatedArticle
http://blogs.msdn.com/tess/archive/2008/02/20/net-debugging-demos-lab-3-memory-review.aspx