Skip to content

Commit 844218a

Browse files
committed
Merge branch '3.1.x' into 3.2.x
2 parents 256cdcd + b29e76b commit 844218a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/actions/print-jvm-thread-dumps/action.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ description: Prints a thread dump for all running JVMs
33
runs:
44
using: composite
55
steps:
6-
- shell: bash
6+
- if: ${{ runner.os == 'Linux' }}
7+
shell: bash
78
run: |
8-
for java_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do
9-
echo "------------------------ pid $java_pid ------------------------"
10-
jcmd $java_pid Thread.print -l
9+
for jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do
10+
jcmd $java_pid Thread.print
1111
done
12-
exit 0
12+
- 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

Comments
 (0)