Otherwise, you can use something like the followin...
# puppet-enterprise
c
Otherwise, you can use something like the following:
Copy code
/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.jfr