简体   繁体   English

无法启用jboss jmx

[英]cannot enable jboss jmx

I have an infinispan 8.2 server running, which I need to enable the jmx for. 我有一个infinispan 8.2服务器正在运行,我需要为其启用jmx。

I followed the server guide and the final domain.xml file is : 我遵循了服务器指南,最终的domain.xml文件是:

   <subsystem xmlns="urn:jboss:domain:jmx:1.3">
        <remoting-connector use-management-endpoint="false"/>
        <expose-resolved-model/>
        <expose-expression-model/>
    </subsystem>
    <subsystem xmlns="urn:jboss:domain:naming:2.0">
        <remote-naming/>
    </subsystem>
    <subsystem xmlns="urn:jboss:domain:remoting:3.0">
        <!--<endpoint/>-->
        <!--<http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>-->
        <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
    </subsystem>
    <subsystem xmlns="urn:jboss:domain:security:1.2">
        <security-domains>
            <security-domain name="other" cache-type="default">
                <authentication>
                    <login-module code="Remoting" flag="optional">
                        <module-option name="password-stacking" value="useFirstPass"/>
                    </login-module>
                    <login-module code="RealmDirect" flag="required">
                        <module-option name="password-stacking" value="useFirstPass"/>
                    </login-module>
                </authentication>
            </security-domain>
            <security-domain name="jboss-web-policy" cache-type="default">
                <authorization>
                    <policy-module code="Delegating" flag="required"/>
                </authorization>
            </security-domain>
            <security-domain name="jboss-ejb-policy" cache-type="default">
                <authorization>
                    <policy-module code="Delegating" flag="required"/>
                </authorization>
            </security-domain>
            <security-domain name="jaspitest" cache-type="default">
                <authentication-jaspi>
                    <login-module-stack name="dummy">
                        <login-module code="Dummy" flag="optional"/>
                    </login-module-stack>
                    <auth-module code="Dummy"/>
                </authentication-jaspi>
            </security-domain>
        </security-domains>
    </subsystem>
    <subsystem xmlns="urn:jboss:domain:security-manager:1.0">
        <deployment-permissions>
            <maximum-set>
                <permission class="java.security.AllPermission"/>
            </maximum-set>
        </deployment-permissions>
    </subsystem>
    <subsystem xmlns="urn:jboss:domain:transactions:3.0">
        <core-environment>
            <process-id>
                <uuid/>
            </process-id>
        </core-environment>
        <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
    </subsystem>
</profile> </profiles>

I still cannot connect to the jmx port. 我仍然无法连接到jmx端口。

Bear in mind that the server is wrapping JMX through remoting (aka JSR 160) so that it uses manager security credentials. 请记住,服务器正在通过远程处理(也称为JSR 160)包装JMX,以便它使用管理器安全凭证。 So, you either connect locally through jvmstat (VisualVM can do this) or add the bin/client/jboss-client.jar to your client's classpath and use the following service URL to connect: service:jmx:http-remoting-jmx://host:9990 (replace http with https if you have enabled TLS on the management interface) 因此,您可以通过jvmstat在本地连接(VisualVM可以做到这一点),或者将bin / client / jboss-client.jar添加到客户端的类路径,然后使用以下服务URL进行连接:service:jmx:http-remoting-jmx:/ / host:9990(如果已在管理界面上启用TLS,请用https替换http)

Since you have this entry: 由于您具有此条目:

 <remoting-connector use-management-endpoint="false"/>

the port switches from the management-http port (9990 by default) to the http port (8080 by default), so your connection string needs to switch to: 该端口从management-http端口(默认为9990)切换到http端口(默认为8080),因此您的连接字符串需要切换为:

service:jmx:http-remoting-jmx://host:8080 服务:jmx:http-remoting-jmx://主机:8080

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM