Introduction
There are many times when troubleshooting the JasperReports Server when we need to see what the memory is looking like, how much time is spent garbage collecting, what the thread utilization is, database query times, etc. JavaMelody is a light-weight monitoring tool that does all of this and much more. It can be used in production environments to monitor usage trends over time and help troubleshoot issues where profilers cannot be used.
Download
As of April 2023 the current JavaMelody version is 1.92.0
Download the distribution from https://github.com/javamelody/javamelody/releases Get the javamelody-core-.jar file
The jrobin-x.jar file is now separate and can be found at: https://repo1.maven.org/maven2/org/jrobin/jrobin/1.5.9/jrobin-1.5.9.jar
Once you have downloaded both the javamelody-core-.jar and jrobin-.jar filez, place them in the WEB_INF/lib directory of the JRS application. Be sure to set the correct ownership and access permissions.
Installation
Installation is done in just a few minutes. Add the following lines to WEB_INF/web.xml.
<!-- Begin JavaMelody --> <filter> <filter-name>javamelody</filter-name> <filter-class>net.bull.javamelody.MonitoringFilter</filter-class> <async-supported>true</async-supported> </filter> <filter-mapping> <filter-name>monitoring</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <listener> <listener-class>net.bull.javamelody.SessionListener</listener-class> </listener> <!-- End JavaMelody -->
Put the configuration settings at the top, right after the first <context-param> definition.
If you add the JavaMelody configuration at the bottom of the file, uploading themes or any files to Repository will fail with JSON parse error.
Since you are modifying the web.xml file you must restart the server.
Once the server restarts, you can check the installation by going to http://:/jasperserver-pro/monitoring to begin monitoring the server.
Here is the user guide: https://github.com/javamelody/javamelody/wiki/UserGuide
Screenshots
(click on images for larger versions)
More screenshots here: https://github.com/javamelody/javamelody/wiki/Screenshots#charts
This is an update to the original wiki page created by rmiller in 2013
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now