Analysis principle:
1. Specific analysis of specific problems (this is due to different application systems, different testing purposes, different performance concerns)
2. Find bottlenecks in the following order, from easy to difficult.
Server hardware bottleneck network bottleneck (for LAN, can not be considered) server operating system bottleneck (parameter configuration) middleware bottleneck (parameter configuration, database, Web server, etc.) application bottlenecks (SQL statements, database design, business logic, algorithms, etc.)
Sources of information analysis:
1. According to the error message during the operation of the scene
2. Monitoring metrics data collected based on test results
A Error prompt Analysis
Analysis Example:
1. error:failed to connect to server "172.17.7.230″: [10060] Connection
Error:timed out Error:server ' 172.17.7.230″has shut down the connection prematurely
Analysis:
A, Application services die.
(Small User: a procedural problem.) The problem of processing database on the program, most of the actual test is the configuration problem of the server link.
B, application services Not dead
(Apply service parameter setup issues)
The corresponding Apache and Tomcat maximum number of links need to be modified, if the connection received connection refused message, you should increase the corresponding server maximum connection settings, increase the amplitude to be based on the actual situation and server hardware, the proposed increase of 25% each time!
C, the connection to the database
(The maximum number of connections that the database starts (related to hardware memory))
D, the maximum number of links our application spring controls is too low
2. Error:page download timeout (seconds) has expired
Analysis:
A, the application service parameter setting is too big to cause the server bottleneck
B, too many pictures on the page
C, check the field too much when the program is working on the table
D, the actual test some resources need to request extranet, and our test environment is the LAN environment