好。我终于可以找出问题所在。tomcat在docker下运行。所以我必须在docker中运行命令。我遵循以下提到的步骤。
1. Access the docker2. Find the PID of tomcat by running command within docker.3. Run command /<oracle path>/bin/jstack PID >> filename

好。我终于可以找出问题所在。tomcat在docker下运行。所以我必须在docker中运行命令。我遵循以下提到的步骤。
1. Access the docker2. Find the PID of tomcat by running command within docker.3. Run command /<oracle path>/bin/jstack PID >> filename