.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

High Performance ASP.NET - Speeding Up ASP.NET Pages

Posted By: Rahul     Posted Date: December 11, 2009    Points: 2   Category :ASP.Net
have been writing a series of blog posts, which I have named High Performance ASP.NET Websites Made Easy! There is no rhyme or reason to the order of these posts and certainly can be read in any order:

Developing High Performance and Scalable ASP.NET Websites
Avoid Chatty Interfaces Between the Tiers in Your ASP.NET Web Application
ASP.NET Page Profiling - Page Tracing - High Performance and Scalable ASP.NET Websites Made Easy
Web Applications: N-Tier vs. N-Layer - Benefits and Trade-Offs
Query Analyzer - Sql Server Database Indexes and Execution Plans

View Complete Post

More Related Resource Links

ASP.NET Best Practices for High Performance Applications

This article lists the techniques that you can use to maximize the performance of your ASP.NET applications. It provides common issues, design guidelines, and coding tips to build optimal and robust solutions.

High-Performance .NET Application Development & Architecture

It has always been a goal of project architects to plan an effective strategy from the ground up in regards to an new application. All relevant factors are taken into consideration with respect to the application, from its design and layout to a functional website infrastructure. Pre-.NET strategies and design guidelines still effective now were developed with Microsoft's DNA (Distributed interNet Application) platform. This model successfully served the purpose of architecting N(any number of)-Tier (levels) applications. In its basic sense, as in most robust, distributed applications, you'll architect 3 main layers or Tiers: presentation, business rules and data access.

10 Tips for Writing High-Performance Web Applications

Writing a Web application with ASP.NET is unbelievably easy. So easy, many developers don't take the time to structure their applications for great performance. In this article, I'm going to present 10 tips for writing high-performance Web apps. I'm not limiting my comments to ASP.NET applications because they are just one subset of Web applications. This article won't be the definitive guide for performance-tuning Web applications-an entire book could easily be devoted to that. Instead, think of this as a good place to start.

Windows with C++: Exploring High-Performance Algorithms


See how you can gain efficiency in surprising ways by looking closely at your algorithms, the data they operate on, and the hardware you're designing for.

Kenny Kerr

MSDN Magazine October 2008

Winsock: Get Closer to the Wire with High-Performance Sockets in .NET


The Win32 Windows Sockets library (Winsock) provides mechanisms to improve the performance of programs that use sockets, and the Microsoft .NET Framework provides a layer over Winsock so that managed applications can communicate over sockets. To use all these layers to write a truly high-performance socket-based application requires a little background information, as Daryn Kiely explains here.

Daryn Kiely

MSDN Magazine August 2005

ASP.NET: 10 Tips for Writing High-Performance Web Applications


Writing a Web application with ASP.NET is unbelievably easy. So many developers don't take the time to structure their applications for great performance. In this article, the author presents 10 tips for writing high-performance Web apps. The discussion is not limited to ASP.NET applications because they are just one subset of Web applications.

Rob Howard

MSDN Magazine January 2005

ATL Server and Visual Studio .NET: Developing High-Performance Web Applications Gets Easier


When developing high-performance applications for the Web, developers often must choose between performance and ease of development. With ATL Server, new with Visual Studio .NET, developers get the best of both worlds. ATL Server uses a tag replacement engine written in C++, provides a simple programming model, and promotes enhanced performance and easy debugging. This article presents an overview of the ATL Server architecture, then creates a basic ATL Server project. It then goes on to explain processing SRF files, HTTP streams, forms, cookies, and header files. Managing session state is also discussed, along with file uploads and performance monitoring.

Shaun McAravey and Ben Hickman

MSDN Magazine October 2000

Designing and Developing High-Performance SharePoint Server 2007 Publishing Sites

Learn about the Web Content Management features in SharePoint Server 2007 that enable organizations to deploy Internet-facing publishing sites, and considerations for developers and designers when designing and building high-performance publishing sites.

How to read and analyze a very large log file with high efficiency and performance?

It is a very large .txt file (more than 3M), and produced everyday, the content is user's system log like below: 2007-11-01 18:20:42,983 [4520] INFO GetXXX() SERVICE START2007-11-01 18:21:42,983 [4520] WARING USER ACCESS DENIED2007-11-01 18:22:42,983 [4520] ERROR INPUT PARAMETER IS NULL CAN NOT CONVERT TO INT322007-11-01 18:23:59,968 [4520] INFO USER LOGOUT   Any idea? Thanks.

