Toggle navigation
Toggle navigation
This project
Loading...
Sign in
YPT
/
jmeter
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rong
8 years ago
Commit
5fdc502be070a983f03d8486180cd950367d027a
1 parent
136e0064
auto commit by shell by gr
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
shell/auto/yohoPerformanceTestAuto_Mysql_InfluxDB.sh
shell/auto/yohoPerformanceTestAuto_Mysql_InfluxDB.sh
View file @
5fdc502
...
...
@@ -43,10 +43,10 @@ cpu_load=$(cat /proc/loadavg | awk '{print $1}')
cpu_ratio
=
$(
awk -F
','
'$1=="CPU_ALL"&&$2=="T0001"{print 100-$6}'
<
${
tmp_file_path
})
#内存使用率 %
memory_ratio
=
$(
awk -F
','
'$1=="MEM"&&$2=="T0001"{print ($3-$7)*100/$3}'
<
${
tmp_file_path
})
memory_ratio
=
$(
awk -v
n
=
$memory_ratio
'{printf("%.2f", n)}'
)
memory_ratio
=
$(
echo
$memory_ratio
|
awk -v
n
=
$memory_ratio
'{printf("%.2f", n)}'
)
#网络收发吞吐量 Mbps
net
=
$(
awk -F
','
'$1=="NET"&&$2=="T0001"{max=$4;if($6>$4) max=$6;print max*8/1024}'
<
${
tmp_file_path
})
net
=
$(
awk -v
n
=
$net
'{printf("%.2f", n)}'
)
net
=
$(
echo
$net
|
awk -v
n
=
$net
'{printf("%.2f", n)}'
)
#磁盘IO 使用率 %
disk_busy
=
$(
cat
${
tmp_file_path
}
| grep DISKBUSY,T0001 | awk -F
','
'{max=0.0;for(i=3;i<=NF;i++) if($i>max) max=$i ;print max}'
)
#使用的端口号数量
...
...
Please
register
or
login
to post a comment