SlideShare une entreprise Scribd logo
1  sur  16
Monitoring ASP.NET
How to
Monitor ASP.NET
What Will I Learn Here?
ASP.NET - A web development platform available in Windows Server
What is
ASP.NET?
Counters to
Monitor
Performance
Counter Values
ASP.net is a web development
platform available in Windows
Server. It was built by Microsoft to
allow web developers to create web
applications that are mainly hosted
using IIS. Using ASP.NET developers
can create dynamic websites that
take advantage of its libraries.
So, what exactly is ASP.NET?
By using a programming language such as C# or Visual Basic, the code
written in these libraries can be invoked and used in web pages. ASP.net
files have the .aspx extension.
The following excerpt from Microsoft’s website best describes ASP.NET
in a single phrase: “ASP.net is a free, fully supported Web application
framework that helps you create standards-based Web solutions.
It provides a rich set of features and easy integration with
databases, web services and rich internet applications.
With features such as WebForms, MVC, dynamic data scaffolding, an
AJAX framework, templates and themes, hundreds of built in controls
and free developer tools, ASP.NET will enable you to build Web apps
better and faster.”
So, what exactly is ASP.NET? – Cont’d
There are many tools
that can help you check
your web application
performance, but
ASP.NET contains other
performance counters
that can be monitored.
So, what exactly is ASP.NET? – Cont’d
Also, this web application framework includes a tracing
feature in which you can monitor your code and discover any
errors related to the executed code.
ASP.NET Performance Counters
When you are monitoring your web applications, in addition to the
normal IIS counters, you can also monitor the following performance
counters available with ASP.NET:
• ASP.NETApplication Restarts – this is a value that represents
the total number of application restarts since the IIS server was
last stopped.
• ASP.NETApplications Running – the total number of ASP.NET
applications that are currently running on the web server.
ASP.NET Performance Counters – Cont’d
• ASP.NETRequest Execution Time – measures the number of
milliseconds taken to execute a request. This counter is
important in understanding how your application serves requests.
This counter should be monitored carefully because it may
indicate that either your app’s code is not efficient or there is a
slow performance on your web server which impacts the overall
performance of your ASP.NET applications.
• ASP.NETRequests Rejected – indicates the total number of
rejected applications.
ASP.NET Performance Counters – Cont’d
• ASP.NETRequests Queued – the total number of ASP.NET
requests that are waiting to be executed.
• ASP.NET ApplicationsRequests/Sec – this value represents the
number of ASP.NET requests per second
• ASP.NERequests Current – this is the number of requests that
are currently managed by the ASP.NET ISAPI. This performance
counter will let the application accept requests until the maximum
threshold limit is reached. This counter is very helpful in
monitoring the total number of requests that impact your
application. Any value that is above the number defined in the
requestQueueLimit parameter (configured in the processModel)
will stop the application from accepting new requests.
• ASP.NET ApplicationsErrors Total – the total number of ASP.NET
errors
Preferred Performance Counters
There are so many
ASP.NET performance
counters that it is hard to
find the best combination
of performance counters
to be monitored, while not
impacting your server's
performance or creating a
huge list that cannot be
monitored by system
administrators.
Preferred Performance Counters – Cont’d
Most technical sources suggest the following performance counters
should be monitored with all ASP.NET applications:
• Processor(_Total)% Processor Time
• Process(aspnet_wp)% Processor Time
• Process(aspnet_wp)Private Bytes
• Process(aspnet_wp)Virtual Bytes
• Process(aspnet_wp)Handle Count
• Microsoft® .NET CLR Exceptions# Exceps thrown / sec
• ASP.NETApplication Restarts
• ASP.NETRequests Rejected
• ASP.NETWorker Process Restarts (not applicable to IIS 6.0)
• MemoryAvailable Mbytes
• Web ServiceCurrent Connections
• Web ServiceISAPI Extension Requests/sec
Preferred Performance Counters – Cont’d
We have already gone over some of these performance counters in
the last article, so now let’s focus on some of the new items shown
here.
The Microsoft® .NET CLR Exceptions# Exceps thrown /sec – this
counter measures the number of exceptions thrown by your ASP.NET
applications. In normal behavior web apps should not throw these
exceptions, so keeping an eye on this counter should alert of any
abnormal application performance.
As the number of thrown exceptions increases, the application’s
performance decreases. Your monitoring tool must be configured to
alert administrators if this value is more than 5% of the number of
requests per second.
There are many counters we will not get into, however these are the
counters that have a great impact on application performance. Besides
ASP.NET counters and application counters, there are others that should
be monitored carefully because they indicate the overall resource
utilization on your web server:
• Processor counter - %Processor Time% – this counter indicates
the percentage of time threads are using system processors. The
maximum threshold for this counter is 70%; any value above this
limit indicates that either your applications are not performing well
or your hardware components should be upgraded. Remember
that this counter measures the performance of all processes
running on the IIS server.
Even More Performance Counters!
• Memory counter – Available Mbytes – this counter measures the
amount of physical RAM available. If there is less than 20% free
of the physical memory, consider replacing some hardware
components.
• Process Counters – these are counters that measure the
performance of a single process
• %Processor Time% – this is the percentage of CPU resources
that a single process is using.
Even More Performance Counters! – Cont’d
• Private Bytes – committed memory used by a process. An
abnormal value can indicate memory leaking. Each worker
process is instantiated within a process, so monitor these
counters carefully. If the physical memory used by a process is
more than 60% and the virtual memory is close to 1.6 GB of a
virtual address space of 4 GB, it will start affecting your server’s
performance.
• Thread Count – this indicates the number of threads active in a
process.
• Handle Count – the number of handles in a process. This should
be under 10000.
Even More Performance Counters! – Cont’d
Any Suggestions for Other ASP.NET Counters to Monitor?
This should cover most of the important aspects of monitoring ASP.NET.
Remember, there are an incredible amount of counters that can be
monitored. We hope to have covered the most crucial ones here.
However, if you feel there are any we left out that could be very important
to others, please feel free to post your thoughts below in our comments
section.
Thanks, and stay tuned for our last of this 3 part series, regarding
monitoring SQL Server. Cheers!
Stay tuned the next article, "How to Monitor ASP.NET" in this series from
Network Wrangler.
Author: Popescu Dan-Alexandru
What’s Your Message?
Brought to you by:
POWERADMIN.COM

