...
The only prerequisite for self-monitoring is to start another CMR instance that will collect data from the monitoring one. This instance should redefine ports, so that RMI ports are 9080 and 9081. The HTTP port must also be redefined, for example to 8183. Note that the user interface can then connect to both CMRs, but the one having the monitoring data will be the one bounded to the 8183 port.
Process
You can start both CMR from Eclipse.
- Change the ports in src/config/cmr.properties: registryPort -> 9080 servicePort -> 9081
- Change the http port in src/config/jetty.properties: jetty.port -> 8183
- Start the CMR using the default startup Script "Start CMR" (or just executing the CMR.java class). Wait for the CMR to be started
- Reset the changes in the configuration files
- Start the instrumented CMR using the run configuration "CMR with Agent"
- now you can run your normal application against the instrumented CMR.
Configuration
Currently this configuration is defined:
...