But this seems like a lot of conditionals just for the puppet master.
My question is - would you be open to some changes here? I'm new to using jps and jstat, so maybe you have an easier fix. My suggestions would complicate this file quite a bit - maybe beyond where I'd even want to take it.
It'd be easier for me to use your script and hack up a one-off, but thought I'd raise the question of a PR. :)
I can't seem to use this as is to profile the heap on a Puppet Enterprise (2016.1.x) for two reasons.
-j /opt/puppetlabs/server/apps/java/lib/jvm/java/bin/jps
-j
could be the java bin path.I could get the pid from a pid file optionally as well:
But this seems like a lot of conditionals just for the puppet master.
My question is - would you be open to some changes here? I'm new to using jps and jstat, so maybe you have an easier fix. My suggestions would complicate this file quite a bit - maybe beyond where I'd even want to take it.
It'd be easier for me to use your script and hack up a one-off, but thought I'd raise the question of a PR. :)