Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Profiling

I have a slow asp.net program running. I would like to profile the production server to see what is going on, but I don't want to slow down the production server noticeably.

In general, is it standard practice to profile a production box or just local dev boxes? Also, what progams do you recommend to accomplish this?

like image 819
Brian Smith Avatar asked May 06 '11 14:05

Brian Smith


People also ask

How do I run .NET profiler?

NET Async tool allows you to analyze the performance of asynchronous code in your application. This tool is available in the Performance Profiler. Open the Performance Profiler by choosing Debug > Performance Profiler (or Alt + F2). The tool shows each async operation in a list view.

What is profiling in APM?

These profilers track transaction time, such as how long it takes for a web request to complete, how long a query takes, while also providing improved visibility into errors and logs. An application performance management tool, or APM for short, is an example of a server-side profiler.

Which is a profiling tool?

You can use profiling tools to identify which portions of the program are executed most frequently or where most of the time is spent. Profiling tools are typically used after a basic tool, such as the vmstat or iostat commands, shows that a CPU bottleneck is causing a performance problem.

What is ANTS profiler?

NET Testing System (ANTS) Performance Profiler is a . NET profiler for desktop, ASP.NET, and ASP.NET MVC applications. This technology allows the user to profile the code of applications written in any of the . NET Framework languages, including Visual Basic . NET, C#, and Managed C++.


2 Answers

I can recommend you to use "dynatrace Ajax edition 3" for client side profiling (it's free and easy tool) and "JetBrains dotTrace" for server side profiling. This tools does not slow down server as i know.

like image 82
Andrei Avatar answered Sep 27 '22 21:09

Andrei


You can use Tracing and it is recommended to check these things on your local machine, but if you want to check something on server, you can enable tracing for short in your web.config.

ASP.NET tracing enables you to view diagnostic information about a single request for an ASP.NET page. ASP.NET tracing enables you to follow a page's execution path, display diagnostic information at run time, and debug your application. ASP.NET tracing can be integrated with system-level tracing to provide multiple levels of tracing output in distributed and multi-tier applications.

ASP.NET Tracing Overview

Tracing in ASP.NET

like image 28
Muhammad Akhtar Avatar answered Sep 27 '22 19:09

Muhammad Akhtar