Introduction
Http_load is a performance measurement tool based on Linux and UNIX platform.
It runs in parallel multiplexing to test the throughput and load of Web servers, and to test the performance of Web pages
But unlike most stress testing tools, it can run in a single process, typically not killing clients
You can also test site requests for HTTPS classes
Summarize features and weaknesses
Characteristics:
Simple, easy-to-start based on command line
Compact and lightweight, after decompression since less than 100KB
This tool is open source, free of charge
Disadvantages:
Performance tests for Web pages only, not for access to the database
Limited test results analysis
Platform-dependent Linux (no windows)
In addition to the "Http_load" Web stress test tool, there are more powerful webbench, AB, Siege and other web testing tools
Download Http_load
Http_load Home Links: http://www.acme.com/software/http_load/
Go to Http_load home page and click Fetch the software. After the download is complete, upload to Linux using the Share tool
Download directly using the Linux Bash command
1 [[Email protected] ~]# CD/USR/LOCAL/SRC2 [[email protected] src]# wget http://www.acme.com/software/http_load/http_ Load-14aug2014.tar.gz
installation
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "style=" margin:0px;padding:0px ; border:none; "/>
1 [[email protected] src]# tar zxvf http_load-14aug2014.tar.gz //unzip the current file 2 [[email protected] src]# cd http_ load-14aug2014 //into the unpacked directory 3 [[email protected] http_load-14aug2014]# make //Execute make, after making, generates a Http_load binary file in the current directory. 4 [[email protected] http_load-14aug2014]# ll 5 total 124 6 -r--r--r--. 1 1544 80 97 Jul 15 2001 FILES 7 - rwxr-xr-x. 1 root root 24400 aug 22 10:49 http_load 8 - R--r--r--. 1 1544 80 5414 May 20 2005 http_load.1 9 - R--r--r--. 1 1544 80 47394 aug 14 2014 http_load.c10 -rw-r--r--. 1 1544 80 1682 aug 11 2014 makefile11 -r-xr-xr-x. 1 1544 80 1178 sep 13 2000 make_test_files12 -r--r--r--. 1 1544 80 2397 Aug 2 2014 port.h13 -r--r--r--. 1 1544 80 1035 Mar 12 2006 readme14 -r--r--r--. 1 1544 80 7362 Jul 9 2014 timers.c15 - R--r--r--. 1 1544 80 3832 Jul 9 2014 timers.h16 -rw-r--r--. 1 root root 4760 aug 22 10:49 timers.o17 -r--r--r--. 1 1544 80 163 aug 13 2014 version.h
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "style=" margin:0px;padding:0px ; border:none; "/>
How to use Http_load
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "style=" margin:0px;padding:0px ; border:none; "/>
1 [[email protected] http_load-14aug2014]# http_load --help2 usage: http_load [-checksum] [-throttle] [-proxy host:port] [-verbose] [-timeout secs] [-sip sip_file]3 -parallel n | -rate n [-jitter]4 -fetches N | -seconds N5 url_file6 one start specifier, either - parallel or -rate, is required.7 one end specifier, either - Fetches or -seconds, is required.
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "style=" margin:0px;padding:0px ; border:none; "/>
Main parameter Description:
-parallel Shorthand-P: means the number of concurrent user processes
-rate Shorthand-r: meaning the frequency of visits per second
-fetches abbreviated-F: Meaning total number of accesses
-seconds shorthand-S: meaning Total access time
As long as you use the Http_load command,-parallel or-rate must fill in a
As long as you use the Http_load command,-fetche or-seconds must fill in a
Url_file represents your URL file path, url file is a text file, which fills in the URL you need to stress test, can be one can also be multiple
1 HTTP://WWW.CNBLOGS.COM/VFORBOX/P/4740517.HTML2 HTTP://WWW.CNBLOGS.COM/VFORBOX/P/4754618.HTML3/http Www.cnblogs.com/vforbox/p/4754405.html
Sample Analysis
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "style=" margin:0px;padding:0px ; border:none; "/>
1 [[email protected] http_load-14aug2014]# ./http_load -p 30 -s 60 url.txt //indicates that a test with a duration of 60 seconds is performed and the number of user processes is 302 1044 fetches, 30 max parallel, 1.88674e+07 bytes, in 60 seconds3 18072.2 mean bytes/ Connection4 17.4 fetches/sec, 314457 bytes/sec5 msecs/connect: 66.3438 mean , 1066.13 max, 45.677 min6 msecs/first-response: 231.517 mean, 9210.48 max, 69.683 min7 http response codes:8 code 200 -- 1044
650) this.width=650; "src=" Http://common.cnblogs.com/images/copycode.gif "alt=" Copy Code "style=" margin:0px;padding:0px ; border:none; "/>
1044 requests, max concurrent Number 30, total transmitted data is 188674000 bytes, run time is 60 seconds, Focus: Total requests, maximum number of concurrent processes
Average number of data transferred per connection, equal to 188674000bytes/1044 requests = 180722
The number of requests per second to respond is 18072.2, the amount of data passed per second is ..., concerns: The number of requests per second (corresponding to the number of users per second in the LoadRunner)
The average response time for each connection is 66.3438msecs, maximum response time 1066.13 msecs, minimum response time 15.677 msecs, Focus: Average response time per connection (corresponds to response time in quicktestprofessional, per-connection response user times)
... Pending additions
Represents the HTML status code that opens the response page, 200 indicates a successful response, or if the 403 has too many types, it may be important to note if the system is experiencing a bottleneck
1 [[Email protected] http_load-14aug2014]# http_load-parallel 20-s url.txt//simultaneous use of 20 user processes, random access to the list of URLs in Url.txt, a total of Ask 10 seconds 2 [[email protected] http_load-14aug2014]# http_load-rate 60-f url.txt//Request 60 times per second, total request 3,000 stops
Original: http://www.cnblogs.com/vforbox/p/4754618.html
This article is from the "Half City" blog, please be sure to keep this source http://vabc1314.blog.51cto.com/2164199/1763719
Web Stress test Tool Http_load