发布于 2017-03-11 23:19:31 | 147 次阅读 | 评论: 0 | 来源: 网友投递
JavaMelody 系统监控工具
JavaMelody是一个系统监控工具 , 能够监测Java或Java EE应用程序服务器,并以图表的方式显示:Java内存和Java CPU使用情况,用户Session数量,JDBC连接数,和http请求、sql请求、jsp页面与业务接口方法(EJB3、Spring、 Guice)的执行数量,平均执行时间,错误百分比等。图表可以按天,周,月,年或自定义时间段查看。
JavaMelody v1.64.0 发布了,主要更新如下:
fix compatibility with Java 9. (PR #609 for issue #556 , thanks to James Pether Sörling)
In the Jenkins plugin, fix JENKINS-42112 : HTTP user session is reported as "anonymous" when using anything but AbstractPasswordBasedSecurityRealm (like Google login plugin or Cloudbees Operations Center).
In the Liferay plugin, fix compatibility with Liferay 7 (649fd35 and PR #7 with help from Inácio Nery from Liferay, fixed in 1.63.1)
improved: make easier the selection of the stack-trace text in the tooltips of the threads list (736cf0e)
added: javamelody sprint boot starter to simplify configuration of javamelody when using Spring Boot (PR #615 thanks to Georg Wittberger).
added: pdf report in the detail page of a request. (28e2474)
added: links to view java source from errors and threads stack-traces. (e5263bf)
Source from the JDK and source from artifacts built by Maven and available in Maven central can be viewed. So if your server uses a JRE and not a JDK, source from the JDK are not available. And note that many artifacts available in Maven central were not built by Maven, for example Tomcat libraries, so sources of those artifacts can't be located.
The javamelody parameter maven-repositories
can be used like the other javamelody parameters, to search for sources of Maven artifacts in other repositories than your local repository and than Maven central, and such as your own company repository containing the sources of your own app. The parameter value must be a comma separated list of Maven repositories URLs (~/.m2/repository,https://repo1.maven.org/maven2/
by default and recommended as last repositories). And if your repository needs basic authentication, you can insert "username:password" in the URL. For example in the web.xml :
<filter> <filter-name>javamelody</filter-name> <filter-class>net.bull.javamelody.MonitoringFilter</filter-class> <init-param> <param-name>maven-repositories</param-name> <param-value>https://myusername:secret@repo.mycorp.com,~/.m2/repository,https://repo1.maven.org/maven2/</param-value> </init-param> </filter> ...
added: new javamelody parameter application-name
, to override the default one based on the context path of the webapp and on the hostname. Using this parameter will change the default storage directory path. (PR #604 thanks to kai-modrzok)
added: if the javamelody parameter jmx-expose-enabled
is set to true, then javamelody mbeans are available with aggregated statistics data about requests. See doc. (PR #591 thanks to Alexey Pushkin)
doc added: Summary of javamelody parameters to extend the user's guide
removed: specific support of Jonas application server for datasource monitoring (dab4131)
removed: zip file of sources is not published anymore in releases, since source code is easy to browse or to download for each release.
下载地址: