2011-12-14

LINUX - streaming server 壓測的問題紀錄 (續)

前篇, 碰到的主要問題在於 jmeter 去 request nginx(steaming) 時,

取得的檔案 size 不完整(見 /home/logs/nginx/access.log)

後來直接在 ubuntu 下以 curl 的方式是可以抓到完整的檔案的
# -e 代表 referer
curl 'http://a.mms.vlog.xuite.net/video/choubee/NldxQ0pyLTI3MjQyMzgubXA0?k=test113' -e 'trully.org' -o /home/trully/Downloads/curl/test113.mp4
但這樣做要自己模擬多 thread, 加上在我的 local 無法指定特定的 server, 實在太麻煩了

於是 chingwei 幫我問了姑狗, 發現用 webbench 即可達到我的需求
(加上 iftop 監看 server 連線狀態更清楚)
# -c 代表連線數
# -t 代表持續時間(秒)
webbench -c 3000 -t 30  http://www.trully.com

cf :
ubuntu - 使用 curl
http://www.sroan.com/1788.html
http://blog.shian.tw/iftop.html


沒有留言:

張貼留言