2 changed files with 18 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||||||
|
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 |
||||||
Loading…
Reference in new issue