Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions distribution/benchmark/shutdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ case $1 in
exit -1;
fi

echo "The benchmkar producer(${pid}) is running..."
echo "The benchmark producer(${pid}) is running..."

kill ${pid}

Expand Down Expand Up @@ -52,12 +52,26 @@ case $1 in
exit -1;
fi

echo "The benchmkar transaction producer(${pid}) is running..."
echo "The benchmark transaction producer(${pid}) is running..."

kill ${pid}

echo "Send shutdown request to benchmark transaction producer(${pid}) OK"
;;
bproducer)

pid=`ps ax | grep -i 'org.apache.rocketmq.example.benchmark.BatchProducer' |grep java | grep -v grep | awk '{print $1}'`
if [ -z "$pid" ] ; then
echo "No benchmark batch producer running."
exit -1;
fi

echo "The benchmark batch producer(${pid}) is running..."

kill ${pid}

echo "Send shutdown request to benchmark batch producer(${pid}) OK"
;;
*)
echo "Useage: shutdown producer | consumer | tproducer"
echo "Usage: shutdown producer | consumer | tproducer | bproducer"
esac