Giter Club home page Giter Club logo

Comments (11)

bluebob avatar bluebob commented on May 26, 2024

Just checked that it wasn't the container by doing a source build (following the instructions given using gradlew) and get the same error message.

from jmx2graphite.

asafm avatar asafm commented on May 26, 2024

from jmx2graphite.

bluebob avatar bluebob commented on May 26, 2024

Unfortunately not a Java dev, but I had a go, output is
jmx2graphite.txt

from jmx2graphite.

asafm avatar asafm commented on May 26, 2024

@bluebob That was very helpful. I still have one missing piece of information. JMX2Graphite first runs an HTTP request to Jolokia to get the list of available metric beans. You can see he got it:

17/02/15 14:05:36 INFO jmx2graphite.MetricsPipeline: Found 790 metric beans. Time = 715ms, for 2017-02-15T14:05:30.000+0000

Next it run a POST request to Jolokia, in the body it writes all the metric beans he got before. The response body is supposed to be an Array of JSON object, one per metric. From some reason, the response body is a single JSON Object thus you see this exception:

Can not deserialize instance of java.util.ArrayList out of START_OBJECT token

I've pushed a commit to jmx2graphite and adds trace messages printing the request body and response body in TRACE log level.

Can you please do a git pull, build from source, set log level to TRACE, and paste back the result? Sorry for the inconvenience.

from jmx2graphite.

bluebob avatar bluebob commented on May 26, 2024

Sorry for delay, log file (a lot larger!) attached.
jmx2graphite112.txt

from jmx2graphite.

asafm avatar asafm commented on May 26, 2024

Weird. The response from Jolokia even though the status code is 200. I can get around that, but still Jolokia fails. What version of Jolokia are you using ?

from jmx2graphite.

bluebob avatar bluebob commented on May 26, 2024

Jar running claims to be "jolokia-jvm-1.3.5-agent". Host is RHEL7.2

from jmx2graphite.

asafm avatar asafm commented on May 26, 2024

@bluebob I managed to track down the bug. It's in Jolokia JVM Agent. I've opened a bug for them here: jolokia/jolokia#305.
It is caused if your JVM Agent was started in debug mode. How does your -javaagent command argument looks like?

from jmx2graphite.

bluebob avatar bluebob commented on May 26, 2024

Sorry for delay in replying. Sure enough the JOLOKIA_OPTS setting I was using was "--debug". I've switched that to "--verbose" and jmx2graphite seems to be working fine now. Now all I've gotta do is turn off all that trace output... :)

from jmx2graphite.

asafm avatar asafm commented on May 26, 2024

from jmx2graphite.

bluebob avatar bluebob commented on May 26, 2024

Oops, yes. Thanks. :)

from jmx2graphite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.