2010-08-13から1日間の記事一覧
ApacheとかNginxとかで、簡易的にスループットを知りたいときによく使うawkスクリプト。 tail -f /var/log/httpd/access_log | awk 'BEGIN{N=10000; p=systime()} {n++; t=systime(); if(n % N == 0) {printf "%s | %s\n", strftime("%X"), N / (t - p); p =…
あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ…