Files
spring-boot/.github/actions/print-jvm-thread-dumps/action.yml
Stéphane Nicoll 20b3e6120d Apply conventions to existing Actions and Workflows
This commit applies the conventions that we documented on our wiki, see
https://github.com/spring-projects/spring-boot/wiki/GitHub-Actions.

In no particular order this:

* Use consistent single quotes for descriptions
* Order elements in a predictable order. In particular, inputs, outputs,
and environment variables are ordered alphabetically

Closes gh-42512
2024-10-04 15:18:18 +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
}