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

Improve Tuning Guide docs re: default values of max-active-instances for different versions of Puppet Server.


    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: SERVER 2.0.0
    • Fix Version/s: None
    • Component/s: DOCS, Puppet Server
    • Labels:
    • Environment:
    • Template:
    • Sub-team:
    • Story Points:
    • Sprint:
      Server Jade 2015-05-13


      I am building a test environment for Puppet 4 (using puppetserver 2) before we deploy for real in a couple of months. All the packages were installed from the puppetlabs-pc1 repo (http://yum.puppetlabs.com/el/6/PC1/$basearch).

      Right now, the puppet server is serving two nodes - itself and one other node. Each node's agent is set to run every 10 minutes. The non-server node is not yet configured, so it just generates a fail() message in the site.pp manifest.

      I got the server running and left it alone. When I checked the next day, the puppet server process had crashed after 4.5 hours with an out of memory error:

      java.lang.OutOfMemoryError: GC overhead limit exceeded
      Dumping heap to /var/log/puppetlabs/puppetserver/java_pid8848.hprof ...
      Heap dump file created [3481283903 bytes in 27.879 secs]
      # java.lang.OutOfMemoryError: GC overhead limit exceeded
      # -XX:OnOutOfMemoryError="kill -9 %p"
      #   Executing /bin/sh -c "kill -9 8848"...

      I cannot attach the heap dump because it's 3.3 GB in size. Even at max compression, it's still 672 MB, way over the 10MB attachment limit.

      The puppetserver is running with the initial configuration - specifically, the java heap size is set to 2GB:

      # Modify this if you'd like to change the memory allocation, enable JMX, etc
      JAVA_ARGS="-Xms2g -Xmx2g -XX:MaxPermSize=256m"

      UPDATE: this issue seemed to mostly be a matter of not being clear enough in the tuning guide docs; it's not obvious what the old default was, nor that it was the default for Puppet Server 2.0. I've renamed the ticket to reflect the intent to improve those docs, and the default value should be fixed/improved as of 2.1.0.


          Issue Links



              • Assignee:
                JohnsonEarls Johnson Earls
              • Votes:
                0 Vote for this issue
                4 Start watching this issue


                • Created:

                  Zendesk Support