Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

PERFMON (Performance Monitor): Demo & Lab

Below is the definitive, step-by-step list of PerfMon counters you must add for .NET / ASP.NET Core / API / Microservices performance optimization.

This is the same checklist used in enterprise performance engineering, load testing, and production diagnostics.

I will give you:

โœ” Exact counters
โœ” In step-by-step order
โœ” Why each counter matters
โœ” Which ones are optional vs mandatory
โœ” What values are considered โ€œbadโ€

This is your final PerfMon Counter Checklist for .NET performance.


STEP-BY-STEP: Add These PerfMon Counters for .NET Application Performance Optimization


๐Ÿ”ต STEP 1 โ€” Add Essential CPU Counters (Mandatory)

โœ” Processor

  • % Processor Time โ€” _Total
  • % Privileged Time โ€” _Total
  • % Interrupt Time
  • Processor Queue Length (from System)

โœ” Process (for your app)

Select instance:
โžก dotnet, w3wp, or yourapp.exe

Add:

  • % Processor Time
  • Thread Count
  • Handle Count
  • Private Bytes
  • Working Set
  • IO Data Bytes/sec
  • IO Read Bytes/sec
  • IO Write Bytes/sec

Why CPU counters matter

  • Detect CPU saturation (>80%)
  • Find thread pool starvation
  • Detect infinite loops, heavy JSON serialization, LINQ misuse
  • Detect high kernel (privileged) usage โ†’ drivers, encryption, networking

๐ŸŸฃ STEP 2 โ€” Add Memory Counters (Mandatory)

โœ” Memory

  • Available MBytes
  • % Committed Bytes in Use
  • Pages/sec
  • Page Reads/sec
  • Cache Faults/sec
  • Committed Bytes

โœ” Process (your app)

  • Private Bytes (memory leak indicator)
  • Virtual Bytes
  • Working Set
  • Page Faults/sec

Why Memory counters matter

  • Identify memory leaks
  • Detect high paging โ†’ application slowdown
  • Understand GC pressure
  • Identify large object allocations

๐ŸŸข STEP 3 โ€” Add Disk I/O Counters (Mandatory)

โœ” PhysicalDisk

(_Total)

  • Avg. Disk Queue Length
  • Avg. Disk sec/Read
  • Avg. Disk sec/Write
  • Disk Reads/sec
  • Disk Writes/sec
  • Current Disk Queue Length

โœ” LogicalDisk

  • % Free Space
  • Free Megabytes

Why disk counters matter

  • Identify disk bottlenecks
  • Troubleshoot long API latency caused by slow file or database I/O.
  • Detect heavy logging or temp file writes

๐ŸŸก STEP 4 โ€” Add Network Counters (Mandatory for API/Web App)

โœ” Network Interface

  • Bytes Total/sec
  • Bytes Received/sec
  • Bytes Sent/sec
  • Output Queue Length
  • Packets/sec
  • Packets Outbound Errors
  • Packets Received Errors

โœ” TCPv4

  • Connections Established
  • Connection Failures
  • Segments Retransmitted/sec

Why network counters matter

  • Understand throughput
  • Detect API congestion
  • Detect retransmissions (network instability)

๐Ÿ”ด STEP 5 โ€” Add .NET CLR Counters (CRITICAL for .NET Performance)

โžก In PerfMon UI, expand:
โ€œ.NET CLR Memoryโ€
โ€œ.NET CLR Exceptionsโ€
โ€œ.NET CLR Jitโ€
โ€œ.NET CLR LocksAndThreadsโ€
โ€œ.NET CLR Networkingโ€

Select your instance:
dotnet, w3wp, or your application name.


๐Ÿ€ .NET CLR MEMORY (Very Important)

โœ” Add these:

  • % Time in GC
  • Gen 0 Collections
  • Gen 1 Collections
  • Gen 2 Collections ๐Ÿ”ฅ
  • Large Object Heap Size ๐Ÿ”ฅ
  • # Bytes in all Heaps
  • Promoted Memory/sec
  • Finalization Survivors
  • GC Handles

