user-icon Ivan Senić
10. March 2014
timer-icon 2 min

inspectIT - Check Communication between Agent and CMR

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.repository=[HOST]:[PORT][AgentName] -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.

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 😉

Comment article