Stress testing using the Web application Stress Tool

Source: Internet
Author: User
Tags jboss

1. Start the Web application Stress Tool on the test client machine and select the "Record" button in the "Create New Script" dialog box.



2. In the first step of the "Record" parameter setting, all checkboxes are not selected


Click "Finish" in the second step, a few seconds will pop up an IE window, in this window to access the test Data Generation page (Http://192.168.1.4:8086/Apply/test), click on 5 test Case connections, and then return to the Web Application Stress Tool, stop record;

3, delete some useless records (for example:/apply/test/index.htm), leaving only the five records as shown:



Enter the server's IP in the server input box, and the port number is not entered. Change the name of the script, such as Joinwork Test instead;

4. The probability of 5 test cases being accessed in the actual usage environment is different. We can define a few page group in page groups to simulate this kind of access distribution:



In the We define 5 group, which correspond: query can start the process list, start the process, query the personal to-do task, display the task execution form and perform the task, the ratio of the number of clicks is: 1:1: 5:5: 4.

Go back to the script Main page and change the group of 5 Records to the page group you just created. This causes the click to be generated at the rate defined by group at the time the script is run;

5. The following settings test the number of concurrent users and the length of the test.

To the Settings page, set the number of concurrent users through stress level (threads) and stress mulitiplters, and test RUn time to set the duration of the tests. Because we want to do a performance stress test, do not set the delay time (Request delay). You can set a warm up run time before the actual test time, the data will not be recorded in the final report, the other settings can keep the default value unchanged;



Test run

When everything is ready, go back to the Script Main page and click on the "Run Script" button on the toolbar to start the test;



Test Report view

After the test run is finished, we can view the test report by clicking the "Reports" button on the tool bar;



The more important data in the test report is the number of requests processed per second (requests per Second) and the average response time per page.



The data of the above two graphs is the author directly uses the Joinwork development version of the default configuration (JBoss 3.2.2 and JBoss comes with the database hsql), a clock 1.5M Hz (Pentium Mobile), Memory 725M notebook as a server, a clock 2.0M HZ desktop as a client , test the data.

The data shows that in 100 concurrent users, 89.26 requests can be processed per second, with the longest response time being task execution and an average response time of 1.66 seconds.

The WEB application Stress tool can also capture server-side data such as server CPU utilization, and can view Help files if you are interested.

Stress testing using the Web application Stress Tool

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.