JavaMelody 1.67.0 was released with a lot of new features,
including Real User Monitoring. The release is available
for download here:
https://github.com/javamelody/javamelody/releases
net/bull/javamelody/monitoring-spring.xml
in the Spring context or when using the Spring
boot starter, add a link to display "Spring
beans", in System informations next to the
"JNDI tree" link (5cd7c5a).net/bull/javamelody/monitoring-spring.xml
in the Spring context or when using the Spring
boot starter, if RestTemplate is used and if it is
defined as Spring bean (for example, <bean
id="restTemplate"
class="org.springframework.web.client.RestTemplate"
/>), then the REST http calls from the
webapp with this RestTemplate are monitored and response
times are displayed in the Spring statistics of the
monitoring report (b672ddb).application-version is
set, the version of the webapp is displayed at the top
of the report and a drop-down list of versions next to
"Customized" period allows to display the report for the
period of each version deployed, to compare between them
for example. (d61e65f,
based on an idea by dhartford).@net.bull.javamelody.Monitored
annotation on beans classes or methods to monitor (3f60bff).</body>
end tag, which sends data back to the monitoring in your
server. Then in the detailed monitoring report of http
requests for html pages, times and percentages are
displayed for Network, Server execution, DOM processing
and Page rendering, to compare which ones contribute to
a good or bad end user experience. The Real User
Monitoring does not add a noticeable overhead on the
server, but the javascript adds a simple http(s) call
for each html page, which may add a small overhead on
the client browser.rum-enabled
in web.xml, in context or in system properties like the
other javamelody
parameters. For example in your WEB-INF/web.xml
file:<filter> <filter-name>javamelody</filter-name> <filter-class>net.bull.javamelody.MonitoringFilter</filter-class> <init-param> <param-name>rum-enabled</param-name> <param-value>true</param-value> </init-param> </filter> ...
The Jenkins plugin, the JIRA, Confluence and Bamboo plugin, the Liferay plugin, the Alfresco plugin, the Sonar plugin and the Grails plugin were also released.<property name="hibernate.connection.driver_class">net.bull.javamelody.JdbcDriver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/myschema?driver=com.mysql.jdbc.Driver</property>or
<property name="hibernate.connection.driver_class">net.bull.javamelody.JdbcDriver</property> <property name="hibernate.connection.driver">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/myschema</property>