0

I have docker swarm cluster.include five nodes and many of containers.I want to use Ansible startup JFR(JDK Flight Recorder) in many of Containers same time:

Step1: docker exec -it containers_name.
step2: run JMCD (find java pid)
step3: jcmd <pid> VM.unlock_commercial_features
step4: jcmd <pid> JFR.start settings=profile delay=10s duration=10m name=Profiling filename=recording.jfr

How to use ansible startup JFR(JDK Flight Recorder) in all of Containers same time?

Thanks!

gang yan
  • 37
  • 4
  • What have you already tried, and what error is it producing for you? – mdaniel Feb 25 '21 at 16:56
  • I want to auto startup JFR in containers by ansible. – gang yan Feb 26 '21 at 00:29
  • Thank you, we understood what you were asking for. This is not a consulting agency, where people write code to your requirements. This is a Q&A site where you ask for help troubleshooting _your_ code, which as best I can tell your question contains no attempt you've made thus far – mdaniel Feb 26 '21 at 06:52
  • Sorry, not familiar with ansible.Hope to get a ansible template Thanks! – gang yan Feb 26 '21 at 07:00

0 Answers0