Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music
All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => Loadtest gatling.io knowledge => Topic started by: golfreeze on กุมภาพันธ์ 22, 2018, 11:07:43 AM
-
https://github.com/JoeDog/siege
https://drupalize.me/blog/201507/load-testing-your-site-siege
###Installation on linux
wget http://download.joedog.org/siege/siege-latest.tar.gz
cd siege-latest
#Configure and build it!
./configure
make
make install
siege http://drupal7.local
-
ถ้าเราต้องการเชคโหลดเทส ดู simulate 100 user เข้ามาในเว็บ แล้วให้ delay 3 วินาที ระหว่างแต่ละ request
#siege -d3 -c100 https://your_server.com/api/
ในการโหลดเป็น Multiple URLS เราสามารถเขียน url ใส่ในไฟล์ site.txt แล้วรันด้านล่างได้ครับ
#siege -c50 -d10 -i -f site.txt