Interpretation:

CounterMeaning
% Time in GC > 15%Too much GC blocking = slow app
Frequent Gen 2 GCMemory pressure / large objects
High LOH sizeLarge object allocations causing fragmentation
High Promoted MB/secShort-lived objects living too long

๐Ÿ€ .NET CLR EXCEPTIONS

Add:

  • # of Exceptions Thrown/sec

This indicates:

  • Poor coding practices
  • Bad error handling
  • Hidden exceptions killing performance

If > 100/sec consistently โ†’ WRONG code.


๐Ÿ€ .NET CLR LOCKS & THREADS

Add:

  • # of current logical Threads
  • # of current physical Threads
  • Contention Rate/sec
  • Queue Length

Indicates:

  • Thread pool starvation
  • Async deadlocks
  • High locking contention

๐Ÿ€ .NET CLR JIT

Add:

  • % Time in JIT
  • IL Bytes Jitted/sec

JIT issues appear on:

  • Cold starts
  • Large reflection / dynamic LINQ usage

๐ŸŸค STEP 6 โ€” Add ASP.NET / IIS Counters (If Web App or API)

โœ” ASP.NET Applications

(Select your app pool)

Add:

  • Requests/Sec
  • Requests Queued
  • Requests Rejected
  • Request Execution Time
  • Pipeline Instance Count

โœ” ASP.NET

  • Application Restarts
  • Worker Process Restarts

โœ” Web Service

(For old .NET Framework)

  • Total Method Requests/sec

โœ” WinHTTP Proxy/Service

If using HttpClient extensively.


๐Ÿ”ต STEP 7 โ€” Add Kestrel & Hosting Counters (.NET Core Self-hosted)

If running on Kestrel (non-IIS):

โœ” ASP.NET Core Hosting

  • Current Requests
  • Requests/sec
  • Request Queue Length

โœ” Kestrel

(Available in dotnet counters, but PerfMon may expose via EventSource)

  • Connection queue length
  • Active connections
  • TLS handshake duration

๐ŸŸฃ STEP 8 โ€” Add SQL Server Counters (If Your App Uses DB)

Category: SQLServer:SQL Statistics

  • Batch Requests/sec
  • Compilations/sec
  • Re-Compilations/sec

Category: SQLServer:Buffer Manager

  • Buffer cache hit ratio
  • Page life expectancy (PLE)

Category: SQLServer:General Statistics

  • User Connections
  • Processes blocked

Category: SQLServer:Wait Statistics

  • Lock waits/sec
  • Latch waits/sec

These help detect:

  • Query bottlenecks
  • High CPU SQL queries
  • Plan cache issues
  • Memory pressure

๐ŸŽฏ FINAL: Complete List (Copy-Paste Checklist)

Here is the single list you can paste into training material:


โœ” CPU

  • Processor โ†’ % Processor Time (_Total)
  • Processor โ†’ % Privileged Time
  • Processor โ†’ % Interrupt Time
  • System โ†’ Processor Queue Length
  • Process(dotnet/w3wp/app.exe) โ†’ % Processor Time
  • Thread Count
  • Handle Count

โœ” Memory

  • Memory โ†’ Available MBytes
  • Memory โ†’ % Committed Bytes
  • Memory โ†’ Pages/sec
  • Process โ†’ Private Bytes
  • Process โ†’ Page Faults/sec
  • Process โ†’ Working Set

โœ” Disk

  • Avg. Disk Queue Length
  • Avg. Disk sec/Read
  • Avg. Disk sec/Write
  • Disk Reads/sec
  • Disk Writes/sec

โœ” Network

  • Bytes Total/sec
  • TCP Retransmissions/sec
  • Connections Established
  • Packets Errors

โœ” .NET CLR Memory

  • % Time in GC
  • Gen 0/1/2 Collections
  • Promoted MB/sec
  • Bytes in All Heaps
  • LOH Size

