Agent restarts every 7 minutes

A battery driven device periodically wakes from sleep and sends logged data to our server every 2 minutes. Yesterday it stopped logging and the EI log contains:

2016-10-18 11:20:40 UTC+2 [Agent] Status: 221

Followed by the agent restarting every 7 minutes - still does.

The status is a (weird) status code on a http put request to our server. Is there a system reason why the agent would restart every 7 min?

Are there any logged errors at all?

You should file a ticket with the agent ID and we can look - there’s nothing in our system that will restart an agent at that period, but your code could certainly crash at regular periods (eg out of memory etc) - though you should see logs for that.