标签:RoCE $1 dstat 进程 name zabbix $2 ids pre
# get size of java process VIRT memory PName=$1 #echo $PName if [ "$PName" != "" ];then a=`ps aux | grep $PName | grep -v grep | grep -v zabbix |awk ‘{print $2}‘` #echo $a arr=($a) virtAll=0 count=0 for PID in ${arr[@]} do virt=`pidstat -r -p $PID 3 1 | awk ‘NR==4{print $6}‘` virt=$virt*1024 virtAll=$(($virtAll+$virt)) done echo ${virtAll} fi
标签:RoCE $1 dstat 进程 name zabbix $2 ids pre
原文地址:https://www.cnblogs.com/zmx-721/p/9816306.html