Setting the repository and agent name via JVM parameters

The agent needs only two settings passed via the JVM parameters in oder to start and get the correct configuration from the repository.

The repository setting defines the location of the CMR holding configuration and as well where the data should be sent to. The IP and port defines the location of the CMR. The agent name allows to set an unique name for this agent. An CMR can gather data from multiple agents, thus a meaningful agent name allows for an easier recognition.

These properties are set via JVM parameters. When launching the application to be monitored it is necessary to add following parameter to the JVM parameters:

-Dinspectit.repository=localhost:9070 -Dinspectit.agent.name=MyTestAgent

As you can notice the value of the inspectit.repository parameter should be in the form of repositoryIp:repositoryPort and the inspectit.agent.name is just the full name.

Communication Check between Agent and CMR

You can verify if communication works between Agent and CMR with a small test. For more details, have a look at the post inspectIT – Check communication between Agent and CMR published on the NovaTec Blog.