Setting up JMX Monitoring - MC4J

  1. cd $WADI_HOME/bin
  2. ./node.sh $container red
  3. download, install and start mc4j-1.2beta9+
  4. Management->Create Server Connection...
  5. select a 'Server Connection Type' of 'JSR160'
  6. choose a name e.g. "WADI (red)"
  7. replace the default 'Server URL' with a url for red - service:jmx:rmi://localhost/jndi/rmi://localhost:1099/wadi (output as node starts)
  8. Next
  9. Finish
You should see a popup appear telling you that a number of MBeans are being loaded, and an e.g. "WADI (red)" node appearing in the MC4J Connections panel.
  1. WADI (red) -> MBeans -> WADI(n) -> name=MemoryContextualiser -> Attributes -> LocalSessionCount
  2. right click over LocalSessionCount attribute and select "Graph..."
  3. restart your browser (or throw out cookie from last test) and point it at red - http://localhost:8080/wadi/create.jsp
You should see the graph increase by one on the y-axis. Congratulations - you are now graphing the number of active sessions on your red node.