Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1008 Bytes

jmx.md

File metadata and controls

20 lines (16 loc) · 1008 Bytes

Table of Contents generated with DocToc

JMX

To read JMX metrics, you can use jconsole if you have an option of GUI. Otherwise you can use a cli utility named jmxcli. Here are the steps

  • wget https://github.com/downloads/vladimirvivien/jmx-cli/jmxcli-0.1.2-bin.zip
  • unzip jmxcli-0.1.2-bin.zip -d <folder>
  • cd <folder>
  • execute java -jar cli.jar
  • Do ps to list all the JVMs
  • Connect with JVM using connect pid:<pid_id>
  • Use list to see all the possible mbeans
  • To get the current value of a metric use for example exec bean:"\"spark.jobserver\":name=\"job-cache-size\",type=\"JobCacheImpl\"" get:Value