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:
-
role 1 : Install lamp: linux Server (centos), apache and php
-
role 2 : Installation mysql and ecshop (or systems similar to b/s structure)
-
role 3 : Install sysstat and use sysstat view linux server cimn (cpu+io+memory+network) performance
-
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)   ; ICMP &NBSP;ICMP Stream (v4) &NB Sp EICMP ICMP Stream (v4) (Error) TCP TCP stream (v4) ETCP &NBSP;TCP stream (v4) (Error)   ; 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   ; -y tty device status
Software test third time on-machine--jmeter pressure test