RKP
RKP

Reputation: 5385

tracking down slow performance of an ASP.NET web page

I want to find out the reason for slow performance of some web pages of an ASP.NET intranet website. the reasons could be many like large view state, number of round trips to the server and database, inefficient code in UI/middle tier etc. most of these slow pages are complex web pages with some third party controls, user controls.

what is the quickest way to find out what is causing the page to slow down without debugging each and every interaction on the web page and stepping through lines of code. will the code profilers like ANTS be of any help? or are there any better ways? there could be many factors for slow performance of a page, but I want to fix them in priority order.

thanks, Rama

Upvotes: 2

Views: 7912

Answers (5)

amol thikane
amol thikane

Reputation: 11

If your web application is creating trace files then stop the web site, delete all archive trace files and restart the web site. It helped me to resolve the issue.

Upvotes: 1

Yordan Georgiev
Yordan Georgiev

Reputation: 5420

Some addtions:

  • Search for unproper Exception handling / throwing etc.
  • Search for left debugging code - one System.Diagnostics.Debug.WriteIf in a large loop or dataset is devastating
  • search for multiple databinding - broken page life cycle
  • search for code smell - the shit smells before hitting the fan ...

Upvotes: 0

user273544
user273544

Reputation:

Try FastSQLDataSource. It helps when you need faster display of large amounts of data in your web application using grids, lists and other bound controls. http://www.nitrosbase.net It can work almost without coding or sometimes with no coding at all.

Upvotes: 0

RameshVel
RameshVel

Reputation: 65857

Use Fiddler or HTTPWatch to profile the web application, this works with IE too..

And

I just came across a interesting post by john resig - deep tracing IE about the new client side profiler tool for IE. It is awsome & Its free.

You can get it here

Upvotes: 1

rahul
rahul

Reputation: 187020

You can use a firefox addon named yslow whcih analyzes web pages based on Yahoo's performance rules.

If you want to check code performance then you can use a profiling tool.

For SQL there is SQL Server Profiler.

For .Net you can use ANTS Performance Profiler

Upvotes: 3

Related Questions