Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the interview questions and answers for the server performance test

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of "what are the interview questions and answers to the server performance test". The editor shows you the operation process through an actual case, and the operation method is simple, fast and practical. I hope this article "what are the interview questions and answers to the server performance test" can help you solve the problem.

1. How to identify the bottleneck of the system?

According to the analysis of TPS index, TPS is the number of transactions processed by the system per unit time. At present, as the number of users increases, the number of transactions that the system can handle per second will also increase.

2. How to find the problems related to the database?

① determines whether the transaction response caused by the database index is too long by running some corresponding acquired SQL statements.

② monitors and analyzes through real-time monitoring tools (nmon, etc.): Ⅰ. During the operation of the system, whether the CPU is stable or whether the CPU consumption is too high; Ⅱ. Whether there is a memory leak during the operation of the system.

3. What is the function of think_time?

① reduces the current runtime pressure and the pressure on the application server caused by the link

② simulates real production user operations to examine the impact on the server.

4. What is the purpose of parameterization?

① reduces the size of scripts

② facilitates script maintenance to more realistically simulate the data of the production environment.

5. Why should capacity testing be carried out in a step-by-step way?

The number of virtual users increases with the increase of load time, which can help determine the exact time when the system response time slows down and the exact number of users.

6. Suppose that the response time of some transactions is too long during the test, but the analysis of application services, databases and networks are all normal phenomena. What are the possible reasons for the problems?

Whether the ① LoadRunner client machine is no longer able to carry the current operating pressure so that LoadRunner cannot obtain the information returned from the server in time.

Whether ② Tink_time has ignored

③ determines whether the current architecture of the system under test is caused by clear caching during each test.

7. How to find the problems related to the application server?

Through the running of some transactions, ① determines whether the transaction response event is too long because it is not tuned at the application code layer.

② monitors and analyzes through real-time monitoring tools (nmon, etc.): Ⅰ. During the operation of the system, whether the CPU is stable or whether the CPU consumption is too high; Ⅱ. Whether there is a memory leak during the operation of the system; Ⅲ. Open the corresponding log, analyze whether there is a transaction error during the run, and get the error reason to see if the transaction error occurred due to code reasons.

8. Briefly describe the performance testing process.

① analysis of performance requirements: select the scenarios that users use most frequently, such as logging in, searching, placing orders, etc. Determine the performance indicators: for example, the transaction pass rate is 100%, 99% of the top is 5 seconds, the maximum number of concurrent users is 1000, and the utilization of CPU and memory is less than 70%.

② makes a performance test plan and defines the test time (usually after the functional stability, such as after the first round of testing) and the test environment and test tools

Writing test cases with ③

④ builds the test environment and prepares the test data

⑤ writes performance test scripts

⑥ performance test script tuning. Set checkpoints, parameterization, associations, collection points, transactions, adjust think time, delete redundant scripts

⑦ designs test scenarios, runs test scripts, and monitors the server

⑧ analyzes the test results and collects relevant log bills of lading for developers

⑨ regression performance test

⑩ prepares test reports.

9. How to determine the maximum load of the system?

Through the load test, the number of users continues to increase, and with the increase of the number of users, the performance indicators will change accordingly. When there is a performance inflection point, for example, when the number of users reaches a certain order of magnitude, the response time suddenly increases. Then the corresponding number of users at this inflection point is the maximum number of users that the system can carry.

10. What are the performance test indicators?

① response time

② Throughput

③ Cpu

④ memory

⑤ Io

⑥ Disk .

11. How to enhance the script?

Parameterization with ①

② to do correlation

③ add transaction

④ add assertion

⑤ add rendezvous point

⑥ adds think time.

This is the end of the content about "what are the interview questions and answers for the server performance test". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report