首先要將EnyimMemcached安裝至Windows Performance Counters中。
安裝成功后,就能在Performance Monitor中看到了。

雖然在counters的列表中出現(xiàn)了,但是下面的Instances of selected object中卻是空白,于是無法將計(jì)數(shù)器添加到Performance Monitor中。
在配置過程中,在這個(gè)地方卡了很長時(shí)間。。。
卡在這里完全是怪自己竟然沒發(fā)現(xiàn)EnyimMemcached的幫助文檔:Configure the Performance Monitor。
原來還需要在應(yīng)用程序中進(jìn)行配置,要在web.config中添加<performanceMonitor/>的配置:
<enyim.com> <memcached PRotocol="Binary"> <servers> <add address="memcached" port="11211" /> </servers> <socketPool minPoolSize="50" maxPoolSize="3000" connectionTimeout="00:00:01" deadTimeout="00:00:01"/> <performanceMonitor factory="Enyim.Caching.Memcached.DefaultPerformanceMonitorFactory, Enyim.Caching" name="m.survivalescaperooms.com"/> </memcached> <log factory="Enyim.Caching.Log4NetFactory, Enyim.Caching.Log4NetAdapter" /></enyim.com>
然后訪問一下站點(diǎn),將asp.net程序啟動起來后,就能在Instances of selected object中看到性能計(jì)數(shù)器的實(shí)例了。

我們選擇一個(gè)指標(biāo)體驗(yàn)一下:

監(jiān)測結(jié)果如下:

新聞熱點(diǎn)
疑難解答
圖片精選