監控 ehcache緩存:
1,下載:
http://terracotta.org/downloads/open-source/destination?name=ehcache-monitor-kit-1.0.3-distribution.tar.gz&bucket=tcdistributions&file=ehcache-monitor-kit-1.0.3-distribution.tar.gz
2.解壓縮到目錄下,復制ehcache-monitor-kit-1.0.0\lib\ehcache-probe-1.0.0.jar包到application的 /lib目錄下
3.將以下配置copy的ehcache.xml文件的ehcache標簽中
<cacheManagerPeerListenerFactory
class="org.terracotta.ehcachedx.monitor.probe.ProbePeerListenerFactory"
properties="monitorAddress=localhost, monitorPort=9889" />
4.在\ehcache-monitor-kit-1.0.0\etc\ehcache-monitor.conf中可以配置監控的ip和端口號。
5.啟動被監控的web application和ehcache-monitor-kit-1.0.0\bin目錄下的startup.bat(在windows環境下)
6.在瀏覽器中輸入
http://localhost:9889/monitor/即可開始監控。