我对jboss应用程序非常陌生,并尝试在windows上将prometheus jmx_exporter与jboss EAP 7.0.0集成。我正在尝试以域配置模式运行。以下是我在host.xml 中所做的更改
<jvm-options>
<option value="-Xbootclasspath/p:C:jboss-eap-7.0modulessystemlayersbaseorgjbosslogmanagermainjboss-logmanager-2.0.3.Final-redhat-1.jar"/>
<option value="-Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager"/>
<option value="-Djava.util.logging.manager=org.jboss.logmanager.LogManager"/>
<option value="-javaagent:C:jboss-eap-7.0binjmx_prometheus_javaagent-0.14.0.jar=58080:C:jboss-eap-7.0domainconfigurationconfig.yml"/>
</jvm-options>
获取以下的日志
[Server:server-one] WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
[Server:server-one] Exception in thread "main" java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
[Server:server-one] at org.jboss.logmanager.Logger.getLogger(Logger.java:57)
[Server:server-one] at org.jboss.as.server.DomainServerMain.main(DomainServerMain.java:92)
[Server:server-one] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[Server:server-one] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[Server:server-one] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[Server:server-one] at java.lang.reflect.Method.invoke(Method.java:498)
[Server:server-one] at org.jboss.modules.Module.run(Module.java:329)
[Server:server-one] at org.jboss.modules.Main.main(Main.java:507)
错误告诉您需要更新系统属性,例如在domain.xml中:
</extensions>
<system-properties>
<property name="java.util.logging.manager" value="org.jboss.logmanager.LogManager"/>
<property name="jboss.modules.system.pkgs" value="org.jboss.byteman,org.jboss.logmanager"/>
</system-properties>
<management>