Agent spins CPU without delay when CMR connection is lost

Description

If the CMR connection is lost and the agent has data in its buffer it tries to send it.

The problem is that the agent does not interrupt the CoreService SendingThread if the connection is closed (e.g. if the CMR crashes). Because the connection is not there the data will remain in the buffer and it immediately tries to resend it the CPU utilization will raise to its limit. (See code)

Affected class: CoreService

Environment

None

Activity

Show:
Marius Oehler
March 20, 2017, 10:18 AM

I'm going the way to wait for the reconnection of the connection. This way, we still gather the data if the connection is lost for a short duration.

Technical User
March 21, 2017, 2:24 PM

SUCCESS: Integrated in

inspectIT - Integration #262
INSPECTIT-2346: Agent spins CPU without delay when CMR connection is (ivan.senic: 1f5d42c2306fc6866ff0b5988aba002e02d8db0e)

  • (edit) inspectit.agent.java/src/main/java/rocks/inspectit/agent/java/connection/IConnection.java

  • (edit) inspectit.agent.java/src/main/java/rocks/inspectit/agent/java/core/impl/CoreService.java

  • (edit) inspectit.agent.java/src/main/java/rocks/inspectit/agent/java/connection/impl/KryoNetConnection.java

Assignee

Marius Oehler

Reporter

Marius Oehler

Labels

None

Integrator

Ivan Senic

Sprint

None

Fix versions

Affects versions

Priority

Highest
Configure