Software test third time on-machine--jmeter pressure test

Source: Internet
Author: User

Overall goal:

Install the virtual machine and install a LAMP (linux+apache+mysql+php) to be tested system, recommended ECShop (http://www.ecshop.com), based on this JMeter the stress test, and after testing the JMeter test report, and according to Sysstat to derive the Linux server cimn (CPU,IO,memory and Network) performance.

Division of the players:

    1. role 1 : Install lamp: linux Server (centos), apache and php

    2. role 2 : Installation mysql and ecshop (or systems similar to b/s structure)

    3. role 3 : Install sysstat and use sysstat view linux server cimn (cpu+io+memory+network) performance

    4. role 4 : Using jmeter for 5*10, 50*20 pressure test and draw jmeter Aggregate report, while using sysstat Server information statistics

Experiment related content:

The experiment was achieved by installing the Ubuntu system on one of the people's machines, then configuring Apache2, PHP5, MySQL, Ecshop and Sysstat as servers on the machine, and JMeter on the other machine, By recording the script and then accessing the server-side Ecshop Web site, you can view the server performance by Sysstat on the server side. Finally, the client machine and server machine are reported separately.

1) Linux bottom top command result

2) access to the b/S system

3) Jmeter 's Testplan expansion

4) BeanShell Code

5) Aggregate report Result after running the Jmeter test

5*10 For example:

6) server performance after running the JMeter test

We can use the 'SAR' command to get a report of the overall system performance. This helps us locate bottlenecks in system performance and helps us find solutions to these annoying performance problems.

The Linux kernel maintains a number of internal counters that contain information such as all requests and their completion times and number of I/O blocks, and the SAR command calculates the requested utilization and proportions from all of this information in order to find the bottleneck.

The primary purpose of the SAR command is to generate reports for all activities during a certain period of time

Introduction to SAR commands  sar-h  usage: SAR [options] [< time interval > [< times >]]  main options and reports:        -B     &NBSP;I/O and transfer rate information status         --      page status        & nbsp -D       block device status         -I {< interrupt > | SUM | All | Xall}                 Interrupt information status         -m   &nbs P   Power Management information status         -n {< keywords > [,...] | All}                 Web statistics              & nbsp   keywords can be:                 DEV     network card                  Edev     network card (Error)                  NFS     NFS Client                  NFSD   &NBSP;NFS Server                  SOCK    sockets (socket) &N Bsp       (v4)                  IP     &NBSP;IP flow   ( V4)                  EIP     IP streaming   (v4) (Error)    &nbsp ;             ICMP   &NBSP;ICMP Stream (v4)              &NB Sp   EICMP   ICMP Stream (v4) (Error)                  TCP     TCP stream   (v4)                  ETCP   &NBSP;TCP stream   (v4) (Error)  &nbsp ;               UDP     UDP streaming   (v4)          &NBSP ;       SOCK6   Sockets (socket)         (V6)            &N Bsp &nbsP   IP6     IP streaming   (V6)                  EIP6    i P Stream   (V6) (error)                  ICMP6   ICMP Stream (V6)    &NB Sp             EICMP6  icmp Stream (V6) (error)              &NB Sp   UDP6   &NBSP;UDP flow   (V6)         -Q       Queue length and average load    &N Bsp    -R       memory utilization         -R       memory status         -s       swap space utilization         -u [all]                 CPU utilization         -v      kernel table status    & nbsp     W       Task creation and system conversion statistics         -W       Exchange information  &nbsp ;     -y      tty device status  

Software test third time on-machine--jmeter pressure test

Related Article

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.