Chapter 3. Memory
Along with the CPU, memory is a critical hardware resource that directly affects the performance of any program running on a web server. When it comes to generating web pages using ASP.NET, a shortage of memory reduces performance for two fundamental reasons:
- It forces the server to swap data out of memory to the swap file on disk. This not only increases CPU usage and disk I/O, but also slows down data access because accessing data on disk is much slower than accessing data in memory.
- It prevents you from using caching, a powerful technique that trades off increased memory use for improved performance. Caching is discussed in Chapter 5,Caching
The quickest and cheapest way to overcome memory problems may be to simply add more physical ...
Get ASP.NET Site Performance Secrets now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.