I'm writting an ASP.NET MVC application and I'm seeing a seemly random performance from a one of my actions. My initial throught is that the garbage collection is kicking in and pausing the app for a little while, but I can't seem to find a button/switch that will prove or disprove my theory.
For none java people out there -verbose:gc
is a command line switch that you can pass to a java application that will make the JVM print out when a GC event happens and how long it takes.
I've attempted to use the vs2010 performance tool and JetBrains dotTrace both of which are a little bit like using a thermo nuclear weapon to crack a small nut.
The java command-line argument is an argument i.e. passed at the time of running the java program. The arguments passed from the console can be received in the java program and it can be used as an input. So, it provides a convenient way to check the behavior of the program for the different values.
In .NET 4.0 there is Event tracing for Windows (ETW) that provides you with the information you are looking for. Here is a one specific for GC.
FYI ETW is very fast and built into Kernel. With ETW you should be able to get information like this
And to get this information there is a tool from the BCL team which is called PerfMonitor
Here are the steps in using the tool to get the GC Information
I have also blogged the about the same
HTH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With