博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ehcache在Jetty容器中的JMX监控设置
阅读量:7079 次
发布时间:2019-06-28

本文共 348 字,大约阅读时间需要 1 分钟。

在web.xml中加入listerner来将ehcache注册到MBean,Listener代码内容如下:

CacheManager manager = CacheManager.getInstance();        MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();        ManagementService.registerMBeans(manager, mBeanServer, false, false, false, true);

 应用中的ehcache.xml配置如下,主要需要加入statistics属性:

 配好后启动Jetty,通过Jconsole连接Jetty进程。

 

转载地址:http://ocjml.baihongyu.com/

你可能感兴趣的文章
Verilog HDL程序设计——基本要素
查看>>
ubuntu16.04 登录密码破解方法
查看>>
匈牙利算法解决二分图匹配
查看>>
Android 源码下载,国内 镜像
查看>>
C# 理解lock
查看>>
H5添加禁止缩放功能
查看>>
golang初始化结构体数组
查看>>
【github&&git】7、gitignore 修改不起作用
查看>>
Redis防止重複請求鎖功能
查看>>
【TP5.0】引入public/static目录下的静态资源
查看>>
xml文件中配置JDBC源遇到问题 : The reference to entity "characterEncoding" must end with the ';' delimiter...
查看>>
编译php ./configure命令enable和with有什么区别
查看>>
有多少人在使用ObjectDataSource开发Web程序?
查看>>
iOS -Swift 3.0 -Array(数组与可变数组相关属性及用法)
查看>>
探索推荐引擎内部的秘密,第 3 部分: 深入推荐引擎相关算法 - 聚类
查看>>
MySQL各版本的性能特性(从4.0版本开始)
查看>>
linux包之bash之内置命令ulimit
查看>>
HBase与Zookeeper数据结构查询
查看>>
stdint.h 文件 int8_t uint8_t int16_t uint16_t
查看>>
Linux下hosts、host.conf、resolv.conf
查看>>