We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 256cdcd + b29e76b commit 844218aCopy full SHA for 844218a
.github/actions/print-jvm-thread-dumps/action.yml
@@ -3,10 +3,15 @@ description: Prints a thread dump for all running JVMs
3
runs:
4
using: composite
5
steps:
6
- - shell: bash
+ - if: ${{ runner.os == 'Linux' }}
7
+ shell: bash
8
run: |
- for java_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do
9
- echo "------------------------ pid $java_pid ------------------------"
10
- jcmd $java_pid Thread.print -l
+ for jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do
+ jcmd $java_pid Thread.print
11
done
12
- exit 0
+ - if: ${{ runner.os == 'Windows' }}
13
+ shell: powershell
14
+ run: |
15
+ foreach ($jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem)) {
16
+ jcmd $jvm_pid Thread.print
17
+ }
0 commit comments