First, install webbench. To test the accuracy, install webbench on another Linux server, because webbench consumes CPU and memory resources during stress testing. Otherwise, it is very likely that the server will be suspended. So I switched to the centos System for webbench testing.
Compile and install:
Wget http://home.tiscali.cz /~ Cz210552/distfiles/webbench-1.5.tar.gz
Tar zxvf webbench-1.5.tar.gz
CD webbench-1.5
Yum install ctags-y
Mkdir/usr/local/man/Man1-P
Make & make install
WebbenchInstallation Error
Ctags Not Installed
If ctags make Is Not InstalledThe following error occurs during compilation:/bin/sh: ctags: Command not found.
In this case, you must install ctags.La
Create/usr/local/man/Man1File to solve:
Mkdir-M 644-P/usr/local/man/Man1
Wget
Http://prdownloads.sourceforge.net/ctags/ctags-5.8-1.i386.rpm-P
/Usr/local/src
Rpm-uvh/usr/local/src/CTAG *
Test statement:
Webbench-C 500-T 30 http: // 192.168.88.177/test. jsp
Parameter description:-C indicates the number of concurrencies, and-T indicates the time (seconds)
Test results:
Huang Hai thought of the following methods:
1,Perform unit tests. After each programmer completes a functionWrite a piece of code to save the possible parameters into an array or list.At the beginning, when a request comes, a random action is taken.Run, so that the implementation is similar to LoadRunner.
2,By moving stress tests forward, developers can learn the pressure of their programs at any time to facilitate timely optimization and adjustment.
3,Management personnel can check the stress test results of developers at any time, and penalize developers who have not completed the stress test.
Install htop on centos
Top is a common monitoring program in Linux. htop is equivalent to its enhanced version. It displays different parameters in color and supports mouse operations.
Install supporting components:
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gztar xvfz ncurses-5.9.tar.gzcd ncurses-5.9./configuremakemake install
Install htop:
wget http://sourceforge.net/projects/htop/files/htop/0.9/htop-0.9.tar.gztar zxvf htop-0.9.tar.gzcd htop-0.9./configuremakemake install