File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1616# limitations under the License.
1717# --------------------------------------------------------------------
1818
19- echo " @ capturing threaddumps every minute for all java processes" >&2
19+ echo " @ capturing jvm diagnostics every minute for all java processes" >&2
20+
21+ mkdir -p target/ci-debug
2022
2123while : ; do
2224 sleep 60
2325 t=` date +%s`
24- echo " @ capturing threaddumps $t " >&2
26+ echo " @ capturing jvm diagnostics $t " >&2
2527 pgrep java | while read pid; do
26- jstack $pid > target/jstack.$pid .$t
28+ jstack $pid > target/ci-debug/jstack.$pid .$t
29+ jcmd $pid GC.heap_info > target/ci-debug/heap.$pid .$t 2>&1
2730 done
2831done
Original file line number Diff line number Diff line change 8484 set -x
8585 ./.github/scripts/setup_test_profiling_env.sh ${{ inputs.jdk }} run_id=$GITHUB_RUN_ID run_number=$GITHUB_RUN_NUMBER run_attempt=$GITHUB_RUN_ATTEMPT key=${{ inputs.key }} event_ref=$GITHUB_EVENT_REF run_url=$GITHUB_RUN_URL >> $GITHUB_ENV
8686 echo "HASH=$(echo -n "${{ inputs.key }}" | sha256sum | cut -c-8)" >> $GITHUB_ENV
87- ./.github/scripts/collect_jstacks &
87+ ./.github/scripts/collect_jvm_diagnostics &
8888
8989 - name : ' Execute: ${{ inputs.script }}'
9090 run : ${{ inputs.script }}
@@ -118,4 +118,4 @@ jobs:
118118 **/core.[0-9]*
119119 **/TEST-*.xml
120120 **/target/jacoco*.exec
121- **/target/jstack *
121+ **/target/ci-debug/* *
You can’t perform that action at this time.
0 commit comments