Httperf

From OnnoWiki
Revision as of 11:47, 7 June 2015 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

httperf adalah aplikasi untuk mengukur kinerja server web. httperf berbicara menggunakan protokol HTTP baik HTTP/1.0 dan HTTP/ 1.1 dan menawarkan berbagai generator beban kerja. Sementara berjalan, melacak sejumlah metrik kinerja yang dirangkum dalam bentuk statistik yang dicetak pada akhir uji coba. Operasi yang paling dasar dari httperf adalah untuk menghasilkan sejumlah permintaan HTTP GET yang tetap dan untuk mengukur berapa banyak balasan (tanggapan) kembali dari server dan menilai kecepatan responds tersebut tiba.

PENTING: Untuk mendapatkan hasil yang benar, maka perlu untuk menjalankan paling banyak satu proses httperf per mesin klien. Juga, harus sedikit mungkin proses yang jalan di latar belakang baik pada mesin client dan server.


EXAMPLES

httperf --hog --server www

This command causes httperf to create a connection to host www, send a request for the root document (http://www/), receive the reply, close the connection, and then print some performance statistics.

httperf --hog --server www --num-conn 100 --ra 10 --timeout 5

Like above, except that a total of 100 connections are created and that connections are created at a fixed rate of 10 per sec‐ ond. Note that option ``--rate has been abbreviated to ``--ra.

httperf --hog --server=www --wsess=10,5,2 --rate 1 --timeout 5

Causes httperf to generate a total of 10 sessions at a rate of 1 session per second. Each session consists of 5 calls that are spaced out by 2 seconds.

httperf --hog --server=www --wsess=10,5,2 --rate=1 --timeout=5 --ssl

Like above, except that httperf contacts server www via SSL at port 443 (the default port for SSL connections).

httperf --hog --server www --wsess=10,5,2  --rate=1  --timeout=5 --ssl \
--ssl-ciphers=EXP-RC4-MD5:EXP-RC2-CBC-MD5 --ssl-no-reuse  --http-version=1.0

Like above, except that httperf will inform the server that it can only select from two cipher suites (EXP-RC4-MD5 or EXP-RC2-CBC-MD5); furthermore, httperf will use HTTP version 1.0 which requires a new TCP connection for each request. Also, SSL session ids are not reused, so the entire SSL connection establishment process (known as the SSL handshake) occurs for each connection.

Lebih Lanjut

Referensi