Contenu connexe

Dernier

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 

Dernier (20)

SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 

En vedette

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

How to monitor asp.net

  • 2. What Will I Learn Here? ASP.NET - A web development platform available in Windows Server What is ASP.NET? Counters to Monitor Performance Counter Values
  • 3. ASP.net is a web development platform available in Windows Server. It was built by Microsoft to allow web developers to create web applications that are mainly hosted using IIS. Using ASP.NET developers can create dynamic websites that take advantage of its libraries. So, what exactly is ASP.NET? By using a programming language such as C# or Visual Basic, the code written in these libraries can be invoked and used in web pages. ASP.net files have the .aspx extension.
  • 4. The following excerpt from Microsoft’s website best describes ASP.NET in a single phrase: “ASP.net is a free, fully supported Web application framework that helps you create standards-based Web solutions. It provides a rich set of features and easy integration with databases, web services and rich internet applications. With features such as WebForms, MVC, dynamic data scaffolding, an AJAX framework, templates and themes, hundreds of built in controls and free developer tools, ASP.NET will enable you to build Web apps better and faster.” So, what exactly is ASP.NET? – Cont’d
  • 5. There are many tools that can help you check your web application performance, but ASP.NET contains other performance counters that can be monitored. So, what exactly is ASP.NET? – Cont’d Also, this web application framework includes a tracing feature in which you can monitor your code and discover any errors related to the executed code.
  • 6. ASP.NET Performance Counters When you are monitoring your web applications, in addition to the normal IIS counters, you can also monitor the following performance counters available with ASP.NET: • ASP.NETApplication Restarts – this is a value that represents the total number of application restarts since the IIS server was last stopped. • ASP.NETApplications Running – the total number of ASP.NET applications that are currently running on the web server.
  • 7. ASP.NET Performance Counters – Cont’d • ASP.NETRequest Execution Time – measures the number of milliseconds taken to execute a request. This counter is important in understanding how your application serves requests. This counter should be monitored carefully because it may indicate that either your app’s code is not efficient or there is a slow performance on your web server which impacts the overall performance of your ASP.NET applications. • ASP.NETRequests Rejected – indicates the total number of rejected applications.
  • 8. ASP.NET Performance Counters – Cont’d • ASP.NETRequests Queued – the total number of ASP.NET requests that are waiting to be executed. • ASP.NET ApplicationsRequests/Sec – this value represents the number of ASP.NET requests per second • ASP.NERequests Current – this is the number of requests that are currently managed by the ASP.NET ISAPI. This performance counter will let the application accept requests until the maximum threshold limit is reached. This counter is very helpful in monitoring the total number of requests that impact your application. Any value that is above the number defined in the requestQueueLimit parameter (configured in the processModel) will stop the application from accepting new requests. • ASP.NET ApplicationsErrors Total – the total number of ASP.NET errors
  • 9. Preferred Performance Counters There are so many ASP.NET performance counters that it is hard to find the best combination of performance counters to be monitored, while not impacting your server's performance or creating a huge list that cannot be monitored by system administrators.
  • 10. Preferred Performance Counters – Cont’d Most technical sources suggest the following performance counters should be monitored with all ASP.NET applications: • Processor(_Total)% Processor Time • Process(aspnet_wp)% Processor Time • Process(aspnet_wp)Private Bytes • Process(aspnet_wp)Virtual Bytes • Process(aspnet_wp)Handle Count • Microsoft® .NET CLR Exceptions# Exceps thrown / sec • ASP.NETApplication Restarts • ASP.NETRequests Rejected • ASP.NETWorker Process Restarts (not applicable to IIS 6.0) • MemoryAvailable Mbytes • Web ServiceCurrent Connections • Web ServiceISAPI Extension Requests/sec
  • 11. Preferred Performance Counters – Cont’d We have already gone over some of these performance counters in the last article, so now let’s focus on some of the new items shown here. The Microsoft® .NET CLR Exceptions# Exceps thrown /sec – this counter measures the number of exceptions thrown by your ASP.NET applications. In normal behavior web apps should not throw these exceptions, so keeping an eye on this counter should alert of any abnormal application performance. As the number of thrown exceptions increases, the application’s performance decreases. Your monitoring tool must be configured to alert administrators if this value is more than 5% of the number of requests per second.
  • 12. There are many counters we will not get into, however these are the counters that have a great impact on application performance. Besides ASP.NET counters and application counters, there are others that should be monitored carefully because they indicate the overall resource utilization on your web server: • Processor counter - %Processor Time% – this counter indicates the percentage of time threads are using system processors. The maximum threshold for this counter is 70%; any value above this limit indicates that either your applications are not performing well or your hardware components should be upgraded. Remember that this counter measures the performance of all processes running on the IIS server. Even More Performance Counters!
  • 13. • Memory counter – Available Mbytes – this counter measures the amount of physical RAM available. If there is less than 20% free of the physical memory, consider replacing some hardware components. • Process Counters – these are counters that measure the performance of a single process • %Processor Time% – this is the percentage of CPU resources that a single process is using. Even More Performance Counters! – Cont’d
  • 14. • Private Bytes – committed memory used by a process. An abnormal value can indicate memory leaking. Each worker process is instantiated within a process, so monitor these counters carefully. If the physical memory used by a process is more than 60% and the virtual memory is close to 1.6 GB of a virtual address space of 4 GB, it will start affecting your server’s performance. • Thread Count – this indicates the number of threads active in a process. • Handle Count – the number of handles in a process. This should be under 10000. Even More Performance Counters! – Cont’d
  • 15. Any Suggestions for Other ASP.NET Counters to Monitor? This should cover most of the important aspects of monitoring ASP.NET. Remember, there are an incredible amount of counters that can be monitored. We hope to have covered the most crucial ones here. However, if you feel there are any we left out that could be very important to others, please feel free to post your thoughts below in our comments section. Thanks, and stay tuned for our last of this 3 part series, regarding monitoring SQL Server. Cheers! Stay tuned the next article, "How to Monitor ASP.NET" in this series from Network Wrangler. Author: Popescu Dan-Alexandru
  • 16. What’s Your Message? Brought to you by: POWERADMIN.COM

Notes de l'éditeur

  1. This presentation demonstrates the new capabilities of PowerPoint and it is best viewed in Slide Show. These slides are designed to give you great ideas for the presentations you’ll create in PowerPoint 2010!For more sample templates, click the File tab, and then on the New tab, click Sample Templates.