views:

429

answers:

4

I have a web application developed in ASP.NET 2.0 ,deployed in a data center.The application is a media portal with CMS.

The application is hosted in Windows server 2008 and the database is SQL server 2005 in Windows 2003 server.

I have home page with numerous links to sub pages or articles.When i click on any of the links in home page,It will load the content of the page in article.aspx. My problem is with the delay of rendering the article.aspx page.

The status bar shows the progress of loading the new page.But the actual page render happens after few more seconds (20-30) after showing progress of page loads completes.ie; After completing the progress bar in the status bar of my browser,the browser retains to show the current page and its showing a "Done" message in the left side if status bar.After 20- 30 seconds then the browser renders the desired page ( article.aspx )

The speed was good initially and the performance came down almost after an year of hosting. Kindly guide me what is happening here. Do i need to check anything with IIS or DB.

Thanks in advance

A: 

Do you have any Ajax or other javascript code that render content in client-side runtime? This will happen hafter the page is loaded.

awe
A: 

Sounds like your page loads are going to the database for data, maybe your populating a grid and some drop downs for instance. As the data has increased in the DB over time the queries have grown progressively longer to run and your page load has slowed as a result.

Perhaps the host now hosts more sites and more databases on the same servers which has also impacted the site.

Possibly just 1 bad piece of SQL taking 20-30 seconds to complete.

Network issues.

Robert
A: 

You need to enable tracing to see what's wrong. Check the articles here. If you find it is the database issue use SQL Server Profiler.

UserControl
+2  A: 

You have to check either it is database or code.

I agree with robert and suspect this is due to database. you can use sql profiler to find out what is going wrong.

If database is not the culprit then You have to use some kind of profiling tools to check what is going wrong.

As frogbot suggested asp.net trace is one way.

you can also use FireBug,YSLOW,Pagespeed as firfox plugin to help you.

RedGate's Ant Profiler is very good but it is not free.

Mahin