Changes for page JMX Access

Last modified by Michael Hamann on 2023/08/02 11:19

<
From version < 23.1 >
edited by Denis Gervalle
on 2021/03/18 11:28
To version < 24.1
edited by Michael Hamann
on 2023/08/02 11:19
Change comment: Fix the List cache statistics code by ignoring errors

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.dgervalle
1 +xwiki:XWiki.MichaelHamann
EXOExtensionCode.ExtensionClass[0]
compatibility
... ... @@ -1,0 +1,1 @@
1 +XE >= 3.0
ExtensionCode.ExtensionClass[0]
Show installed count
... ... @@ -1,0 +1,1 @@
1 +Yes
Description
... ... @@ -132,7 +132,7 @@
132 132  
133 133  Results in:
134 134  
135 -{{image reference=jmx.png/}}
135 +{{image reference="jmx.png"/}}
136 136  
137 137  = Example 4: Set Log Level for any XWiki category =
138 138  
... ... @@ -155,6 +155,7 @@
155 155  {{/code}}
156 156  
157 157  = Example 5: Getting a full thread-dump =
158 +
158 158  The below code delivers a thread-dump similar to when the QUIT signal is sent on Unix boxes.
159 159  
160 160  {{code}}
... ... @@ -203,7 +203,7 @@
203 203  def names = server.queryNames(query, null)
204 204  names.each {
205 205   println "== Cache: ${it.getKeyProperty('name')} =="
206 - def mbean = new GroovyMBean(server, it)
207 + def mbean = new GroovyMBean(server, it, true)
207 207   for(attr in mbean.listAttributeNames()) {
208 208   println "* ${attr}: ${mbean.getProperty(attr)}"
209 209   }

Get Connected