Hi, We too are facing the same issue. Can you please elaborate on running the HTTP version please?
Regards, Nageswara Rao On Friday, 15 May 2020 17:25:40 UTC+5:30, Seckin Pulatkan wrote: > > Hi Robert, > > Did you find a solution? We ended up using http server version : > > exec java -Xmx100m -XX:MaxDirectMemorySize=200m -cp > "/opt/jboss/jmx_exporter/jmx_prometheus_httpserver.jar:/opt/jboss/jmx_exporter/wildfly-client-all.jar" > > io.prometheus.jmx.WebServer 9988 /opt/jboss/jmx_exporter/jmx_agent_config.yml > & > > Thanks, > > Seckin > > On Sunday, December 29, 2019 at 9:02:28 PM UTC+3, Robert Strauch wrote: >> >> Currently we're running Wildfly (version 17.0.1.Final) in a self-created >> Docker image based on Java 8. For monitoring our application via Prometheus >> we installed jmx_exporter and configured it as shown below. >> >> >> Now we'd like to switch to the official Docker image j >> boss/wildfly:17.0.1.Final which however uses Java 11. When using our >> current configuration the JVM cannot be created because -Xbootclasspath/p >> is not supported anymore. Just replacing -Xbootclasspath/p with - >> Xbootclasspath/a does not work and gives the following error message >> upon startup: >> >> >> Could not load Logmanager "org.jboss.logmanager.LogManager" >> java.lang.ClassNotFoundException: org.jboss.logmanager.LogManager >> at >> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) >> at >> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) >> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) >> at java.logging/java.util.logging.LogManager$1.run(LogManager.java:239) >> at java.logging/java.util.logging.LogManager$1.run(LogManager.java:223) >> at java.base/java.security.AccessController.doPrivileged(Native Method) >> at >> java.logging/java.util.logging.LogManager.<clinit>(LogManager.java:223) >> at java.logging/java.util.logging.Logger.demandLogger(Logger.java:648) >> at java.logging/java.util.logging.Logger.getLogger(Logger.java:717) >> at java.logging/java.util.logging.Logger.getLogger(Logger.java:701) >> at >> io.prometheus.jmx.shaded.io.prometheus.jmx.JmxCollector.<clinit>(JmxCollector.java:38) >> at >> io.prometheus.jmx.shaded.io.prometheus.jmx.JavaAgent.premain(JavaAgent.java:29) >> at >> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native >> Method) >> at >> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >> at >> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >> at java.base/java.lang.reflect.Method.invoke(Method.java:566) >> at >> java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513) >> at >> java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525) >> WARNING: Failed to load the specified log manager class >> org.jboss.logmanager.LogManager >> >> >> Configuration >> >> # Prometheus (JMX Exporter) >> # Versions must match those provided by application server. >> # >> https://lazarbulic.com/blog/2018/05/25/prometheus-jmx_exporter-for-jboss-wildfly/ >> # We need to add these JARs explicitly to avoid a NoClassDefFoundError. >> # >> https://stackoverflow.com/questions/55874743/noclassdeffounderror-when-using-jmx-exporter-with-wildfly-15 >> ENV PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS >> -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/wildfly/common/main/wildfly-common-$WILDFLY_COMMON_VERSION.jar" >> ENV PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS >> -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-$JBOSS_LOG_MANAGER_VERSION.jar" >> ENV PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS >> -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-$LOG4J_JBOSS_LOGMANAGER_VERSION.jar" >> ENV PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS >> -Xbootclasspath/p:$JBOSS_HOME/modules/system/layers/base/org/slf4j/impl/main/slf4j-jboss-logmanager-$SLF4J_JBOSS_LOGMANAGER_VERSION.jar" >> ENV PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS >> -Djava.util.logging.manager=org.jboss.logmanager.LogManager" >> ENV PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS >> -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager" >> ENV PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS >> -Dcom.sun.management.jmxremote.rmi.port=$JBOSS_MANAGEMENT_PORT >> -Dcom.sun.management.jmxremote=true >> -Dcom.sun.management.jmxremote.port=$JBOSS_MANAGEMENT_PORT >> -Dcom.sun.management.jmxremote.ssl=false >> -Dcom.sun.management.jmxremote.authenticate=false >> -Dcom.sun.management.jmxremote.local.only=false >> -Djava.rmi.server.hostname=localhost" >> ENV PREPEND_JAVA_OPTS="$PREPEND_JAVA_OPTS >> -javaagent:$JBOSS_HOME/prometheus/jmx-prometheus.jar=$PROMETHEUS_PORT:$JBOSS_HOME/prometheus/config.yaml" >> >> -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6e59624d-078a-44f7-a354-f9c37c32482ao%40googlegroups.com.

