In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
How does 1.JMeter work?
Submit the request to the server; retrieve the result returned by the request from the server.
What is the role of 2.JMeter?
JMeter can be used to test the performance of static or dynamic resources (files, Servlets, Perl scripts, java objects, databases and queries, ftp servers, or other resources). JMeter is used to simulate attaching high loads to servers, networks, or other objects to test their ability to provide services under pressure, or to analyze the overall performance of the services they provide under different load conditions. You can use the graphical interface provided by JMeter to analyze performance metrics or test the behavior of servers / scripts / objects under high load.
3. How can I see the sample scripts provided by jmeter?
In the\ JMeter\ jakarta-jmeter-2.0.3\ xdocs\ demos directory.
4. How to set the number of concurrent users?
Select the Test Plan node of the left tree in the visual interface, right-click, and select Add- > Thread Group, where the Number of Threads parameter is used to set the number of users sending the request.
What are the operating instructions for 5.JMeter?
When Jmeter is running, there is a small box the size of a radio box in the upper right corner. When running, the box is green, and after running, the box is white.
What is the purpose of 6.User Parameters?
Improve script availability
7. What does it mean that the color font http response code appears in result?
Http response code is the return value of http. The color font is more eye-catching and can make users pay attention to it quickly. For example, the green 302 indicates that in this step, the return value is taken from the native catch, not server.
8. How to calculate Ramp-up period time?
Ramp-up period refers to the total time interval, in seconds, that each request occurs. If Number of Threads is set to 5 and Ramp-up period is 10, then the interval between each request is 10 gambit 5, or 2 seconds. Ramp-up period is set to 0, which means simultaneous requests.
The difference between 9.Get and Post?
They are two different implementations of the http protocol. Get means that server takes the required parameters from Request URL. As you can see from the request in result, get can see the parameters, but post actively sends parameters to server, so you generally don't see these parameters.
10. What are the reasons that may lead to error?
A. Http errors, including non-response, result not found, data error, etc.
B. errors caused by JMeter itself.
11. Why is the Total value in the Aggregate Report result not the true sum?
JMeter defines total in the result as not exactly the sum. For convenience, its value represents the representative value of the column, such as the min value, and its total is the minimum value of the column. The following figure shows what total means in each column.
12. Does JMeter's Thread Number provide the function of concurrency among multiple different users?
No, Thread Number only refers to the number of concurrency, if we need to achieve the concurrency of multiple different users, we should use other methods, such as by creating csv files outside the jmeter.
13. If you need to simulate different users to request concurrently to different server at the same time, how to achieve it?
The method is very flexible, and we can write different server in thread in advance. Or write the fixed variable value to the csv file in advance, which can also be easily modified. Then add the file to User Parameters.
What is the meaning of DUMMY in 14.User Parameter?
When its specific content is ${_ _ CSVRead (${_ property (user.dir)} ${FILENAME}, next ())}, it is used to simulate the next line of reading the file.
15. What should be done when the test object jumps between multiple server?
When the program runs, some http and implicit functions carry additional server IP, which we can get from their return values.
16. Why is the test object a mixture of http and https?
Https is an encryption protocol, for security, generally not recommended to use http, but in some places, the use of https is too complex or difficult to implement, will use the http protocol.
What is the default port for 17.Http and https?
The default port for Apache server (Http) is 80
The default port for SSL (Https) is 443.
18. Why do some pages fail in run but do not affect the results in the end?
There are many reasons, one of which is worth mentioning is that there is no dependency between the mainstream page and it, so even if such a page goes wrong, it will not affect the normal results, but it will affect the test results and analysis results.
19. Why is there an error at the beginning of the script, and why can the later script be run?
There are settings in Thread Group, and if continue is selected, the entire thread will run until the end even if the previous script goes wrong. Selecting Stop Thread ends the current thread; and selecting Stop Test ends all thread. The recommended option is Stop Thread.
20. In Regular expression_r Extractor, you will see that the value of Template is $1 $. What does this value mean?
$1$ refers to the value in the first (). If you have more than one Regular expression_r value, you can avoid unnecessary trouble with this method.
What is the meaning of (. *) in 21.Regular expression_r?
That's a regular expression (regular expression_r). .s Equivalent to the'?'in the sql language, it means dispensable.' * 'indicates 0 or more.' () 'indicates that a value is required. (. *) represents a string of any length.
twenty-two。 What should I pay attention to when reading Regular expression_r?
Be sure to ensure the absolute uniqueness of the value you take.
23. How can I determine what situations require the addition of Regular expression_r Extractor?
Check the Send Parameters in Http Request, and if there is a parameter that is not given in its previous page, look for it in the original file and add Regular expression_r Extractor to the http request of its previous page.
24. What does it mean that an empty http request sometimes appears in an automatically fetched script?
It's because there's something wrong with getting the script, and it's because of the script tool. This kind of error is not involved in running in run.
25. Why is there a situation where rate is NCMA in the running result?
It may be due to a problem with JMeter itself, and running it again will get the correct results.
twenty-six。 What are the common http error codes?
400Mutual-unable to resolve this request.
403Mutual-access prohibited: access denied.
404Mutual-No files or directories were found.
405Murray-the HTTP action used to access the page is not allowed.
410 Mutual Mutual-the file has been deleted.
500Mutual Mutual-server internal error.
501Mutual-the configuration specified by the header value is not executed.
The 502----Web server received an invalid response when acting as a gateway or proxy server.
What is Send Parameters in 27.Http request?
It refers to the values written in code and the values obtained in custom variables, which are the parameters needed to run the page.
Is 28.Parameters constantly passed on the page?
Right. Parameters are re-generated and passed all the way to the desired page on the page. So we can capture the dynamic parameter when it is generated or on the previous page of the desired page. (but there may be an error, so it's best to get it on the generated page)
twenty-nine。 When using JMeter testing, is it a complete simulation of user action? Is the result exactly the same as the user operation?
Right. JMeter completely simulates user operations, so all operation records are written to DB. When running fails, error data may be generated, which depends on whether the script check is rigorous or not, otherwise the error data will also enter DB, causing a lot of trouble for the program to run.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.