Difference between revisions of "OpenWebLoad"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
apt-get install openload | apt-get install openload | ||
− | == | + | ==Menjalankan== |
− | + | openload [options] http://testapp.site.com 10 | |
− | |||
− | + | Ada 2 parameter: | |
− | + | * URL dari web yang akan di test | |
+ | * Jumlah client yang secara simultan akan mengakses (default 5). | ||
− | + | Contoh perintah | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | openload http://192.168.0.80 10 | |
− | + | Hasil | |
− | + | URL: http://192.168.0.80:80/ | |
+ | Clients: 10 | ||
+ | MaTps 353.00, Tps 353.00, Resp Time 0.025, Err 0%, Count 353 | ||
+ | MaTps 353.33, Tps 356.29, Resp Time 0.029, Err 0%, Count 710 | ||
+ | MaTps 353.48, Tps 354.87, Resp Time 0.029, Err 0%, Count 1067 | ||
+ | MaTps 353.20, Tps 350.65, Resp Time 0.028, Err 0%, Count 1418 | ||
+ | MaTps 353.18, Tps 353.00, Resp Time 0.028, Err 0%, Count 1771 | ||
+ | MaTps 353.66, Tps 358.00, Resp Time 0.029, Err 0%, Count 2129 | ||
+ | MaTps 353.30, Tps 350.00, Resp Time 0.028, Err 0%, Count 2479 | ||
+ | MaTps 353.96, Tps 359.92, Resp Time 0.029, Err 0%, Count 2840 | ||
+ | MaTps 353.89, Tps 353.29, Resp Time 0.027, Err 0%, Count 3194 | ||
+ | MaTps 353.90, Tps 354.00, Resp Time 0.027, Err 0%, Count 3548 | ||
+ | MaTps 354.24, Tps 357.29, Resp Time 0.030, Err 0%, Count 3906 | ||
+ | MaTps 353.32, Tps 345.00, Resp Time 0.029, Err 0%, Count 4251 | ||
+ | MaTps 353.35, Tps 353.65, Resp Time 0.027, Err 0%, Count 4605 | ||
+ | MaTps 353.31, Tps 353.00, Resp Time 0.028, Err 0%, Count 4958 | ||
+ | |||
+ | Total TPS: 336.09 | ||
+ | Avg. Response time: 0.028 sec. | ||
+ | Max Response time: 0.534 sec | ||
+ | Total Requests: 4958 | ||
+ | Total Errors: 0 | ||
− | + | Dimana | |
− | |||
− | |||
− | + | * MaTps: a 20 second moving average of TPS. | |
+ | * Tps: (Transactions Per Second) jumlah request yang berhasil di selesaikan dalam satu detik. | ||
+ | * Resp Time: rata-rata response time dalam seconds untuk detik tersebut. | ||
+ | * Err: persentase responses yang erronous, tidak dapat mengembalikan status HTTP 200 Ok. | ||
+ | * Count: jumlah request yang berhasil di selesaikant. | ||
+ | * Total TPS is the average TPS for the whole run, i.e. (Total completed requests) / (Total elapsed time). | ||
+ | * Avg. Response time: rata-rata response time dalam seconds. | ||
+ | * Max Response time: responds tima tertinggi saat run tersebut. | ||
− | + | Catatan: kita dapat menghentikan run dengan cara menekan tombol "ENTER". | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ==Contoh Transaksi Yang Bermasalah== | |
+ | |||
+ | openload http://192.168.0.80 450 | ||
− | + | hasil | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | URL: http://192.168.0.80:80/ | |
+ | Clients: 450 | ||
+ | MaTps 325.00, Tps 325.00, Resp Time 0.389, Err 3%, Count 325 | ||
+ | MaTps 325.80, Tps 333.00, Resp Time 0.771, Err 0%, Count 658 | ||
+ | MaTps 326.45, Tps 332.34, Resp Time 0.770, Err 0%, Count 992 | ||
+ | MaTps 323.32, Tps 295.11, Resp Time 0.956, Err 0%, Count 1288 | ||
+ | MaTps 326.09, Tps 351.00, Resp Time 0.959, Err 0%, Count 1639 | ||
+ | MaTps 325.65, Tps 321.68, Resp Time 1.024, Err 0%, Count 1961 | ||
+ | MaTps 326.88, Tps 337.99, Resp Time 1.062, Err 0%, Count 2300 | ||
+ | MaTps 329.72, Tps 355.29, Resp Time 1.449, Err 0%, Count 2656 | ||
+ | MaTps 332.78, Tps 360.28, Resp Time 1.091, Err 0%, Count 3017 | ||
+ | MaTps 330.57, Tps 310.69, Resp Time 0.928, Err 0%, Count 3328 | ||
+ | MaTps 328.65, Tps 311.38, Resp Time 1.088, Err 0%, Count 3640 | ||
+ | MaTps 331.65, Tps 358.64, Resp Time 0.968, Err 0%, Count 3999 | ||
+ | MaTps 331.58, Tps 331.00, Resp Time 1.109, Err 0%, Count 4330 | ||
+ | MaTps 331.99, Tps 335.66, Resp Time 1.193, Err 0%, Count 4666 | ||
+ | MaTps 331.13, Tps 323.35, Resp Time 1.177, Err 0%, Count 4990 | ||
+ | MaTps 331.02, Tps 330.02, Resp Time 1.482, Err 0%, Count 5322 | ||
+ | MaTps 333.94, Tps 360.28, Resp Time 1.743, Err 0%, Count 5683 | ||
+ | MaTps 332.52, Tps 319.68, Resp Time 1.055, Err 0%, Count 6003 | ||
+ | MaTps 334.33, Tps 350.65, Resp Time 1.323, Err 0%, Count 6354 | ||
+ | MaTps 335.36, Tps 344.66, Resp Time 1.023, Err 0%, Count 6699 | ||
+ | |||
+ | Total TPS: 327.50 | ||
+ | Avg. Response time: 1.084 sec. | ||
+ | Max Response time: 18.994 sec | ||
+ | Total Requests: 6699 | ||
+ | Total Errors: 11 | ||
==Referensi== | ==Referensi== | ||
* http://openwebload.sourceforge.net/ | * http://openwebload.sourceforge.net/ |
Latest revision as of 12:56, 7 June 2015
OpenWebLoad adalah alat untuk menguji beban aplikasi web. Ini bertujuan agar mudah digunakan dan menyediakan pengukuran kinerja yang mendekati real-time dari aplikasi yang diuji. Hal ini khususnya berguna ketika anda melakukan optimasi karena anda dapat melihat dampak perubahan yang anda lakukan sesegera mungkin.
Instalasi
apt-get install openload
Menjalankan
openload [options] http://testapp.site.com 10
Ada 2 parameter:
- URL dari web yang akan di test
- Jumlah client yang secara simultan akan mengakses (default 5).
Contoh perintah
openload http://192.168.0.80 10
Hasil
URL: http://192.168.0.80:80/ Clients: 10 MaTps 353.00, Tps 353.00, Resp Time 0.025, Err 0%, Count 353 MaTps 353.33, Tps 356.29, Resp Time 0.029, Err 0%, Count 710 MaTps 353.48, Tps 354.87, Resp Time 0.029, Err 0%, Count 1067 MaTps 353.20, Tps 350.65, Resp Time 0.028, Err 0%, Count 1418 MaTps 353.18, Tps 353.00, Resp Time 0.028, Err 0%, Count 1771 MaTps 353.66, Tps 358.00, Resp Time 0.029, Err 0%, Count 2129 MaTps 353.30, Tps 350.00, Resp Time 0.028, Err 0%, Count 2479 MaTps 353.96, Tps 359.92, Resp Time 0.029, Err 0%, Count 2840 MaTps 353.89, Tps 353.29, Resp Time 0.027, Err 0%, Count 3194 MaTps 353.90, Tps 354.00, Resp Time 0.027, Err 0%, Count 3548 MaTps 354.24, Tps 357.29, Resp Time 0.030, Err 0%, Count 3906 MaTps 353.32, Tps 345.00, Resp Time 0.029, Err 0%, Count 4251 MaTps 353.35, Tps 353.65, Resp Time 0.027, Err 0%, Count 4605 MaTps 353.31, Tps 353.00, Resp Time 0.028, Err 0%, Count 4958 Total TPS: 336.09 Avg. Response time: 0.028 sec. Max Response time: 0.534 sec Total Requests: 4958 Total Errors: 0
Dimana
- MaTps: a 20 second moving average of TPS.
- Tps: (Transactions Per Second) jumlah request yang berhasil di selesaikan dalam satu detik.
- Resp Time: rata-rata response time dalam seconds untuk detik tersebut.
- Err: persentase responses yang erronous, tidak dapat mengembalikan status HTTP 200 Ok.
- Count: jumlah request yang berhasil di selesaikant.
- Total TPS is the average TPS for the whole run, i.e. (Total completed requests) / (Total elapsed time).
- Avg. Response time: rata-rata response time dalam seconds.
- Max Response time: responds tima tertinggi saat run tersebut.
Catatan: kita dapat menghentikan run dengan cara menekan tombol "ENTER".
Contoh Transaksi Yang Bermasalah
openload http://192.168.0.80 450
hasil
URL: http://192.168.0.80:80/ Clients: 450 MaTps 325.00, Tps 325.00, Resp Time 0.389, Err 3%, Count 325 MaTps 325.80, Tps 333.00, Resp Time 0.771, Err 0%, Count 658 MaTps 326.45, Tps 332.34, Resp Time 0.770, Err 0%, Count 992 MaTps 323.32, Tps 295.11, Resp Time 0.956, Err 0%, Count 1288 MaTps 326.09, Tps 351.00, Resp Time 0.959, Err 0%, Count 1639 MaTps 325.65, Tps 321.68, Resp Time 1.024, Err 0%, Count 1961 MaTps 326.88, Tps 337.99, Resp Time 1.062, Err 0%, Count 2300 MaTps 329.72, Tps 355.29, Resp Time 1.449, Err 0%, Count 2656 MaTps 332.78, Tps 360.28, Resp Time 1.091, Err 0%, Count 3017 MaTps 330.57, Tps 310.69, Resp Time 0.928, Err 0%, Count 3328 MaTps 328.65, Tps 311.38, Resp Time 1.088, Err 0%, Count 3640 MaTps 331.65, Tps 358.64, Resp Time 0.968, Err 0%, Count 3999 MaTps 331.58, Tps 331.00, Resp Time 1.109, Err 0%, Count 4330 MaTps 331.99, Tps 335.66, Resp Time 1.193, Err 0%, Count 4666 MaTps 331.13, Tps 323.35, Resp Time 1.177, Err 0%, Count 4990 MaTps 331.02, Tps 330.02, Resp Time 1.482, Err 0%, Count 5322 MaTps 333.94, Tps 360.28, Resp Time 1.743, Err 0%, Count 5683 MaTps 332.52, Tps 319.68, Resp Time 1.055, Err 0%, Count 6003 MaTps 334.33, Tps 350.65, Resp Time 1.323, Err 0%, Count 6354 MaTps 335.36, Tps 344.66, Resp Time 1.023, Err 0%, Count 6699 Total TPS: 327.50 Avg. Response time: 1.084 sec. Max Response time: 18.994 sec Total Requests: 6699 Total Errors: 11