ASP'Net Performance and Optimization - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

ASP'Net Performance and Optimization

Description:

Definition: How 'fast' does web application appear to remote ... Measure and iterate through out. How slow is slow. Memory: Pages/sec. Memory: Available Bytes ... – PowerPoint PPT presentation

Number of Views:189
Avg rating:3.0/5.0
Slides: 12
Provided by: jeffmcw
Category:

less

Transcript and Presenter's Notes

Title: ASP'Net Performance and Optimization


1
ASP.Net Performance and Optimization 
  • 2007
  • Jeff McWherter
  • Director of Software Development
  • A.J. Boggs and Company

2
Things to Think About
  • Design for performance
  • Not necessarily hard

3
What to Measure
Client Response Time Definition How fast does
web application appear to remote browser
hitting the site Measured via TTFB (time to
first byte) Measured via TTLB (time to last
byte) Impacts customer satisfaction with app
Machine Throughput Definition How many client
requests can a server handle under
load Measured in of requests/sec Impacts
of servers you need to buy
4
Measuring Web Performance
  • Measure and iterate through out
  • How slow is slow

5
Performance Counters
  • Memory Pages/sec
  • Memory Available Bytes
  • Processor Processor Time
  • SQL Server Buffer Buffer Cache Hit Ratio
  • SQL Server General User Connections
  • ASP Applications App_Requests_Total
  • ASP Applications App_Rejected
  • .NET CLR Exceptions of Exceps Thrown

6
Tools
  • SQL profiler
  • Ants Profiler
  • Web Development Helper
  • Web Stress tool
  • Visual Studio Team Test Suite

7
Tuning
  • Simple changes
  • SQL tuning
  • View State and Session State
  • Cache

8
ADO Optimizations
  • Open late and close early
  • Connection strings
  • Avoid sp_, fn_ and sys

9
Memory Gobblers
  • Excessive data in cache
  • Uploading and downloading files
  • Too much data from the database
  • Too much data in state

10
In Conclusion
  • Always rely on physical data, dont make
    assumptions
  • Use the tools that you have access to
  • Test for scale early in the application lifecycle

11
Contact
jeff_at_mcwherter.net MSN jeff_at_mcwherter.net http//
www.mcwherter.net/blog
Write a Comment
User Comments (0)
About PowerShow.com