Files
Stéphane Nicoll be887f8972 Introduce base GHA support
This commit adds support for building and deploying snapshots to
repo.spring.io as well as building pull requests.
2024-10-10 12:03:34 +02:00

18 lines
498 B
YAML

name: Print JVM thread dumps
description: 'Prints a thread dump for all running JVMs'
runs:
using: composite
steps:
- if: ${{ runner.os == 'Linux' }}
shell: bash
run: |
for jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do
jcmd $jvm_pid Thread.print
done
- if: ${{ runner.os == 'Windows' }}
shell: powershell
run: |
foreach ($jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem)) {
jcmd $jvm_pid Thread.print
}