I am trying to run jstack and jmd inside an AWS ECS container (EC2 based, not fargate) for some debugging. The container is running a Springboot based application. I have verified that jcmd and jstack are present, but I am getting following error:
/opt/java/openjdk # /usr/lib/jvm/default-jvm/bin/jcmd 1 Thread.print > /tmp/thread_dump.txt
Picked up JAVA_TOOL_OPTIONS: -XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningGcOnIdle -Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,readonly,nonFatal
Unrecognized VM option 'IdleTuningGcOnIdle'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
/opt/java/openjdk # /usr/lib/jvm/default-jvm/bin/jcmd 7 Thread.print > /tmp/thread_dump.txt
Picked up JAVA_TOOL_OPTIONS: -XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningGcOnIdle -Xshareclasses:name=openj9_system_scc,cacheDir=/opt/java/.scc,readonly,nonFatal
Unrecognized VM option 'IdleTuningGcOnIdle'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Can someone please help?