Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-2382

Default memory settings in the Puppet Server Docker images are too low

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: SERVER 5.1.3, SERVER 6.0.2
    • Fix Version/s: None
    • Component/s: Puppet Server
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: n/a
      Puppet Server Version: 6.0.2
      OS Name/Version: Docker Container

      The default memory allocation is too low.

      Desired Behavior:

      Default memory should be 1G or more to match the recommended memory allocation from the tuning guide. (https://puppet.com/docs/puppetserver/6.0/tuning_guide.html)

      Actual Behavior:

      Run the container.

      docker run --name puppet --hostname puppet puppet/puppetserver-standalone:6.0.2

      The default java allocation 512M. You can see it allocation below.

      root@puppet:/# ps ax | grep java
      88 ? S 0:00 runuser puppet -s /bin/bash -c /usr/bin/java -Xms512m -Xmx512m -Dlogappender=STDOUT -Djava.security.egd=/dev/urandom -cp /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar:/opt/puppetlabs/server/data/puppetserver/jars/* clojure.main -m puppetlabs.trapperkeeper.main --config /etc/puppetlabs/puppetserver/conf.d --bootstrap-config /etc/puppetlabs/puppetserver/services.d/,/opt/puppetlabs/server/apps/puppetserver/config/services.d/ --restart-file /opt/puppetlabs/server/data/puppetserver/restartcounter

      89 ? Ssl 1:25 /usr/bin/java -Xms512m -Xmx512m -Dlogappender=STDOUT -Djava.security.egd=/dev/urandom -cp /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar:/opt/puppetlabs/server/data/puppetserver/jars/* clojure.main -m puppetlabs.trapperkeeper.main --config /etc/puppetlabs/puppetserver/conf.d --bootstrap-config /etc/puppetlabs/puppetserver/services.d/,/opt/puppetlabs/server/apps/puppetserver/config/services.d/ --restart-file /opt/puppetlabs/server/data/puppetserver/restartcounter
      294 pts/0 S+ 0:00 grep --color=auto java

       

      The documentation for the container should also mention the $PUPPETSERVER_JAVA_ARGS environment variable and how to use it set the memory allocation and increase the number of max-active-instances.

       

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                perlstalker Randall Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: