You might need to increase the JVM (Java Virtual Machine) memory allocated to Java services or ActiveMQ to improve performance in your Puppet Enterprise deployment.
See Tuning monolithic installations for recommended settings based on various monolithic installation sizes.
The Java heap size is the JVM (Java Virtual Machine) memory allocated to Java services in Puppet Enterprise (PE). Make changes to the Java heap size for PE console services, Puppet Server, orchestration services, or PuppetDB in the PE console.
Note: Ensure that you have sufficient free memory before increasing the memory that is used by a PE service. The increases shown below are only examples.
In the console, click Nodes > Classification. In the PE Infrastructure node group, select the appropriate node group.
|Puppet Server||PE Master||
Click Classes and scroll down to the appropriate class.
Click the Parameter name drop-down list and select
java_args. Increase the heap size by replacing the parameter with the appropriate JSON string.
|Service||Default heap size||New heap size||JSON string|
Click Add Parameter and then click the commit button.
Run Puppet on the appropriate nodes to apply the change. If you’re running it on the console node, the console will be unavailable briefly while
|Puppet Server||Puppet master and compile masters|
The Puppet master runs an ActiveMQ server to route commands. By default, its process uses 512MB, the best Java heap size for mid-sized deployments. Avoid problems when building small proof-of-concept deployments on memory-starved VMs by increasing the heap size.
Note: Ensure that you have sufficient free memory before increasing the memory that is used by ActiveMQ. The increase shown below is only an example.
In the console, click Nodes > Classification. In the PE Infrastructure node group, select the PE ActiveMQ Broker group.
Click Classes and locate the
Click the Parameter name drop-down list, select
heap_mb, and in the value field, add a new heap size of 1024.
Click Add Parameter, and then click the commit button.
In the command line on the Puppet master node, run
puppet agent -t to start a Puppet run and apply the change.
To return the setting to default, complete steps one - five changing the value back to the original setting in step three.