8000 GitHub - kurebio/mac-tsung
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kurebio/mac-tsung

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Macとtsungで手軽にHTTP負荷テスト

こちらの記事用のリポジトリです。

tsungインストール

$ brew install tsung # tsung本体
$ tsung -v
$ sudo cpan Template # Template-Toolkitのインストール
# インストール時の質問は全て[y]または[Enter]で答えれば大丈夫でした

$ which perl/usr/bin/perl以外の場合は以下も実行

$ chmod u+w /usr/local/lib/tsung/bin/tsung_stats.pl # 書込権限付与
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/local/bin/perl -w
$ chmod u-w /usr/local/lib/tsung/bin/tsung_stats.pl # 書込権限削除

負荷テスト実行

$ git clone https://github.com/kurebio/mac-tsung.git
$ vi tsung.xml # テスト先サーバなどを指定

$ tsung -f ./tsung.xml -l log start # 負荷テスト実行
Starting Tsung
Log directory is: ~/tsung/log/[YYYYMMDD-HHMM]
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed

# 最新のログを集計し、レポートをブラウザで開く 上記負荷テスト実行と繋げても良し
$ cd ./log/`ls -t log | head -n 1` && \
  /usr/local/lib/tsung/bin/tsung_stats.pl && \
  open report.html && \
  cd ../../

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0