Agent limited after CMR restart and agent re-connection


Currently the re-connection of the agent works 100% correct only if the CMR was not restarted and disconnect happend due to the networks issues.

When CMR is restarted and agent re-connected we have following problems:

  • Agent is not marked as connected in the repository manager. For the CMR the status is NEVER CONNECTED as the restart is killing the correct state about the agent.

  • Agent can not perform any class analyzing by sending to the CMR, as the class cache does not exists on the CMR for the agent with the given ID (killed after restart).

  • Dynamic instrumentation does not work as class cache is missing.

This was reported as problem by Jäkel, Guido (DNB) and now by GitHub user yvbondarenko. Stack trace from the GitHub ticket:

Possible solutions/fixes:

  1. There is no reason to mark agent connected on the re-connection. That's easy.

  2. Wrt class cache, we have two options:

    1. If agent class cache does not exists, start a new one on the re-connect. Sure all the information about previously set classes will be lost.

    2. Better: periodically save class cache of the agents on the disk and load them on the start-up. This way we can continue where we left. This is only way to solve dynamic instrumentation problem as well.




Ivan Senic
July 11, 2017, 4:19 AM

Moved it to current Sprint as lot of people are complaining about this, let's try to fix it.

Ivan Senic
August 10, 2017, 11:00 AM

: 2-3 small comments left (basically you missed them from last iteration).. Is there any chance you can update this by tomorrow afternoon?

Technical User
August 11, 2017, 10:12 AM

SUCCESS: Integrated in

inspectIT - Integration #338
INSPECTIT-2322: Agent limited after CMR restart and agent re-connection (ivan.senic: 30378b3a4b18fc8a7cc2346189b01e177190896b)

  • (edit) inspectit.server/src/test/java/rocks/inspectit/server/util/

  • (edit)

  • (edit) inspectit.server/src/test/java/rocks/inspectit/server/instrumentation/

  • (edit)

  • (edit)

  • (edit)

  • (edit)

  • (edit)

  • (edit) inspectit.shared.all/src/main/java/rocks/inspectit/shared/all/communication/data/cmr/

  • (edit)

  • (edit)

  • (edit)

  • (edit) inspectit.server/src/main/java/rocks/inspectit/server/util/

  • (edit) inspectit.ui.rcp/src/main/java/rocks/inspectit/ui/rcp/formatter/



Tobias Angerstein


Ivan Senic




Ivan Senic




Fix versions

Affects versions