Siege is an http load testing and benchmarking utility. It was designed to let web developers measure their code under duress, to see how it will stand up to load on the internet. Siege supports basic authentication, cookies, HTTP, HTTPS and FTP protocols. It lets its user hit a server with a configurable number of simulated clients. Those clients place the server “under siege.”
说了一堆,为啥不用 ab 或 flood 呢? 因为那俩玩意我都没编译成功 https,这个搞定了。
编译安装
wget -c http://download.joedog.org/siege/siege-3.1.4.tar.gz tar zxvf siege-3.1.4.tar.gz cd siege-3.1.4 ./configure --prefix=/usr/local/siege --with-ssl=/usr/include/openssl/ make && make install
LOG FILE:/usr/local/siege/var/siege.log You can disable this log file notification by editing /root/.siege/siege.conf and changing 'show-logfile' to false.