Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is possible to monitor the CMR with our own inspectIT Agent. For this purpose the CMR with Agent run configuration will be available and should be used when self-monitoring is needed. The general idea is that CMR that is being monitored sends data to it self. Basically only one CMR needs to be started with the Agent and that's it. Although the Agent will fail to connect initially to the CMR, after the CMR has been started the Agent will be able to connect. 

Process

Simply start the CMR with Agent run configuration. Make sure that the agent is built and available.

Info
titleExpect exceptions

It might be possible that the Agent reports some kind of exceptions while running on the CMR, but these do not influence the monitoring. 

Examples:

Mrz 07, 2014 2:23:29 PM info.novatec.inspectit.agent.sensor.method.invocationsequence.InvocationSequenceHook addObjectStorage
SEVERE: thread data NULL!!!!

 another CMR. The first one should be an installed Version and the second can be started from Eclipse. Running both CMRs from Eclipse will not work.

Process

  1. Install inspectIT on you computer, i.e. the most recent version from Github. Lets call this inspectIT "Monitor inspectIT".
  2. Start the Monitor inspectIT CMR without any specific start parameter.
  3. Import the Configuration which can be found in the inspectIT code under "inspectIT\resources\monitoring\CMR-Monitoring-Import-Data.xml". It is called: CMR [self monitoring].
  4. Ensure that the Agent Mapping is setup corretly that new Agents will use this Configuration under Agent Mapping Settings.
  5. Switch to the inspectIT Version In Eclipse which should be monitored. Lets call this inspectIT "ToTest inspectIT".
  6. Change the file inspectit.server\src\main\external-resources\config\default.xml: Change jetty.port to i.e. 8183 and the cmr.port to i.e. 9071.
  7. Start the CMR with the launch Script "CMR with Agent". Change the -javaagent path to the path of the Agent of the "Monitor inspectIT".
  8. When the second CMR is started you can monitor a application which buts load on the "ToTest CMR".
  9. Ensure that the application that is monitored with the "ToTest inspectIT" uses the agent build by this inspectIT version and not from the "Monitor inspectIT". Further the monitored agent must add the cmr.port of the "ToTest CMR", i.e. -Dinspectit.repository=localhost:9071

Configuration

Currently this configuration is defined:

...