Changes for page Monitoring

Last modified by Antoine Mottier on 2023/07/17

<
From version < 22.1 >
edited by Vincent Massol
on 2014/11/03
To version < 24.2 >
edited by Maxime Sinclair
on 2015/08/31
>
Change comment: JavaMelody links updated from Google Code to GitHub

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.MaximeSinclair
Content
... ... @@ -3,7 +3,7 @@
3 3  {{/box}}
4 4  
5 5  There are various solutions you can use to monitor a running XWiki instance:
6 -* Install and configure [[JavaMelody>>http://code.google.com/p/javamelody/]]
6 +* Install and configure [[JavaMelody>>https://github.com/javamelody/javamelody/wiki]]
7 7  * [[Use a Profiler>>http://dev.xwiki.org/xwiki/bin/view/Community/Profiling]]. This has the advantage of providing advanced information, but has the drawback of being resource intensive and thus slowing the XWiki instance. It also requires a special startup script.
8 8  * Starting with XWiki Enterprise 2.4M2 we're now using the [[JMX Technology>>http://en.wikipedia.org/wiki/Java_Management_Extensions]] to provide runtime monitoring of XWiki instances. The following features are currently available:
9 9  ** Monitor the Velocity macro caches
... ... @@ -19,8 +19,8 @@
19 19  
20 20  [[[[image:http://javamelody.googlecode.com/svn/trunk/javamelody-core/src/site/resources/screenshots/graphs.png||width="50%"]]>>http://code.google.com/p/javamelody/wiki/Screenshots||style="width:50%"]]
21 21  
22 -To install JavaMelody for XWiki follow these steps (see the [[JavaMelody user guide>>http://code.google.com/p/javamelody/wiki/UserGuide]] for more details):
23 -* Download the latest [[javamelody.jar>>http://code.google.com/p/javamelody/downloads/list]] and [[jrobin-x.jar>>http://javamelody.googlecode.com/files/jrobin-1.5.9.jar]] and put them in the ##WEB-INF/lib## folder
22 +To install JavaMelody for XWiki follow these steps (see the [[JavaMelody user guide>>https://github.com/javamelody/javamelody/wiki/UserGuide]] for more details):
23 +* Download the latest [[javamelody.jar>>https://github.com/javamelody/javamelody/releases]] and [[jrobin-x.jar>>https://github.com/javamelody/javamelody/releases/download/javamelody-core-1.49.0/jrobin-1.5.9.jar]] and put them in the ##WEB-INF/lib## folder
24 24  * Edit ##web.xml## and add the following information:(((
25 25  {{code}}
26 26  ...
... ... @@ -55,10 +55,12 @@
55 55  
56 56  Since JMX is a standard you can use [[any JMX-compatible monitoring console>>http://stackoverflow.com/questions/1744900/what-is-the-best-or-most-commonly-used-jmx-console-client]] (most application servers provide a web-based JMX console). There's also a console called [[JConsole>>http://docs.oracle.com/javase/7/docs/technotes/guides/management/jconsole.html]] which is bundled by default in the Java Runtime you're using. To start it, simply execute the ##jconsole## executable.
57 57  
58 -Note that starting with XWiki 6.3, if you're using the Standalone Distribution (which bundles Jetty) you'll need to start XWiki with ##start_xwiki.sh -j## (or ##start_xwiki.sh --jmx##) to enable connecting to the Jetty JMX server from outside (for example with ##jconsole##). This parameter has 2 effects:
59 -* It sets ##-Dcom.sun.management.jmxremote##
60 -* It adds some specific Jetty MBeans to monitor/manage the Jetty Server itself
58 +{{info}}
59 +Note that starting with XWiki 6.3, if you're using the Standalone Distribution (which bundles Jetty) you can now use ##start_xwiki.sh -j## (or ##start_xwiki.sh ~-~-jmx##) to monitor/manage the Jetty instance itself (it adds Jetty-specific MBeans):
61 61  
61 +{{image reference="jettymbeans.png"/}}
62 +{{/info}}
63 +
62 62  == XWiki Caches Monitoring ==
63 63  
64 64  XWiki can use different cache implementations. The JBoss Cache and JBoss Infinispan implementations have nice JMX features available as shown below.
jettymbeans.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.VincentMassol
Size
... ... @@ -1,0 +1,1 @@
1 +166.8 KB
Content

Get Connected