โœ” .NET CLR Exceptions

  • Exceptions/sec

โœ” .NET CLR LocksAndThreads

  • Contention Rate/sec
  • Logical Threads
  • Physical Threads

โœ” ASP.NET / Hosting

  • Requests/sec
  • Current Requests
  • Request Queue Length
  • Request Execution Time

โœ” SQL Server

  • Batch Requests/sec
  • SQL Compilations/sec
  • SQL Re-compilations/sec
  • Buffer Cache Hit Ratio
  • Page Life Expectancy

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Bihar Tourism: Complete Travel Guide to Tourist Places, Culture, Food & Things to Do

The plains along the Ganges hold the foundations of ancient empires, global centers of learning, and the origins of two world religions. Bihar Tourism offers travelers an…

Read More

Complete Guide to Upcoming Events, Tickets & Things to Do

Lucknow is widely known for its classical heritage, historic architecture, and legendary culinary traditions. Beyond its timeless monuments, the city is also home to an active, modern…

Read More

What MedTech Teams Should Understand Before Building SaMD Products

Software is no longer a supporting feature in much of medical technology. It is increasingly the product itself, responsible for interpreting data, guiding clinical decisions, monitoring patients,…

Read More

Best Knee Replacement Hospitals in India: How to Choose the Right Hospital & Surgeon

Facing chronic joint stiffness or learning that a family member may need joint surgery brings up critical healthcare decisions. When daily tasks like climbing stairs, walking around…

Read More

Events in Kolkata: Complete Guide to Upcoming Events, Tickets & Things to Do

Kolkata has a distinct pulse, driven by a rich heritage that effortlessly intersects with a modern, dynamic cultural calendar. From intimate acoustic sessions in heritage cafes to…

Read More

How to Create a Professional Training Agenda in Minutes with the DevOpsSchool Training Agenda Builder

Designing a good training program sounds simple: Choose a topic โ†’ divide it into sessions โ†’ start teaching. In reality, creating a professional training agenda requires much…

Read More
Subscribe
Notify of
guest
2 Comments
Newest
Oldest Most Voted
Skylar Bennett
Skylar Bennett
9 months ago

Really impressive and practical lab โ€” a very detailed โ€œchecklistโ€‘styleโ€ guide for anyone looking to use PerfMon for .NET / ASP.NET Core / API / Microservices performance tuning! The stepโ€‘byโ€‘step list of recommended counters (CPU, Memory, Disk I/O, Network, .NET CLR metrics, etc.), along with clear explanations of why each counter matters, makes this tutorial especially useful for diagnosing realโ€‘world performance bottlenecks โ€” from CPU saturation and memory leaks to disk latency and GC pressure. For engineering teams or SRE/DevOps folks, having this as a readyโ€‘toโ€‘use โ€œcounterโ€‘set checklistโ€ is a huge timeโ€‘saver and a solid foundation for consistent monitoring across applications. ๐Ÿ‘

Jason Mitchell
Jason Mitchell
9 months ago

This labโ€‘style tutorial provides a practical, stepโ€‘byโ€‘step walkthrough of using Windowsโ€™ builtโ€‘in Performance Monitor (PerfMon) tool. It goes beyond the basics by showing how to select meaningful performance counters (CPU usage, process working set, GC cycles, SQL Server batch requests) and compare realโ€‘world scenariosโ€”such as nonโ€‘optimized versus optimized code paths. For DevOps engineers or SREs teaching interns, this piece is especially valuable because it bridges the gap between โ€œwhat can I monitorโ€ and โ€œhow do I interpret the data to find a bottleneck or design flawโ€. With the kind of handsโ€‘on examples provided, itโ€™s an excellent resource for boosting your ability to gather actionable metrics and then use them for performance tuning or capacityโ€‘planning exercises.

2
0
Would love your thoughts, please comment.x
()
x