You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
456 B
YAML
14 lines
456 B
YAML
1 year ago
|
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
|