mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
14 lines
456 B
YAML
14 lines
456 B
YAML
name: Print JVM thread dumps
|
|
description: Prints a thread dump for all running JVMs
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- run: |
|
|
for java_pid in $(jps -q -J-XX:+PerfDisableSharedMem); do
|
|
echo "------------------------ pid $java_pid ------------------------"
|
|
cat /proc/$java_pid/cmdline | xargs -0 echo
|
|
jcmd $java_pid Thread.print -l
|
|
jcmd $java_pid GC.heap_info
|
|
done
|
|
exit 0
|
|
shell: bash |