[Software Test Basics 3] Pressure test based on Jemter

Source: Internet
Author: User

A Overall goal

Install lamp to test system, recommend Ecshop, based on this jmeter pressure test, and after testing to obtain JMeter test report, and according to Sysstat to derive the Linux server CIMN (cpu,io,memory and network) performance.

Two Team member division (need to add ... )

Three Lab Environment:

The experimental platform for linux ubuntu os | Firefox browser

Four Experimental steps:

1. Configuration and installation of lamp test system

(1) View/Modify host IP

If you are testing on this machine, it is best to set the host IP to 127.0.0.1

[Email protected]:~$ cat/etc/hosts//View host IP

127.0.0.1 localhost//eject as Left

(2) Install the components manually using the APT command

sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server

(3) Visit the Welcome page

If the above configuration is correct, enter localhost/or 127.0.0.1 in the browser will pop up index.php welcome page

Some are because dependencies are installed automatically, but for insurance, so more dozen. When you start the installation sudo will ask you for the password (only possible), which is the system administrator's password. During installation//mysql requires that the account has a password, which is the account and password that does not matter to the operating system.

2. Installation and configuration of the Ecshop

(1) Download and unzip the terminal directly (you can also go to Ecshop's official website to view the latest version of the download)

shell> wget Http://download.ecshop.com/2.7.2/ECShop_V2.7.2_UTF8_Release0604.zip

Shell> Unzip Ecshop_v2.7.2_utf8_release0604.zip

shell> MV Ecshop_v2.7.2_utf8_release0604.zip/ecshop

(2) Mount Ecshop to local server

The downloaded Ecshop folder has: Docs, upgrade, upload three folders.
Docs:ecshop Installation Instructions (install.html), Ecshop Introduction (Reademe.txt), rewrite instructions (URLRewrite.txt) and other files.
Upgrade: Upgrade package, if you want to upgrade this directory to the site and directory to perform the upgrade.
Upload: This directory is the installer file for the Ecshop system

The default site root directory for Apache is/var/www/html, so copy the upload folder under Ecshop to/var/www/html.

* Remember to also modify the file permissions under the Upload folder: Chmod-r 777 upload///var/www/html to open terminal input.

Then enter Localhost/upload will be able to pop up the Ecshop installation interface, follow the prompts step by step installation, this process needs to enter your Ecshop account name and password to complete the installation.

(3) Correction of error bug

In Ecshop, some of the code only supports the following versions of php5.3, for PHP 5.3 and above will be partially garbled, so you need to modify some of the code in the source program

such as: 300 in line return Preg_replace ("/{([^\}\{\n]*)}/e", "\ $this->select (' \\1 ');", $source);

Should be changed to Place_callback ("/{([^\}\{\n]*)}/", function ($r) {return $this->select ($r [1]);}, $source);

There are several places need to be modified, the specific situation please Baidu itself.

3. Installation and use of Sysstat

(1) Download and install Sysstat

In Terminal input:

wget http://perso.orange.fr/sebastien.godard/sysstat-10.0.5.tar.gz

#tar ZXVF sysstat-10.0.5.tar.gz
#cd sysstat-10.0.5
#./configure
#make
#make Install

(2) Sysstat common commands

Sar

Iostat

Sa1

Sa2

Sadf

Mpstat

Sadc

Sysstat

* Example: SAR 2 5//Every 2 seconds, display 5 times, CPU usage

Sar-r 2 5//every 2 seconds, display 5 times, Memory usage

Sar-n DEV 2 5//Every 2 seconds, display 5 times, network throughput usage

4. Use JMeter for stress testing

[Software Test Basics 3] Pressure test based on Jemter

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.