This message was deleted.
# puppet-enterprise
s
This message was deleted.
n
I think it should be a part of pe-java11-devel
👍 1
b
oh indeed, thanks!
c
Yeah, the
pe-java-11-devel
package will install
jcmd
and other tools to:
Copy code
/opt/puppetlabs/server/apps/java/lib/jvm/java/bin/
👍 1
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
👍 1
That configures a 2 hour recording. See the following for all options:
Copy code
/opt/puppetlabs/server/apps/java/lib/jvm/java/bin/jcmd \
  $(systemctl show pe-puppetserver -p MainPID|cut -d= -f2) \
  help JFR.start
👍 1
b
oh awesome, thanks
c
Setting the output to
filename=/var/log/puppetlabs/puppetserver/blah.jfr
also means the recording will be included in
puppet enterprise support
collection.
s
/var
is relatively small on the hosts, is there an option to tell the support command to collect a custom directory?
c
The support script can output to a custom directory via the
-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.
👍 1