Setup inspectIT in order to diagnose problems within systems is usually quite easy. However, the Devil is in the detail. One of the pitfalls might be the communication between the agent and the CMR (Central Measurement Repository) due to closed ports. From our own experience, this is annoying because you need an additional restart of your application after you have opened the ports. The restart might hinder colleagues or in the worst case even your customers.

Fortunately, there is a simple way to verify the communication between agent and CMR without using the system to be diagnosed. The only thing you need is Java’s command -version. Simply run it with the JVM parameters which are needed to start an application with inspectIT:

java -javaagent:PATH-TO-INSPECTIT-AGENT/inspectit-agent.jar -Dinspectit.config=PATH-TO-INSPECTIT-AGENT/config -version

 If the check was successful, you should see outputs like

Terminal (execution of -version command)

CMR Log File (stdout.log)

inspectIT UI

You should see the agent in either the Repository Manager or the Data Explorer.

Agent shown in Repository Manager Agent shown in Data Explorer

 

This little trick can be used to check if the communication between agent and CMR is possible without losing too much time.

Hopefully it keeps you and your customers in good mood 😉

Leave a Comment

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close