Skip to content

Commit

Permalink
collect pprof heap
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <[email protected]>
  • Loading branch information
pingyu committed Feb 11, 2024
1 parent 503fce8 commit 33e77ca
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions cdc/tests/integration_tests/flow_control/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ EOF
# Wait until cdc pulls the data from tikv and store it in soter
sleep 90

rss1=$(ps -aux | grep 'tikv-cdc' | head -n1 | awk '{print $6}')
rss1=$(ps -aux | grep 'tikv-cdc' | grep -v grep | head -n1 | awk '{print $6}')
if [[ $rss1 == "" ]]; then
echo "Failed to get rrs1 by ps"
exit 1
Expand All @@ -61,12 +61,9 @@ EOF
echo "cdc server used memory: $used"
if [ $used -gt $expected ]; then
echo "Maybe flow-contorl is not working"

if [ "$SINK_TYPE" != "kafka" ]; then
# Kafka sink may have memory leak.
# TODO: investigate why.
exit 1
fi
# CI only collect *.log files, so name it as heap-dump.log
curl http://127.0.0.1:8600/debug/pprof/heap >$WORK_DIR/heap-dump.log
exit 1
fi

# As "per-changefeed-memory-quota" is low the syncing will cost more time.
Expand Down

0 comments on commit 33e77ca

Please sign in to comment.