2012-03-14
2012-03-13
使用 Apache Bench 來測試 Web Server
測試環境:Ubuntu 11.04, cherokee 1.2.101
1. Stop Web Server.
sudo /etc/init.d/cherokee stop
2. Install apache2-utils.
sudo apt-get install apache2-utils
3. Start Web Server
sudo /etc/init.d/cherokee start
4. 開個終端機
ab -n400 -c400 http://server/
1. Stop Web Server.
sudo /etc/init.d/cherokee stop
2. Install apache2-utils.
sudo apt-get install apache2-utils
3. Start Web Server
sudo /etc/init.d/cherokee start
4. 開個終端機
ab -n400 -c400 http://server/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.1.11 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 400 requests
Server Software: Cherokee/1.2.101
Server Hostname: 192.168.1.11
Server Port: 80
Document Path: /drupal/
Document Length: 7930 bytes
Concurrency Level: 400
Time taken for tests: 35.510 seconds
Complete requests: 400
Failed requests: 177
(Connect: 0, Receive: 0, Length: 177, Exceptions: 0)
Write errors: 0
Non-2xx responses: 177
Total transferred: 1898081 bytes
HTML transferred: 1795825 bytes
Requests per second: 11.26 [#/sec] (mean)
Time per request: 35510.233 [ms] (mean)
Time per request: 88.776 [ms] (mean, across all concurrent requests)
Transfer rate: 52.20 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 85 121 19.8 119 159
Processing: 3565 19163 7843.7 15815 35318
Waiting: 3265 18942 7782.1 15803 35299
Total: 3720 19285 7842.8 15914 35431
Percentage of the requests served within a certain time (ms)
50% 15914
66% 19418
75% 25004
80% 27121
90% 33780
95% 34568
98% 35323
99% 35392
100% 35431 (longest request)
2012-03-11
用 Bad Behavivor 阻擋網路蟑螂
我經常在網路上的論壇經常會碰到一些網路蟑螂(spambots),經常到處製造許多的垃圾訊息,讓人很討厭又頭疼!!
今日無意間看到有個部落格竟然使用 Bad Behavivor 這個東西,並說「阻擋了 286 個過去 7 天試圖闖關的垃圾迴響與引用。」好奇之下,造訪了這個網站,查看一番。OSS的,太棒了,且可根據您的網站 GPL v2, v3 也相對提供符合的版本,也對多種不同的 blog, CMS ...提供了配合的安裝版本,當然 Drupal版本 也是其中之一。
今日無意間看到有個部落格竟然使用 Bad Behavivor 這個東西,並說「阻擋了 286 個過去 7 天試圖闖關的垃圾迴響與引用。」好奇之下,造訪了這個網站,查看一番。OSS的,太棒了,且可根據您的網站 GPL v2, v3 也相對提供符合的版本,也對多種不同的 blog, CMS ...提供了配合的安裝版本,當然 Drupal版本 也是其中之一。
訂閱:
文章 (Atom)