Changes for page Monitoring

Last modified by Thomas Mortagne on 2024/04/10

From version 13.3
edited by Vincent Massol
on 2011/11/28
Change comment: Smaller image....
To version 14.1
edited by Vincent Massol
on 2012/01/10
Change comment: Add infinispan doc

Summary

Details

Page properties
Content
... ... @@ -4,7 +4,7 @@
4 4  
5 5  There are various solutions you can use to monitor a running XWiki instance:
6 6  * Install and configure [[JavaMelody>>http://code.google.com/p/javamelody/]]
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 startupscript.
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
10 10  ** Monitor the JBossCache caches XWiki is using to cache Document data, Users & Groups data and more
... ... @@ -57,8 +57,24 @@
57 57  
58 58  == XWiki Caches Monitoring ==
59 59  
60 -XWiki uses JBoss Cache and since JBoss Cache natively supports JMX we benefit from this feature directly (JBoss documentation available [[here>>http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Web_Platform/5/html/JBoss_Cache_User_Guide/jmx_reference.html]]).
60 +XWiki can use different cache implementations. The JBoss Cache and JBoss Infinispan implementations have nice JMX features available as shown below.
61 61  
62 +Since XWiki 3.3 the default implementation is JBoss Infinispan.
63 +
64 +=== With JBoss Infinispan ===
65 +
66 +Since JBoss Infinispan natively supports JMX we benefit from this feature directly (JBoss documentation available [[here>>https://docs.jboss.org/author/display/ISPN/Management+Tooling]]).
67 +
68 +{{info}}By default the JMX support is not enabled. To enable it, edit ##WEB-INF/cache/infinispan/config.xml## and uncomment the two places where the "jmx" string is mentioned{{/info}}
69 +
70 +Example showing the cache list and some statistic for a given cache:
71 +
72 +image:infinispancache.png
73 +
74 +=== With JBoss Cache ===
75 +
76 +Since JBoss Cache natively supports JMX we benefit from this feature directly (JBoss documentation available [[here>>http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Web_Platform/5/html/JBoss_Cache_User_Guide/jmx_reference.html]]).
77 +
62 62  Example showing all JBoss Caches in memory in a running instance, showing all the elements in the cache (example on the document cache):
63 63  
64 64  image:jbosscache.png

Get Connected