下载Jar包javamelody-1.47.0.jar和jrobin-1.5.9.jar
http://code.google.com/p/javamelody/downloads/list
http://code.google.com/p/javamelody/downloads/list?can=1&q=jrobin&colspec=Filename+Summary+Uploaded+Size+DownloadCount
将两个包放在lib下,配制web.xml(添加一个filter和一个listener红色代码),代码如下:
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<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>
运行项目之后就可以监控了
比如你的项目地址:http://103.31.202.51:8080/DevManage
在地址栏输入:http://103.31.202.51:8080/DevManage/monitoring
即可打开监控页面