Use iftop to collect network bandwidth usage (#6560)

* Use iftop to collect network bandwidth usage

* fix shellcheck

* more shellchecks

* review comments
This commit is contained in:
Pankaj Garg
2019-10-26 00:06:46 -07:00
committed by Michael Vines
parent be74801236
commit e174af7838
5 changed files with 30 additions and 1 deletions

View File

@@ -810,7 +810,7 @@ stopNode() {
PS4=\"$PS4\"
set -x
! tmux list-sessions || tmux kill-session
for pid in solana/{blockexplorer,net-stats,fd-monitor,oom-monitor}.pid; do
for pid in solana/*.pid; do
pgid=\$(ps opgid= \$(cat \$pid) | tr -d '[:space:]')
if [[ -n \$pgid ]]; then
sudo kill -- -\$pgid