We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #10245: Fix thread leak triggered by unstable site connections

ComponentLivestatus-Proxy
TitleFix thread leak triggered by unstable site connections
Date2019-10-01 16:31:19
Checkmk EditionCheckmk Enterprise Edition (CEE)
Checkmk Version1.6.0p3,1.7.0i1
LevelProminent Change
ClassBug Fix
CompatibilityCompatible - no manual interaction needed

The livestatus proxy normally keeps open several connections to the remote livestatus server and uses them in the moment a livestatus query is made from the central site to the remote site.

In the moment a site is not reachable anymore, for example because of a network connection issue, this is detected by one of these connections. The site is then terminating all other connections and trying to recover from this situation by continuously reconnecting to the remote site.

In this situation the livestatus proxy was not cleaning up it's old connection threads while opening new ones for the new connections. After some time this could result in "Resource temporarily unavailable" errors in various places or "can't start new thread" shown in the GUI.