Werk #1045: Gracefully restart check_mk helpers in case of memory leak
Component | Core & setup |
Title | Gracefully restart check_mk helpers in case of memory leak |
Date | Jul 10, 2014 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk Version | 1.2.5i5 |
Level | Prominent Change |
Class | Bug Fix |
Compatibility | Compatible - no manual interaction needed |
When using the Check_MK Micro Core in combination with inline SNMP then in certain rare situations the check_mk helper processes leak memory. We suspect the leak to be in the SNMP libs but this is just an assumption.
This fix now watches the size of each check_mk helper. If the memory usage (VM size) of the process grows by more then 50% compared to the size after the first 20 hosts being checked, then the helper silently restarts itself and leaves a message in var/log/check_mk/cmc-helper.log.