KBEC-00379 - Necessary Settings in CentOS When Running CloudBees CD (CloudBees Flow) in CentOS

Article ID:360033189071
1 minute readKnowledge base

Problem

You may get ERROR "OutOfMemoryError" after awhile when running CloudBees CD (CloudBees Flow) server in CentOS.

NOTE - the CentOS operating system is not officially supported, but being based on the RHEL system, has been seen to function safely in a number of customer locations.

Solution

The cause of this may vary. However in CentOS, it is recommended to modify the settings inside file: "/etc/security/limits.d/90-nproc.conf". The default file appears as follows:

# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

*          soft    nproc     1024
root       soft    nproc     unlimited

It is recommended to modify this section to the following:

# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

*          soft    nproc     8192
root       soft    nproc     unlimited
*          soft    nofile    16384
*          hard    nofile    16384
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.