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

Puppetserver in Docker Environment - JAVA_ARGS cannot change Java memory settings

    XMLWordPrintable

    Details

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

      Description

      Java Memory settings cannot be changed, when running Puppet Server in the Docker Image. Setting for example:

      PUPPETSERVER_JAVA_ARGS="-Xms2048m -Xmx2048m" 

      when creating the Docker container (docker-compose using Pupperware) results a message from Java "invalid initial Heap memory size".

      It seems that the PUPPETSERVER_JAVA_ARGS are added in addition to the preexisting "-Xms512m -Xmx512m" parameters resulting in this error.

      Entering the container (using docker exec ... bash) and changing /etc/default/puppetserver to JAVA_ARGS="-Xms2048m -Xmx2048m" results a correctly starting puppetserver.

      But it should be possible to change these settings using PUPPETSERVER_JAVA_ARGS on docker container build time.

      Tested against "latest" puppetserver:

      https://hub.docker.com/layers/puppet/puppetserver/latest/images/sha256-184abc8290e81a0bbe7c71da41a20a1498586a9b6adafe553610d10425e8b6ef?context=explore

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            cygnus Dr. Torge Valerius
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support