blob: bd0e9c1317e11d517a63e0ecabe90faeb9877c12 [file] [log] [blame]
<div class="docbook"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">9.12. Broker Instrumentation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="Java-Broker-Runtime-Memory.html">Prev</a> </td><th width="60%" align="center">Chapter 9. Runtime</th><td width="20%" align="right"> <a accesskey="n" href="Java-Broker-High-Availability.html">Next</a></td></tr></table><hr /></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="Java-Broker-Runtime-Instrumentation"></a>9.12. Broker Instrumentation</h2></div></div></div><p>The Apache Qpid Broker-J heavy relies on java reflection mechanism. A static instrumentation agent
can be used to replace <code class="literal">method.invoke()</code> reflection calls with static final
<code class="literal">MethodHandle.invokeExact()</code>.</p><p>To use instrumentation agent following JVM argument should be added to the broker start parameters:</p><pre class="screen">-javaagent:$BROKER_DIR/lib/qpid-broker-instrumentation-${broker-version}.jar</pre><p>List of classes to instrument can be supplied as a comma separated list:</p><pre class="screen">-javaagent:$BROKER_DIR/lib/qpid-broker-instrumentation-${broker-version}.jar=ConfiguredObjectMethodAttributeOrStatistic</pre><pre class="screen">-javaagent:$BROKER_DIR/lib/qpid-broker-instrumentation-${broker-version}.jar=ConfiguredObjectMethodAttributeOrStatistic,ConfiguredObjectMethodOperation</pre><pre class="screen">-javaagent:$BROKER_DIR/lib/qpid-broker-instrumentation-${broker-version}.jar=ConfiguredObjectMethodAttributeOrStatistic,ConfiguredObjectMethodOperation,AutomatedField</pre><p>When no arguments supplied, all classes will be instrumented.</p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="Java-Broker-Runtime-Memory.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="Java-Broker-Runtime.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="Java-Broker-High-Availability.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">9.11. Memory </td><td width="20%" align="center"><a accesskey="h" href="Apache-Qpid-Broker-J-Book.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 10. High Availability</td></tr></table></div></div>