Setting up JMX Monitoring - MC4J
- cd $WADI_HOME/bin
- ./node.sh $container red
- download, install and start mc4j-1.2beta9+
- Management->Create Server Connection...
- select a 'Server Connection Type' of 'JSR160'
- choose a name e.g. "WADI (red)"
- replace the default 'Server URL' with a url for red - service:jmx:rmi://localhost/jndi/rmi://localhost:1099/wadi (output as node starts)
- Next
- 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.
- WADI (red) -> MBeans -> WADI(n) -> name=MemoryContextualiser -> Attributes -> LocalSessionCount
- right click over LocalSessionCount attribute and select "Graph..."
- 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.