12. Setting up a standalone running environment -- A webbench stress test under centos6.4

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.