Software: Apache. PHP/5.6.40 uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24 uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) Safe-mode: OFF (not secure) /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/msgpack-1.2.9/bench/ drwxrwxr-x |
Viewing file: Select action/file-type: #!/bin/sh # prerequisites # $ sudo apt-get install sysstat # $ rbenv shell 2.2.1 (or jruby-x.x.x or ...) # $ rake install # 60 * 600 : 60*60 * 5[threads] * 2[bench] ruby -v echo "pack log long" viiite report --regroup bench,threads bench/pack_log_long.rb & sar -o pack_log_long.sar -r 60 600 > /dev/null 2>&1 & declare -i i=0 while [ $i -lt 600 ]; do ps auxww | grep ruby | grep -v grep | awk '{print $5,$6;}' >> pack_log_long.mem.txt i=i+1 sleep 60 done sleep 120 # cool down echo "unpack log long" viiite report --regroup bench,threads bench/unpack_log_long.rb & sar -o unpack_log_long.sar -r 60 600 > /dev/null 2>&1 & i=0 while [ $i -lt 600 ]; do ps auxww | grep ruby | grep -v grep | awk '{print $5,$6;}' >> pack_log_long.mem.txt i=i+1 sleep 60 done |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.1658 ]-- |