In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Pressure test tool-webbench
brief description of
Occasionally see a performance test tool webbench, look at the very good record of the installation process, in the future project online process can press some pages of concurrency, have a general understanding of project performance.
principle
Webbench first forks out multiple child processes, each of which loops through web access tests. The child process tells the parent process the results of the visit through pipe, and the parent process makes the final statistical results.
installation process
[root@node1 ~]# yum install -y gcc ctags
[root@node1 ~]# wget http://www.ha97.com/code/webbench-1.5.tar.gz
[root@node1 ~]# tar -xvf webbench-1.5.tar.gz
[root@node1 data]# cd webbench-1.5
[root@node1 webbench-1.5]# make && make install ##This step may encounter the following error, just manually create the directory
cc -Wall -ggdb -W -O -c -o webbench.o webbench.c
webbench.c: In function arm_handler
webbench.c:77: warning: unused parameter honor
cc -Wall -ggdb -W -O -o webbench webbench.o
ctags *.c
install -s webbench /usr/local/bin
install -m 644 webbench.1 /usr/local/man/man1
install: cannot create regular file /usr/local/man/man1': No such file or directorymake: *** [install] Error 1[root@node1 webbench-1.5]# mkdir /usr/local/man[root@node1 webbench-1.5]# mkdir /usr/local/man/man1[root@node1 webbench-1.5]# make &&make installmake: Nothing to be done forall'.
install -s webbench /usr/local/bin
install -m 644 webbench.1 /usr/local/man/man1
install -d /usr/local/share/doc/webbench
install -m 644 debian/copyright /usr/local/share/doc/webbench
install -m 644 debian/changelog /usr/local/share/doc/webbench
Instructions for use viewed via webbench --help command
[root@node1 data]# webbench --help
webbench [option]... URL
-f|--force Don't wait for reply from server.
-r|--reload Send reload request - Pragma: no-cache.
-t|--time Run benchmark for seconds. Default 30.
-p|--proxy Use proxy server for request.
-c|--clients Run HTTP clients at once. Default one.
-9|--http09 Use HTTP/0.9 style requests.
-1|--http10 Use HTTP/1.0 protocol.
-2|--http11 Use HTTP/1.1 protocol.
--get Use GET request method.
--head Use HEAD request method.
--options Use OPTIONS request method.
--trace Use TRACE request method.
-?|- h|--help This information.
-V|--version Display program version.
use
Not professional test, again use this tool to simulate a project pressure test, using two parameters c concurrent client number, t run time, we will test www.baidu.com to see the test report content
Execute command: webbench -c 10 http://www.baidu.com
Command is to use 10 clients concurrent Baidu website 30 seconds, but in the execution of the command error: Invalid URL syntax - hostname don't end with '/'. The solution is to add a "/" to the url.
Implementation result feedback content:
[root@node1 data]# webbench -c 10 -t 30 http://www.baidu.com/
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://www.baidu.com/
10 clients, running 30 sec.
Speed=2254 pages/min, 4188293 bytes/sec.
Requests: 1110 susceed, 17 failed.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.