controller Provisioning Kubernetes plugin might produce a memory leak in CloudBees CI on modern cloud platforms in versions 2.222.2.1 and 2.222.4.3

Article ID:360045395292
1 minute readKnowledge base

Issue

Memory leak suspect: controller Provisioning Kubernetes plugin could cause a known memory issue in version 2.222.2.1 and 2.222.4.3 with Kubernetes controller provisioning 2.4.8

Resolution

The plugin controller-provisioning-kubernetes contains a Support Component to grab the Kubernetes logs. The version 2.4.8 found in this product loads all the logs in memory which could cause OutOfMemory errors and/or the Operations Center being killed by the oom-killer.

A workaround is to disable the automatic generation of support bundles by setting the system property 'com.cloudbees.jenkins.support.SupportPlugin.AUTO_BUNDLE_PERIOD_HOURS' to '0' (-Dcom.cloudbees.jenkins.support.SupportPlugin.AUTO_BUNDLE_PERIOD_HOURS=0). The real solution is to upgrade the product to at least 2.235.1.2, which contains 2.5.2 of controller-provisioning plugin.