Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find performance hot spots in .Net application?

I have an existing ASP.NET 2.0 web service serves several WinForms clients. In our application, We belive we have performance problem in several levels.

  1. Sending toomuch data in syncrounous request
  2. Lazy loading, Too many round trip between web service and database
  3. POCO <-> Sql object mapping using untyped datasets and reflection[no caching]

This is an existing application with large code base, I would like to instrument this app to find out hotspots.

  1. How can I instrument remote apps like winforms client deployed in remote places?
  2. How can I instrument Web Service?
  3. Edit** Are there any profilers better than VS profiler?
  4. Can I trust the profilers to tell me the hot spots, so I don't pollute my code with instrumentation? Or Do I have to take the middle road, profiler + instrumentation?
like image 702
iraSenthil Avatar asked Apr 26 '11 16:04

iraSenthil


People also ask

How do you check the performance of a .NET application?

In the Windows Performance Monitor (Perfmon.exe), the per-application counters are available under the ASP.NET Applications performance object. If there are multiple applications on the server, you specify a particular application instance when selecting a counter to monitor.

What is performance HotSpot?

From a software performance standpoint, “hot spots” are an area of intense activity. They're hot spots because they're frequently executed code paths with some sort of friction or bottleneck. They represent potential optimization paths for improving the performance of your code or design.

How do you check performance of code in Visual Studio?

Measure performance in release buildsOpen the Performance Profiler by choosing Debug > Performance Profiler (or Alt + F2). For more information on using the CPU Usage or Memory usage tool in the Performance Profiler vs. the debugger-integrated tools, see Run profiling tools with or without the debugger.


1 Answers

This may help:
ASP.NET and WorkerThreads – Interesting performance tweaks
20 Tips to Improve ASP.net Application Performance
Use Custom Http Handlers To Improve Performance in ASP.NET
Best practices for ASP.Net applications
Scaling Strategies for ASP.NET Applications

like image 84
lsalamon Avatar answered Sep 28 '22 02:09

lsalamon