The first step is to install enyimmemcached into the Windows performance counters.
Copy Enyim.Caching.dll to a folder
Enter the folder where the. NET framework is located on the command line--c:\windows\microsoft.net\framework64\v4.0.30319
Install with the InstallUtil command, for example: InstallUtil D:\lib\Enyim.Caching.dll
After the installation is successful, you can see it in the Performance Monitor.
Although it appears in the counters list, the following instances of selected object is blank, and the counter cannot be added to Performance Monitor.
In the configuration process, in this place card for a long time ...
It's a total quirk of being stuck here. enyimmemcached Help Document: Configure the performance Monitor.
You also need to configure in your application to add the <performanceMonitor/> configuration to the web.config:
<enyim.com>
<memcached protocol= "Binary" >
<servers>
<add address= "memcached" port= "11211"/>
</servers> <socketpool minpoolsize= "maxpoolsize=" 3000 "connectiontimeout="
00:00:01 "deadtimeout=" 00:00:01 "/>
<performancemonitor factory=" Enyim.Caching.Memcached.DefaultPerformanceMonitorFactory, enyim.caching "name=" www.cnblogs.com "/>
</ memcached>
<log factory= "Enyim.Caching.Log4NetFactory, Enyim.Caching.Log4NetAdapter"/>
</ Enyim.com>
Then visit the site and start the ASP.net program to see an instance of the performance counter in instances of selected object.