We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb447b commit 99aeee6Copy full SHA for 99aeee6
hotelReservation/noisy-neighbors/perf/service-monitor.sh
@@ -89,13 +89,13 @@ monitor_pod_remote() {
89
exit 1
90
fi
91
92
- if ! kill -0 \$PID 2>/dev/null; then
+ if ! sudo kill -0 \$PID 2>/dev/null; then
93
echo 'Error: Cannot access process \$PID'
94
95
96
97
echo 'Starting perf monitoring for $duration seconds...'
98
- perf stat -p \$PID sleep $duration
+ sudo perf stat -p \$PID sleep $duration
99
"
100
101
local ssh_exit_code=$?
0 commit comments