Cloudbees CD/RO server is unresponsive and displays an outofmemory error

Resolve an `OutOfMemory` error caused by insufficient `PermGen` space on a 64-bit Cloudbees CD/RO server by updating the `wrapper.conf` file with an increased `MaxPermSize` value. After adding the `wrapper.java.additional` parameter and restarting the server, the unresponsive behavior is corrected.

1 minute readTroubleshooting

Description

The Cloudbees CD/RO server becomes unresponsive and displays an OutOfMemory error prompt that states that the server is out of PermGen space. This prompt occurs when the server is not configured properly for a 64-bit JVM.

Workaround

Change a setting in wrapper.conf.
  1. Locate the wrapper.conf file.

    • The file to edit on Linux is /opt/cloudbees/sda/conf/wrapper.conf

    • The file to edit on Windows is <Cloudbees CD/RO Automation Platform data dir>/conf/wrapper.conf

    • On Windows 7 or 2008, the DATA_DIRECTORY is typically C:\ProgramData\CloudBees\Software Delivery Automation

  2. Add the following line to the end of the existing wrapper.java.additional section, being careful to use the next consecutive number.

    In the following example, 7 was the last pre-existing sequence number in this section.

    wrapper.java.additional.8=-XX:MaxPermSize=128m
    ▼
You should set the Java MaxPermSize to a number greater than the default (which is 84m) on an 64-bit Cloudbees CD/RO server (java) installation. After the file has been edited, restart the server to utilize the new value.
  1. On Linux: /etc/init.d/commanderServer restart

  2. On Windows: use Services.