One of the good tools to use for performance monitoring is “Performance Counter”. This works well out of the box with Episerver CMS. Setting it up is quite simple, you need to change web.config and add “enablePerformanceCounters” to “episerver->applicationSettings” :

<episerver>
<applicationSettings enablePerformanceCounters=”True”  />

Remember to remove this on production. In the Episerver.dll 10.0.1.0 which I’m using there is a bug which does not create proper category so if you want you can manually create the category:

            CounterCreationDataCollection counterData = new CounterCreationDataCollection();
            CounterCreationData[] CounterData = new CounterCreationData[6] { new CounterCreationData("Data Factory Reads/Sec", "The number of page objects delivered from the Data Factory API per second", PerformanceCounterType.RateOfCountsPerSecond32), new CounterCreationData("Data Factory Listings/Sec", "The number of EPiServer page listnings delivered from the Data Factory API per second", PerformanceCounterType.RateOfCountsPerSecond32), new CounterCreationData("Data Factory Cache Hit Ratio", "The cache hit ratio for Data Factory API reads and listnings. 100% is normal.", PerformanceCounterType.RawFraction), new CounterCreationData("Data Factory Cache Hit Ratio Total", "Internal counter that only is the base counter.", PerformanceCounterType.RawBase), new CounterCreationData("Authentication Requests/Sec", "The number of user authentications per second.", PerformanceCounterType.RateOfCountsPerSecond32), new CounterCreationData("Database Connections/Sec", "The number of database connections that EPiServer opens in the Data Access Layer.", PerformanceCounterType.RateOfCountsPerSecond32) };

            counterData.AddRange(CounterData);
            System.Diagnostics.PerformanceCounterCategory.Create("EPiServer CMS 7", "EPiServer Performance Counters", PerformanceCounterCategoryType.MultiInstance, counterData);

I put this in “StartPageController” and this is one-off and you need to remove it. After the code is being run you need to run “Performance Monitor”:

1

 

And then select “Performance Monitor” from the left-hand nav, then click on “Green Plus”:

2

And select “EPiServer CMS 7” from the top list and select “_total” from the bottom list and click on “Add” and press “Ok” button. And now you can see performance counter:

3