Table of Contents generated with DocToc
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
- To down (remove from the cluster) one of the nodes:
exec bean:"akka:type=Cluster" op:down params:"akka.tcp://JobServer@..."