Questions tagged [perfview]

PerfView performance tool for .NET developers by Microsoft

PerfView enables you to identify the performance hotspots in your app and enables you to quickly determine the code that needs to be updated to mitigate the hotspots. You can use PerfView to investigate .NET Framework (all versions), C++, or JavaScript apps. It also supports investigating performance issues in Windows Store apps.

MSDN blog post: Improving Your App's Performance with PerfView

69 questions
2
votes
0 answers

ActivityId missing from ETW events published from different threads

So I have a WCF service that I am hosting in a console application on my dev machine. I am running PerfView on the same machine to collect ETW (Event Tracing for Windows) events. The WCF service makes use of the TPL (Task Parallel Library) and I…
Jason Boyd
  • 6,839
  • 4
  • 29
  • 47
2
votes
0 answers

Nested ASP.NET activities for independent requests

I have a trace like this done by perfview: It should be taken with 'Thread time' switch. What I don't understand is why the activities are nested like this. I'm pretty sure that requests for the files are independently made by a browser and there…
stej
  • 28,745
  • 11
  • 71
  • 104
2
votes
1 answer

Performance impact due to store.Open and store.Certificates.Find methods in X509Store

private static X509Certificate2 FindCertificate(string certificateSubject) { const StoreName StoreName = StoreName.My; const StoreLocation StoreLocation = StoreLocation.LocalMachine; var store = new X509Store(StoreName, StoreLocation);…
StackOverflowVeryHelpful
  • 2,347
  • 8
  • 34
  • 46
2
votes
1 answer

How to define names hierarchy in ETW EventSource?

In my project I use System.Diagnostics.Tracing.EventSource like this: namespace kafka4net.Tracing { [EventSource(Name = "kafka4net")] public class ConnectionTrace : EventSource { public static ConnectionTrace Log = new…
Vadym Chekan
  • 4,977
  • 2
  • 31
  • 24
2
votes
0 answers

IIS worker process continually increase memory usage

We are running a web site on a machine with 16 GB RAM, IIS 8.5 and .Net 4.5.2. After recycle our web site w3wp process memory increase to 9 GB in a day. (Machine wide view but only our web site worker process memory usage increase) When I got a…
2
votes
0 answers

Interpreting the results of the JITStats report in Perfview

I've collected some PerfView results for my ASP.NET application, and can see that it is spending an enormous amount of time JITting. This conclusion is matched by the performance counter "% time spent in JIT" - this averages around 30%, which is…
pattermeister
  • 3,132
  • 2
  • 25
  • 27
2
votes
1 answer

No events from custom .Net 4.5 EventSource ETW provider in PerfView

I created an EventSource (WebApiEventSource) in my ASP.NET WebApi application (to is as ITraceWriter-implementation): [EventSource(Name = "WebApi")] public class WebApiEventSource : EventSource { public static readonly WebApiEventSource Log =…
Shrike
  • 9,218
  • 7
  • 68
  • 105
1
vote
0 answers

Perfview, BLOCKED_TIME and Pause in Garbage Collection

I am trying to improve performance on a single threaded computationally intensive / low IO .NET 4.7.1 program by analyzing it in perfview, running on Windows Server 2016 in AWS on a r5.8xlarge instance (32 core, 256GB RAM). I took a 700s sample of…
Kevin Kostrzewa
  • 193
  • 1
  • 9
1
vote
1 answer

High CPU command for perfview explanation

I am running this command to collect high cpu issues with Perfview with a threshold of 75. As you can see its doing something already, collecting stuff. Also there seems to be a 3 second trigger. I want this to collect and not take up space until…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
1
vote
0 answers

PerfView and high CPU usage during Garbage Collect

For the last few days I have been using PerfView to look for extensive Large object Heap allocations and monitor GC performance on one of our production web servers(.net 4.7.2 and ASP.NET - MVC 5.2.4), I used the "GC Collect Only", "GC Only", "ETW…
1
vote
1 answer

Debugging OutOfMemory exception with WinDbg and wpr. Why are these symbols shown as ?!? - jitted .net?

I've been trying to understand why we're getting a OOM under Citrix - Windows 10, although it's not happening on "Normal" machines. Our application has a mix of native C++, C# and web browser plugins. The container is .net. Details: Windows 10…
Marco
  • 984
  • 10
  • 18
1
vote
1 answer

How to see if a disk is full in WPA or PerfView

I am using WPA and PerfView to capture traces to diagnose why an IIS server hanged. We have reasons to believe that at the time one of the disk was completely full. Is there a way to see in these tools (WPA, PerfView) how full the disks are? We get…
buckley
  • 13,690
  • 3
  • 53
  • 61
1
vote
0 answers

TdhGetEventInformation return 1168 (NOT FOUND) - How PerfView can get the info?

I have a ETL file and I am trying to parse it with OpenTrace and get the information with TdhGetEventInformation when I get the callback EventRecordCallback. However, for the provider that I need, it always return 1168 (NOT FOUND). The only way it…
000Camus000
  • 199
  • 1
  • 1
  • 7
1
vote
0 answers

How to implement continuous logging with C# EventSource and ETW?

We implement structured logging with System.Diagnostics.Tracing.EventSource, and use the inline provider manifests when collecting traces to avoid the installation headaches with EventRegister and wevtutil. We have designed our EventSources to log…
abarger
  • 599
  • 7
  • 21
1
vote
1 answer

How to know if I have to do memory profiling too?

I currently do CPU sampling of an ASP.NET Core application where I send huge number of requests(> 500K) to it. I see that the peak working set of the application is around ~300 MB which in my opinion is not huge considering the number of requests…
aspnetuser
  • 121
  • 7