0
点赞
收藏
分享

微信扫一扫

查看sctrl内存使用情况

七千22 2022-04-27 阅读 67
linux
cat /proc/`ps -ef|grep ./sctrl | grep -v grep | awk '{print $2}'`/status | grep -E 'VmSize|VmRSS|VmData|VmStk|VmExe|VmLib'
min=1
max=10000
while [ $min -le $max ]
do
date
echo "fd :"
# ipcs
ls -l /proc/`ps -ef|grep ./sctrl | grep -v grep | awk '{print $2}'`/fd|wc -l
#netstat -nat
#cat /proc/`ps -ef|grep ./sctrl | grep -v grep | awk '{print $2}'`/status | grep -E 'VmSize|VmRSS|VmData|VmStk|VmExe|VmLib'
cat /proc/`ps -ef|grep ./sctrl | grep -v grep | awk '{print $2}'`/status | grep -E 'VmSize|VmRSS|VmData'
min=$(($min+1))
sleep 5
done
举报

相关推荐

0 条评论