Title: ASP'Net Performance and Optimization
1ASP.Net Performance and Optimization
- Jeff McWherter
- Director of Software Development
- A.J. Boggs and Company
2Things to Think About
3What 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
4Measuring Web Performance
- Measure and iterate through out
5Performance 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
6Tools
- SQL profiler
- Ants Profiler
- Web Development Helper
- Web Stress tool
- Visual Studio Team Test Suite
7Tuning
- View State and Session State
8ADO Optimizations
- Open late and close early
- Connection strings
- Avoid sp_, fn_ and sys
9Memory Gobblers
- Uploading and downloading files
- Too much data from the database
10In 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
11Contact
jeff_at_mcwherter.net MSN jeff_at_mcwherter.net http//
www.mcwherter.net/blog