mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '3.2.x'
This commit is contained in:
commit
614aecb7bb
@ -3,10 +3,15 @@ description: Prints a thread dump for all running JVMs
|
|||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- shell: bash
|
- if: ${{ runner.os == 'Linux' }}
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
for java_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do
|
for jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do
|
||||||
echo "------------------------ pid $java_pid ------------------------"
|
jcmd $java_pid Thread.print
|
||||||
jcmd $java_pid Thread.print -l
|
|
||||||
done
|
done
|
||||||
exit 0
|
- if: ${{ runner.os == 'Windows' }}
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
foreach ($jvm_pid in $(jps -q -J-XX:+PerfDisableSharedMem)) {
|
||||||
|
jcmd $jvm_pid Thread.print
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user