After upgrading CloudBees CI on modern platform, the Operation Center - Controller is getting restarted often

Issue

If you have recently upgraded CloudBees CI on modern cloud platforms from a version earlier than 2.235.4.1 and since then you notice that some of your instances are failing and/or getting restarted, a memory issue might be happening.

Environment

Description

From version 2.235.4.1, the memory management has been changed allowing dynamically determine the JVM min/max with the options -XX:InitialRAMPercentage and-XX:MaxRAMPercentage.

If prior to that version your instance had set up the JVM option -XX:MaxRAMFraction=1, you are being affected by this problem and you need to update the JVM parameters in order to get rid of those memory issues.

Resolution

Please remove -XX:MaxRAMFraction=1 and replace it with -XX:MaxRAMPercentage=50.0

You can get more details in Java Heap settings best practice

Have more questions?

0 Comments

Please sign in to leave a comment.