<div dir="ltr"><div>Once a managed server is launched and registers with the HC the 'server' resources are just proxies to the remote process. To access the attributes of those resources you'd have to proxy to the remote process, which happens transparently with WildFly management but which we don't support for JMX. Probably we shouldn't expose the mbean at all, although that may be easier said than done.<br></div><div><br></div><div>When the server isn't launched yet there's a kind of non-proxy placeholder resource for it on the HC that is the registration point for ops like start (which is why a resource even exists.) It exposes a few minimal attributes, which seemed like a minor nice thing to do but I can see how it can be confusing:</div><div><br></div><div>
<p class="gmail-p1">[domain@localhost:9990 server=server-three] ls -l</p><p class="gmail-p1">ATTRIBUTE VALUE TYPE </p><p class="gmail-p1">launch-type DOMAIN STRING </p><p class="gmail-p1">runtime-configuration-state stopped STRING </p><p class="gmail-p1">server-state STOPPED STRING </p></div><div><br></div><div><div>It seems a bunch of us have been getting wildfly-dev mails routed to our spam folders, so apologies if we seem to be ignoring things.</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 20, 2017 at 10:41 AM, John Mazzitelli <span dir="ltr"><<a href="mailto:mazz@redhat.com" target="_blank">mazz@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm seeing strange JMX attributes when looking at domain mode and its MBeans.<br>
<br>
In short, if a host wildfly server is up and running, there is no status in the "server" MBean but there is status in the "server-config" MBean. When the server is down, there is serverStatus in the "server" MBean as well as in the "server-config" MBean.<br>
<br>
Running a stock, out-of-box WildFly 11.0.0.Final using "domain.sh":<br>
<br>
1. SERVER-ONE:<br>
<br>
1a. MBean "jboss.as:host=master,server-<wbr>config=server-one" has attribute "status" of value "STARTED".<br>
1b. MBean "jboss.as:host=master,server=<wbr>server-one" has no attributes at all - jconsole shows me no attributes for this MBean<br>
<br>
2. SERVER-TWO:<br>
<br>
2a. MBean "jboss.as:host=master,server-<wbr>config=server-two" has attribute "status" of value "STARTED".<br>
2b. MBean "jboss.as:host=master,server=<wbr>server-two" has no attributes at all - jconsole shows me no attributes for this MBean<br>
<br>
3. SERVER-THREE:<br>
<br>
3a. MBean "jboss.as:host=master,server-<wbr>config=server-three" has attribute "status" of value "DISABLED".<br>
3b. MBean "jboss.as:host=master,server=<wbr>server-three" interestingly has attribute "serverState" of value "STOPPED"<br>
<br>
This doesn't make sense to me. I believe the "server" MBean for a started server should have a serverState of values something like "running" or "restart-required" or "reload-required". But instead, they don't have any attributes at all.<br>
<br>
Thoughts?<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Brian Stansberry<div>Manager, Senior Principal Software Engineer</div><div>Red Hat</div></div></div>
</div>