object instances in high performance web applications


Imagine I have a class MyTestClass. And I need an instance of this Type throughout my whole web application.
Now there are several possibilities to accomplish this.

1. Make MyTestClass static, make it contain static methods only
Probably the most performant solution. I'm not feeling lucky about using static fields though. Thread safety? What if my static class contained a static System.Collections.Queue? Good idea? Bad idea? Better idea?
What's the best way to write into a Queue from many different threads at the same time anyway...

2. Make MyTestClass a singleton
Good. However I don't really like the idea of checking for an instance of a Type every time I call a method. Performance is an issue. Imagine for example a logging class.

Would it make any sense to store a reference to my singleton instance somewhere to access it directly? I'd prefer something like HttpContext.Current.MyTestClass.
Is this a common approach? It should be possible using the decorator pattern I guess... probably not that easily - I didn't look into it yet.

Any suggestions? :-)

Performance Counter SQLServer:Cache Manager:Cache Pages (Execution Contexts) = 4294967295


Performance Counter


SQLServer:Cache Manager:Cache Pages (Execution Contexts) = 4294967295


What this might mean?


It overflows, but what it might mean …

High performance chat application


Hi there. I want to create high-perfomance chat application compatible with mobile platforms.  (It is not actually chat, but architecture is pretty similar)

My biggest concerns are: I need to update messages for everybody every 1 second. Also I need to insert very often to database.

I'm just wondering whether there is a better way than doing trips every second to database?

And also, what are the best practices on creating this kind of applications?

How improving the db performance with a filegroup on a disk with high I/O access



I have implemented a dwh with some filegroups distributed on some different disks. In particular, the disk contaning the filegroup related to the fact tables has an high I/O access. Is it possible to improve the performance to this disk when a SSRS report is executed against the dwh? How?

Many thanks

General Application Performance - Speeding up Load Times...



I'm not sure if this is possible, or if perhaps I'm not thinking .Net enough for the idea, but I'm coming from a perspective of process creation and assembly loading, that appears to be much slower than I would desire. 

When creating a Win32 API application (non-.Net) in say Delphi or C++, and using Win32 DLLs I can statically or dynamically link the dlls and either way it doesn't really have much apparent issue on the loading of the application. 

I Currently have several library Assemblies which are "Engines" as they were that are used by other "control" assemblies that are used by the application.  So IN all effect there are 10 total assemblies to this application.  Now, when debugging, I've noticed the assemblies being loaded in sequence down at the bottom status bar of VS.  and sometimes given the nature of a rather full desktop of applications I don't always see the Splash screen.  However when I just run the application, not through VS for debugging, but i've installed it on another computer and just run the short cut to the exe, and even on average modern systems it can sometimes take 15 or 20 seconds (maybe more) before the splash screen even displays.  On slower systems this can even be extended to a full minute.  I'm wondering if my design of having t

No rows but high number of used pages. Huh?



  • Windows Server 2003
  • SQL Server 2008 R1SP1CU5



I have a table (let's call it [message_queue]) defined with 2 int columns, 1 datetimeoffset column, 6 varchar(128) columns and 1 xml column. Information in this table is limited to a small number of rows at any one time, though a large number of rows will pass through it over time. Also, the XML values by row can be reasonably large, let's say 5Mb.



We noticed that the database was filling up and on inspection found that the biggest table (using the infamous sp_spaceused stored procedure) was [message_queue]. The procedure reported that it was on the order of 6Gb, yet the table contained no rows. I have subsequently run an index rebuild across all indexes, DBCC UPDATEUSAGE(0) and DBCC CLEANTABLE (and quite possibly some other commands which escape me now) but apparently the table is still 6Gb. Why is this? Those commands were run over a day ago now so I doubt it is to do with ghost cleanup. (I have read the following:

Top .NET Performance Problems and how to avoid them

Every time I work with one of our .NET customers to help them with managing their application performance I come across the same problems as seen with other clients before: lots of ADO.NET queries, many hidden exceptions in core or 3rd party .NET libraries, slow 3rd party components, inefficient custom code

How to improve the performance of ASP.NET MVC web applications

It is an in depth analysis of a Digg-like site and how it went from serving (on a test machine) 6 req/sec to 390 req/sec.

The biggest gain, 74 req/sec to 390 req/sec happened when he introduced data caching and another 25 req/sec where gained when he introduced the compilation of LINQ queries.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend