Test Performa Server dengan Siege di GNU/Linux

Test Performa Server dengan Siege - Sekarang saya akan sharing seputar web server. Yup, test performa server dengan Siege. Siege adalah tool untuk menguji performa server dengan cara mengirim paket dengan jumlah yang ditentukan. Hampir mirip dengan Apache Benchmark namun lebih banyak opsi yang bisa disetting di Siege.



Oke, bagi yang belum install, berikut cara install siege berikut cara install nya:

Centos
sudo yum install siege

Ubuntu
sudo apt-get install siege
Oke sekarang cara menggunakannya.
siege -c 1000 https://linuxsec.org

Contoh output:
HTTP/1.1 200   0.71 secs:    1240 bytes ==> GET  /
HTTP/1.1 200   1.73 secs:    1240 bytes ==> GET  /
HTTP/1.1 200   1.69 secs:    1240 bytes ==> GET  /
HTTP/1.1 502   0.61 secs:     173 bytes ==> GET  /
HTTP/1.1 200   1.73 secs:    1240 bytes ==> GET  /
HTTP/1.1 502   0.61 secs:     173 bytes ==> GET  /
HTTP/1.1 502   0.62 secs:     173 bytes ==> GET  /
HTTP/1.1 200   0.73 secs:    1240 bytes ==> GET  /
HTTP/1.1 502   0.62 secs:     173 bytes ==> GET  /
HTTP/1.1 200   1.71 secs:    1240 bytes ==> GET  /
HTTP/1.1 502   0.62 secs:     173 bytes ==> GET  /
HTTP/1.1 502   1.25 secs:     173 bytes ==> GET  /
HTTP/1.1 502   0.62 secs:     173 bytes ==> GET  /
HTTP/1.1 502   0.62 secs:     173 bytes ==> GET  /
HTTP/1.1 200   0.74 secs:    1240 bytes ==> GET  /
HTTP/1.1 200   1.73 secs:    1240 bytes ==> GET  /
HTTP/1.1 200   1.73 secs:    1240 bytes ==> GET  /
Dan di akhir testing, Siege akan memberikan data berupa berapa paket yang sukses dikirim dan yang tidak.
Transactions:       16860 hits
Availability:       93.77 %
Elapsed time:       29.26 secs
Data transferred:       20.11 MB
Response time:        1.09 secs
Transaction rate:      576.21 trans/sec
Throughput:        0.69 MB/sec
Concurrency:      629.35
Successful transactions:       16860
Failed transactions:        1120
Longest transaction:       14.97
Shortest transaction:        0.51

Kalian bisa mengatur User Agent, menambah informasi Header, mode benchmark dan opsi lain. Tinggal baca di halaman help
siege --help
Sekedar saran, saat melakukan testing sebaiknya server yang di test juga dimonitor agar kita tau lonjakan memory usage saat siege dijalankan dan saat sudah berhenti. Kalian bisa menggunakan htop.

Posting Komentar untuk "Test Performa Server dengan Siege di GNU/Linux"