Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.26 KB

jmx.md

File metadata and controls

30 lines (25 loc) · 1.26 KB

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
  • To check the status of Akka Cluster, following commands are helpful. You can connect to master pid or slave pid.
desc bean:"akka:type=Cluster"
exec bean:"akka:type=Cluster" get:Members
exec bean:"akka:type=Cluster" get:Leader
exec bean:"akka:type=Cluster" get:ClusterStatus