Changes for page Monitoring

Last modified by Thomas Mortagne on 2024/04/10

From version 24.3
edited by Vincent Massol
on 2016/11/03
Change comment: There is no comment for this version
To version 23.1
edited by Vincent Massol
on 2014/11/04
Change comment: Upload new image jettymbeans.png

Summary

Details

Page properties
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>>https://github.com/javamelody/javamelody/wiki]]
6 +* Install and configure [[JavaMelody>>http://code.google.com/p/javamelody/]]
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
... ... @@ -17,10 +17,10 @@
17 17  
18 18  = JavaMelody =
19 19  
20 -[[[[image:https://raw.githubusercontent.com/wiki/javamelody/javamelody/resources/screenshots/graphs.png||width="50%"]]>>https://github.com/javamelody/javamelody/wiki/Screenshots#charts||style="width:50%"]]
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>>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
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
24 24  * Edit ##web.xml## and add the following information:(((
25 25  {{code}}
26 26  ...
... ... @@ -55,12 +55,8 @@
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 -{{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):
58 +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).
60 60  
61 -{{image reference="jettymbeans.png"/}}
62 -{{/info}}
63 -
64 64  == XWiki Caches Monitoring ==
65 65  
66 66  XWiki can use different cache implementations. The JBoss Cache and JBoss Infinispan implementations have nice JMX features available as shown below.

Get Connected