Build Pull Requests on CI using GitHub Actions
Closes gh-32443
This commit is contained in:
17
.github/actions/print-jvm-thread-dumps/action.yml
vendored
Normal file
17
.github/actions/print-jvm-thread-dumps/action.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user