Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8286

Jolokia with Prometheus fails with Invalid option '9779:/opt/prometheus/prometheus-config.yml'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • fuse-7.0
    • fuse-7.0
    • FIS-Fabric8
    • None
    • % %
    • Fuse 7.0 Sprint 22

      Error:

      Starting the Java application using /opt/run-java/run-java.sh ...
      exec java -javaagent:/opt/jolokia/jolokia.jar=config=/opt/jolokia/etc/jolokia.properties -javaagent:/opt/prometheus/jmx_prometheus_javaagent.jar=9779:/opt/prometheus/prometheus-config.yml -XX:ParallelGCThreads=1 -XX:ConcGCThreads=1 -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 -cp . -jar /deployments/camel-core.jar
      Picked up JAVA_TOOL_OPTIONS: -Duser.home=/home/jboss -Duser.name=jboss
      Exception in thread "main" java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
      	at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
      Caused by: java.lang.IllegalArgumentException: jolokia: Invalid option '9779:/opt/prometheus/prometheus-config.yml'
      	at org.jolokia.jvmagent.JvmAgentConfig.split(JvmAgentConfig.java:112)
      	at org.jolokia.jvmagent.JvmAgentConfig.<init>(JvmAgentConfig.java:46)
      	at org.jolokia.jvmagent.JvmAgent.premain(JvmAgent.java:72)
      	... 6 more
      FATAL ERROR in native method: processing of -javaagent failed
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      #  SIGSEGV (0xb) at pc=0x00007feb6e04ca37, pid=1, tid=0x00007feb6ee34700
      #
      # JRE version: OpenJDK Runtime Environment (8.0_141-b16) (build 1.8.0_141-b16)
      # Java VM: OpenJDK 64-Bit Server VM (25.141-b16 mixed mode linux-amd64 compressed oops)
      # Problematic frame:
      # C  [libc.so.6+0x36a37]  abort+0x297
      #
      # Core dump written. Default location: /deployments/core or core.1
      #
      # An error report file with more information is saved as:
      # /deployments/hs_err_pid1.log
      [thread 140648676902656 also had an error]
      #
      # If you would like to submit a bug report, please visit:
      #   http://bugreport.java.com/bugreport/crash.jsp
      #
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      
      [error occurred during error reporting , id 0xb]
      
      [Too many errors, abort]
      

              Unassigned Unassigned
              llowinge@redhat.com Lukas Lowinger
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: