GithubHelp home page GithubHelp logo

NumberFormatException about jmxeval HOT 5 CLOSED

venushka avatar venushka commented on July 29, 2024
NumberFormatException

from jmxeval.

Comments (5)

venushka avatar venushka commented on July 29, 2024

I've just successfully ran it with the following xml file.

<jmxeval:jmxeval xmlns:jmxeval="http://www.adahas.com/schema/jmxeval-1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <connection url="service:jmx:rmi:///jndi/rmi://localhost:8090/jmxrmi">
    <eval name="heapMemory">
      <query var="heapMemoryMax" objectName="java.lang:type=Memory" compositeAttribute="HeapMemoryUsage" attribute="max" />
      <expr var="heapMemoryMaxGb" expression="${heapMemoryMax}/1048576" />
      <check useVar="heapMemoryMaxGb" warning="800" critical="600" message="Used heap memory = ${heapMemoryMaxGb}" />
    </eval>
  </connection>
</jmxeval:jmxeval>

Can you share the full xml file? (any sensitive data removed ofcourse)

from jmxeval.

clagio avatar clagio commented on July 29, 2024

I have the same error with your xml..
I'm using the latest version I think: jmxeval-2.0.0-SNAPSHOT
This is the check_jmxeval script, I had to change the paths to the jar files because were not updated:

BASE_DIR=dirname $0
LIB_DIR="$BASE_DIR/lib"
$JAVA_HOME/bin/java -classpath "$BASE_DIR/jmxeval-2.0.0-SNAPSHOT.jar:$LIB_DIR/args4j-2.33.jar:$LIB_DIR/commons-io-2.5.jar:$LIB_DIR/commons-lang3-3.5.jar" com.adahas.tools.jmxeval.App $@

from jmxeval.

venushka avatar venushka commented on July 29, 2024

There were quite a lot of changes in master, unfortunately it could be that it was broken at the time you built it. I've just created a release from master. Could you please try this with 2.0.0 release?

If it still fails, can you run it again with --verbose in the command line to get the full stack trace and paste it here?

from jmxeval.

clagio avatar clagio commented on July 29, 2024

Perfect it's working now! :)

from jmxeval.

venushka avatar venushka commented on July 29, 2024

That's great! 👍

from jmxeval.

Related Issues (13)

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.