Slackbot
08/26/2022, 3:41 PMNickB
08/26/2022, 3:45 PMbastelfreak
08/26/2022, 3:49 PMcsharpsteen
08/26/2022, 3:52 PMpe-java-11-devel package will install jcmd and other tools to:
/opt/puppetlabs/server/apps/java/lib/jvm/java/bin/csharpsteen
08/26/2022, 3:53 PMpuppet_enterprise module can configure the default flight recording:
https://support.puppet.com/hc/en-us/articles/4689460877719-Use-Java-Flight-Recorder-to-record-and-share-diagnostic-data-with-Support-to-help-debug-performance-issues-in-Puppet-Enterprisecsharpsteen
08/26/2022, 3:55 PM/opt/puppetlabs/server/apps/java/lib/jvm/java/bin/jcmd \
$(systemctl show pe-puppetserver -p MainPID|cut -d= -f2) \
JFR.configure stackdepth=128
/opt/puppetlabs/server/apps/java/lib/jvm/java/bin/jcmd \
$(systemctl show pe-puppetserver -p MainPID|cut -d= -f2) \
JFR.start name=pcp-broker settings=profile disk=true duration=2h filename=/var/log/puppetlabs/puppetserver/pcp-broker.jfrcsharpsteen
08/26/2022, 3:56 PM/opt/puppetlabs/server/apps/java/lib/jvm/java/bin/jcmd \
$(systemctl show pe-puppetserver -p MainPID|cut -d= -f2) \
help JFR.startbastelfreak
08/26/2022, 3:56 PMcsharpsteen
08/26/2022, 3:58 PMfilename=/var/log/puppetlabs/puppetserver/blah.jfr also means the recording will be included in puppet enterprise support collection.simonhoenscheid
08/26/2022, 4:01 PM/var is relatively small on the hosts, is there an option to tell the support command to collect a custom directory?csharpsteen
08/26/2022, 4:14 PM-d flag if the default location of /var/tmp/ does not have enough space.
But, the location in which the support script expects to find log files, /var/log/puppetlabs/ is not configurable.