Method, device and system of server performances testing
A test method and server technology, which is applied in hardware monitoring and other directions, can solve the problem of reduced efficiency of server processing requests, and achieve the effect of improving efficiency and saving transmission resources
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2013-04-24
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The present application relates to the field of network data processing, in particular to a server performance test optimization method and system. Background technique
[0002] A server refers to a collection of computer software and hardware that manages resources and provides services to users, and is used to receive data requests and respond to said data requests. The kind of server comprises multiple, as application server, WEB server etc.; Take WEB server as example: WEB server receives the HTTP (HyperText Transfer Protocol, hypertext transfer protocol) request that client sends, and responds to described HTTP request, will The page corresponding to the HTTP request is sent to the browser of the client, so that the user can browse.
[0003] In order to test the response performance of the server to the data request sent by the client, a performance testing tool is generally used to create multiple threads, and then these multiple threads simulat...
Examples
specific example
[0109] 2.0|159|This is a test project
[0110] |jmeter| http: / / www.gouwu.com / |10.249.173.110|110|1|11|time|num|
[0111] avgTime|stdDevTime|sum|sqtSumTime|min|max|avgTps|
[0112] errNum|avgBytes|
[0113] For the definition of head, the user can define it by himself, as long as the performance test result can be parsed; as in the above example: 2.0 indicates the version number of the data, and 159 indicates the character length of the head (the head can be directly obtained according to the character length of the head All information in ); "This is a test project" is the project name;
[0114] Jmeter indicates that the data is the data result of jmeter, http: / / www.gouwu.com / Indicates the request url, 10.249.173.110 is the ip of the execution machine, 110 indicates the length of each piece of data, 1 indicates that one piece of data is read at a time (used when reading data), 11 indicates that each piece of data has 11 columns, time|num |avgTime|stdDevTi...
Embodiment 1
[0133] Corresponding to the method provided in Embodiment 1 of a server performance testing method of the present application, see Figure 7 , the present application also provides Embodiment 1 of a server performance testing device. In this embodiment, the device may include:
[0134] A thread creation module 401, a first trigger module 402 and a second trigger module 403;
[0135] in:
[0136] The thread creation module 401 is used to create at least one sending thread and a computing thread independent of the sending thread;
[0137] The first trigger module 402 is used to trigger the sending thread to send the current data request to the server, and when receiving the request result returned by the server, store the request result in a preset fixed-length In the data queue, send the next data request;
[0138] The second triggering module 403 is configured to trigger the calculation thread to calculate the response performance result of the server according...
Embodiment 3
[0145] see Figure 9 , the embodiment of the present application provides a preferred embodiment 3 of a server performance testing device, in which the first trigger module 402 is provided with an analysis sub-module 405;
[0146] The parsing sub-module 405 is configured to parse the data request corresponding to the request result, and obtain the request identifier in the data request.