"Go" jmeter application evaluation

Source: Internet
Author: User

JMeter Application Assessment

Release time: 2008-9-03-16:17 Author: unknown Source: Network reprint

Font: Small medium size | Previous post Next | Print | I want to contribute | Recommended Tags: performance test Tools Jmeter

  Review:

In the client program, compared to LR,JMeter has only one main program, script design, scene design, operation monitoring, report results are all together, there is no independent debugger, so the script is actually with the scene is integrated;

Conceptually, JMeter's test plan can correspond to the test scenario for LR, and the thread group can test the LR, unlike LR, where the JMeter thread group can set both the number of concurrent users and the runtime of each. The JMeter uses a variety of samplers as the generator of the request, such as the "HTTP request" sampler that we will often use, and can correspond to the request function "Web_url" (Get) "Web_submit_data" (post) of LR, using a logical controller to implement "if" Swith "" For each "while" to implement the logical syntax, the timer can be implemented think time, the throughput in the report corresponding to the tps,kb/sec in the LR corresponding to the throughput in LR, this can be easily confused.

Structurally, JMeter uses a variety of components to compose the script, and the code is a tree-shaped structure (. jmx script in XML format).

Functionally, JMeter does not have a separate debugger, it must be run for script debugging, there is no target scene, but from the user manual's description, it should be possible to achieve the target scene through the component combination, and there is no statistical graphic representation of the number of transactions for the response time. The resource monitoring module is implemented only for Tomcat (5 or more), parsing Tomcat's status return XML, without Linux resource monitoring.

  Scripting Features:

Using Proxy server to intercept protocol package, script as XML, parse execution, no separate debugger. The proxy server can generate an "HTTP request" Sampler script and a timer.

The JMeter script consists of various jmeter elements. These components are: samplers, configuration components, timers, logic controllers, pre-processors, post processors, assertions, reports.

Sampler: A component that generates pressure, such as an HTTP request, FTP request, etc.

Configure components: Related to the configuration in the script, such as user variables, cookies settings, HTTP header settings, etc.

Timer: Generate delay (think time)

Logic controller: Logical control of code, such as if condition judgment, for loop, etc.

Pre-processor: processing before the sampler operation, such as user parameters, URL rewrite, etc.

Post Processor: Processing after the operation of the sampler, such as extracting the response information (associated data), etc.

Assertion: Check point, support regular

Report: Results show, such as response data, server monitoring data, etc.

Parametric files: Two read--csv Data Set config components and functions:

The CSV Data set config component provides a rich set of parameter settings: encoding, delimiter, recycle, and share mode; Here's a note: When the Allow quote Data option is selected as "true", the processing of full-width characters is garbled. The "sequential" and "unique" in LR can be realized by setting the sharing mode, and the corresponding options are: "Sequential" with "current thread"; "unique" with "Current thread group" (within the current thread group) or "all treads" (in all thread groups).

"stringFromFile" and "Csvread" functions can also be implemented to read parameterized files, "stringFromFile" in a way similar to "Unique", and "Csvread" is very special, is that each thread only reads a row as a parameter, no matter how many times the loop, Each thread reads sequentially.

Other parameterization, function implementations:

1. Use the thread name as the parameter: "Threadnum" function, return the format "thread group name + space + Thread group number + horizontal line + thread number";

2. Use machine name as parameter: "MachineName" function;

3. Use the time as a parameter: "Times" function;

4. Use random numbers as parameters: "Random" function

Checkpoint: JMeter provides a rich variety of assertions that support multiple matching rules for regular expressions.

Pressure-generating components are samplers, the most common of which is "HTTP request". The algorithm of conditional judgment and loop can be realized by using logic controller element.

In addition, JMeter provides a post-processor element to establish an association, commonly used is the "Regular expression Extractor" component, extract the response returned by the data to produce associated data, for subsequent processing or for the subsequent request.

  Scene Settings:

No target scene

A thread group can be understood as a single script in an LR controller, where multiple thread groups are multiple scripts, and you can control which thread groups are executed by disabling/enabling actions.

You can set a gradual increase in pressure, or you can set a one-time pressurization.

Set the collection point: with "Synchronizing timer" This timer, you can set the number of concurrent users to assemble together.

Monitoring resources: Use "monitor results" to monitor, but only Tomcat (more than 5) is currently supported, principle: This function is implemented by parsing the XML returned by the management status of Tomcat, and the result of monitoring is load, memory, thread.

Different business scenarios can be simulated with logical controllers and different configuration originals

"Go" jmeter application evaluation

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.