Server is unresponsive and displays an out-of-memory error

On this page


The CloudBees Flow 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.


Change a setting in wrapper.conf.

  1. Locate the wrapper.conf file.

    • The file to edit on Linux is:

      ` /opt/electriccloud/electriccommander/conf/wrapper.conf`

    • The file to edit on Windows is:

      <CloudBees Flow Automation Platform data dir>/conf/wrapper.conf

    • On Windows 7 or 2008, the DATA_DIRECTORY is typically:

      C:\ProgramData\Electric Cloud\ElectricCommander

  2. Add the following line to the end of the existing “ ” section, being careful to use the next consecutive number.

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

You should set the Java MaxPermSize to a number greater than the default (which is 84m) on an 64-bit CloudBees Flow server (java) installation.
  1. After the file has been edited, restart the server to utilize the new value:

    • On Linux: /etc/init.d/commanderServer restart

    • On Windows: use “Services”

Copyright © 2010-2020 CloudBees, Inc.Online version published by CloudBees, Inc. under the Creative Commons Attribution-ShareAlike 4.0 license.CloudBees and CloudBees DevOptics are registered trademarks and CloudBees Core, CloudBees Flow, CloudBees Flow Deploy, CloudBees Flow DevOps Insight, CloudBees Flow DevOps Foresight, CloudBees Flow Release, CloudBees Accelerator, CloudBees Accelerator ElectricInsight, CloudBees Accelerator Electric Make, CloudBees CodeShip, CloudBees Jenkins Enterprise, CloudBees Jenkins Platform, CloudBees Jenkins Operations Center, and DEV@cloud are trademarks of CloudBees, Inc. Most CloudBees products are commonly referred to by their short names — Accelerator, Automation Platform, Flow, Deploy, Foresight, Release, Insight, and eMake — throughout various types of CloudBees product-specific documentation. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Jenkins is a registered trademark of the non-profit Software in the Public Interest organization. Used with permission. See here for more info about the Jenkins project. The registered trademark Jenkins® is used pursuant to a sublicense from the Jenkins project and Software in the Public Interest, Inc. Read more at Apache, Apache Ant, Apache Maven, Ant and Maven are trademarks of The Apache Software Foundation. Used with permission. No endorsement by The Apache Software Foundation is implied by the use of these marks.Other names may be trademarks of their respective owners. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this content, and CloudBees was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this content, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.