mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
18 lines
497 B
YAML
18 lines
497 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 $java_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
|
|
}
|