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.
Installation
Installation is done in just a few minutes. Download the distribution from https://code.google.com/p/javamelody/downloads/list and extract javamelody.jar and jrobin-x.jar, and place them in the WEB_INF/lib directory of the JRS application. Then add the following lines to WEB_INF/web.xml.
<!-- Begin JavaMelody --> <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> <!-- End JavaMelody -->
Update as of June 2019 (current JavaMelody version is 1.77): Put the configuration settings above right after the "<!--#### CSRFGuard Configuration END ####-->" line, just before the first filter definition in web.xml.
Another option is to add these somewhere at the top, for example 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.
Restart the server and go to http://:/jasperserver-pro/monitoring to begin monitoring the server.
Here is the user guide: https://code.google.com/p/javamelody/wiki/UserGuide
Screenshots
(click on images for larger versions)
More screenshots here: https://code.google.com/p/javamelody/wiki/Screenshots.
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