RE: Finding Bottlenecks



Hi Nick,

Regarding on such issue, for locating the bottle neck, it is quite common
to do some tracing or profiling work upon your web application. for tracing
, the ASP.NET has already provided trace functionality:

#ASP.NET Trace
http://msdn.microsoft.com/en-us/library/y13fw6we(VS.71).aspx

#Tracing in ASP.NET 2.0
http://www.beansoftware.com/ASP.NET-Tutorials/Tracing-ASP.NET.aspx

You can add trace print statement in those page events/functions where you
put code logic(may block the page) so that in the trace output, you can
view the time point those event arrive and the next one starts.

Also, visual studio has provided good profiling tools that can help track
the performance issues:

#Analyzing Application Performance using Profiling Tools
http://msdn.microsoft.com/en-us/library/z9z62c29.aspx

#How to: Create Performance Session for ASP.NET Applications
http://msdn.microsoft.com/en-us/library/2s0xxa1d(VS.80).aspx

the profiling report can give you some info such as what are the most used
functions, or the most long run functions...

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.






--------------------
From: "Nick" <a@xxxxx>
Subject: Finding Bottlenecks
Date: Tue, 22 Jul 2008 18:44:40 +0100


Hi there,

I have a website that functions fine locally, but when published to
the
server it develops a bottleneck during loading some of the pages.
Basically
what happens is the page loads to about 25% then it freezes for anything
from 10 - 40 seconds, before suddenly loading the rest of the page.

Of course I understand that this could be down to some code on the
page
locking the thread or suchlike, but I would like to be able to be able to
find exactly where the bottle neck is occuring. Strangely enough this
doesn't seem to occur in Firefox although Firefox displays quicker it
seems
to do whatever is holding IE up in the background so you get the illusion
of
it loading quicker.

Any suggestions on tools or methods for finding bottlenecks in page
loading? Many thanks in advance for your time and help.

Nick.




.



Relevant Pages

  • Re: Finding Bottlenecks
    ... Unfortunately I enabled tracing and when I finally got it to work during ... I guess that means that I'm going to have to look at profiling as per ... Regarding on such issue, for locating the bottle neck, it is quite common ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Function Names not Showing on Performance Reports
    ... Welcome to Microsoft Newsgroup support service. ... Are you profiling the web site by Visual Studio or command line too? ... I would suggest to send your VSP file to my mail box ... You may instrument the pre-built assemblies first and instrument ...
    (microsoft.public.vsnet.enterprise.tools)
  • Re: [PATCH] s390 (7/9): oprofile for s390.
    ... Add oprofile support for s/390. ... * The profiling function is SMP safe. ... +static inline void s390_do_profile ...
    (Linux-Kernel)
  • [PATCH] s390 (6/6): oprofile for s390.
    ... Add oprofile support for s/390. ... menu "Kernel hacking" ... * The profiling function is SMP safe. ...
    (Linux-Kernel)
  • RE: I am not able to profile a C# app
    ... It seems you faced an issue that you cannot profiling C# application. ... configuration on it? ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.debugging)