7 月 042016
 

下载地址:
https://github.com/javamelody/javamelody/releases
提取jar文件并放置
javamelody-1.60.0.zip

apache-tomcat-javamelody-monitoring-01javamelody.jar
jrobin-1.5.9.1.jar
webapps/appname/WEB-INF/lib

修改web.xml禁用或启用此服务,可通过注释或取消注释来停止此服务的访问,且加入注释停止服务时无需重启tomcat。

<!--
 <filter>
 <filter-name>monitoring</filter-name>
 <filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
 </filter>
 <filter-mapping>
 <filter-name>monitoring</filter-name>
 <url-pattern>/*</url-pattern>
 </filter-mapping>
 <listener>
 <listener-class>net.bull.javamelody.SessionListener</listener-class>
 </listener>
-->

自v1.53版本新增的基本http登录验证功能示例

<filter>
 <filter-name>javamelody</filter-name>
 <filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
 <init-param>
 <param-name>authorized-users</param-name>
 <param-value>user1:pwd1, user2:pwd2</param-value>
 </init-param>
</filter>

JavaMelody中文乱码处理(删除中文语言包)

apache-tomcat-javamelody-monitoring-02
完整配置示例

apache-tomcat-javamelody-monitoring-03

apache-tomcat-javamelody-monitoring-04

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据