<div dir="ltr"><div><div><div>We have plans to add support for statistics to undertow subsystem.<br>but for now we don&#39;t have anything.<br><br></div>Plan is to support as much as web subsystem did.<br></div>Statistics will have a switch to be enabled/disabled.<br>
<br>--<br></div>tomaz<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 6, 2013 at 6:51 PM, Jeff Mesnil <span dir="ltr">&lt;<a href="mailto:jmesnil@redhat.com" target="_blank">jmesnil@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">&gt; 1) What statistical data does your subsystem capture (including the<br>
&gt; underlying libraries it integrates).<br>
&gt; 2) What configuration options do you support for enabling/disabling<br>
&gt; statistics gathering. What&#39;s the resource address and attribute name of<br>
&gt; the config option?<br>
<br>
<br>
</div>For the messaging subsystem, we can capture message counters for queues[1].<br>
<br>
Capturing the counters is controlled by the /subsystem=messaging/hornetq-server=* resources<br>
<br>
* message-counter-enabled attribute (default to false) controls whether the hornetq-server resource capture the counters<br>
* message-counter-sample-period attributecontrols the interval to capture the counters (default to 10s, only relevant if message-counter-enabled is true)<br>
* message-counter-max-day-history attributes controls how many days to keep the message counter history (default to 10 days, only relevant if message-counter-enabled is true)<br>
=&gt; if message-counter-enabled is true, message-counter-sample-period is short, and message-counter-max-day-history is big, the counters can eat up a significant chunk of memory.<br>
<br>
The hornetq-server resource has 2 operations to reset the counters and their histories:<br>
<br>
* reset-all-message-counter-histories<br>
* reset-all-message-counters<br>
<br>
The counters themselves can be fetched from the queue and jms-queue resources (children of the /subsystem=messaging/hornetq-server=* resource) with the operations:<br>
<br>
* list-message-counter-as-json<br>
* list-message-counter-as-html<br>
* list-message-counter-history-as-json<br>
* list-message-counter-history-as-html<br>
<div class="im"><br>
&gt; 3) Is the statistic gathering enabled by default?<br>
<br>
<br>
</div>By default, nothing is enabled, nothing is gathered and there should be no performance or memory impact.<br>
<br>
[1] <a href="http://docs.jboss.org/hornetq/2.4.0.beta1/docs/user-manual/html_single/index.html#management.message-counters" target="_blank">http://docs.jboss.org/hornetq/2.4.0.beta1/docs/user-manual/html_single/index.html#management.message-counters</a><br>

<span class="HOEnZb"><font color="#888888"><br>
--<br>
Jeff Mesnil<br>
JBoss, a division of Red Hat<br>
<a href="http://jmesnil.net/" target="_blank">http://jmesnil.net/</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
</div></div></blockquote></div><br></div>