Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Optimizing an ASP.NET application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Danny - 18 Oct 2007 09:17 GMT
Hi All,

Yesterday I ran my ASP.NET application as a client and it had serious
performance issues (clicking a button and waiting 2 minutes to get a
response, images downloaded very slowly, etc.), so I've entered
another application on the same server, but this one was a classic ASP
application and it performed fast as always.

I sometimes get users feedback about poor performance of the asp.net
app, but I've never experienced it myself, and now I have, making me
very concerned... Because the poor performance problem only happens
SOMETIMES, making it difficult for me to find the factors that causing
it.

So the question is: How can I optimize my asp.net application for best
performance?

Using .net 2.0, Windows Server 2003, IIS 6, SQL Server 2000,
sessionState mode is "InProc".
The asp.net application has its own application pool.

Any thought or idea would be appreciated.

Danny
Mark Rae [MVP] - 18 Oct 2007 09:34 GMT
> So the question is: How can I optimize my asp.net application for best
> performance?

Impossible to say without seeing your code...

However, there are several things to check first:

1) Are you explicitly disposing all disposable objects? Do not wait for the
GC to do this for you...

2) Are you opening database connections only when required and closing them
immediately? Leaving database connections open is very bad for
performance...

3) Are you taking advantage of connection pooling by using the same
connection string for all database connections?

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

bruce barker - 18 Oct 2007 16:57 GMT
check you viewstate size. firefox is handy for this, but you can save
the page to disk and check the size. if its much over 100k, then you
will have problems when the site is not local.

-- bruce (sqlwork.com)

> Hi All,
>
[quoted text clipped - 20 lines]
>
> Danny

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.