CN111324545B - Application server middleware performance test method, test terminal and application server - Google Patents

Application server middleware performance test method, test terminal and application server Download PDF

Info

Publication number
CN111324545B
CN111324545B CN202010173736.4A CN202010173736A CN111324545B CN 111324545 B CN111324545 B CN 111324545B CN 202010173736 A CN202010173736 A CN 202010173736A CN 111324545 B CN111324545 B CN 111324545B
Authority
CN
China
Prior art keywords
application server
time
test access
access request
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010173736.4A
Other languages
Chinese (zh)
Other versions
CN111324545A (en
Inventor
程春生
谢波
梁锡坤
龚展鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202010173736.4A priority Critical patent/CN111324545B/en
Publication of CN111324545A publication Critical patent/CN111324545A/en
Application granted granted Critical
Publication of CN111324545B publication Critical patent/CN111324545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides an application server middleware performance test method, a test terminal and an application server, wherein the method comprises the following steps: sending a test access request to an application server and recording the sending time of the test access request, so that the application server carries out a processing flow according to the test access request and records data of a processing process; receiving a processing result fed back by the application server and recording the receiving time of the result; acquiring data of a processing process recorded by the application server; according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing process recorded by the application server, the performance of the application server middleware is analyzed, the processing process of the application server middleware can be separated, the performance data of a single component or stage can be extracted in a targeted manner, when the performance problem occurs, the performance bottleneck of the middleware can be positioned in an auxiliary and rapid mode, and the problem analysis efficiency is improved.

Description

Application server middleware performance test method, test terminal and application server
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method for testing performance of an application server middleware, a test terminal, and an application server.
Background
The application server middleware is used as a container for running an application program and is mainly responsible for receiving and analyzing network requests, dispatching the requests to specified thread processing (application code processing), sending the requests to a database, receiving feedback results, receiving thread processing results and feeding back the thread processing results to the work of different processing stages such as a requester. Different application server middleware products may exhibit different performance at different processing stages due to different implementation manners, and some of the application server middleware products have good processing I/O processing performance and some of the application server middleware products have better database connection performance.
With the continuous development of cloud technology, a single application server is changed from providing comprehensive services to providing specific proprietary services, such as providing I/O intensive services, database intensive services, and the like, and the requirement of application server middleware is changed from overall performance to single-aspect performance so as to exert the characteristics of the application itself.
At present, the general application server middleware testing method in the industry only can test the overall performance of middleware products, the testing result is the macroscopic performance of a full link, the performance condition of a certain component or a certain processing stage in the application server middleware is difficult to evaluate, and the performance bottleneck of the middleware is difficult to quickly locate when the performance problem occurs.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides an application server middleware performance testing method, a testing terminal, an application server, electronic equipment and a computer readable storage medium, which can at least partially solve the problems in the prior art.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
in a first aspect, a method for testing performance of middleware of an application server is provided, and the method is applied to a test terminal and includes:
sending a test access request to an application server and recording the sending time of the test access request, so that the application server carries out a processing flow according to the test access request and records data of a processing process;
receiving a processing result fed back by the application server and recording the receiving time of the result;
acquiring data of a processing process recorded by the application server;
analyzing the application server middleware performance according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server.
Further, the data of the process includes: the time the application server receives the test access request;
Analyzing the application server middleware performance according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server, comprising:
and obtaining the I/O performance of the application server according to the sending time of the test access request and the time of the application server receiving the test access request.
Further, the analyzing the application server middleware performance according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server includes:
and acquiring the static resource processing performance of the application server according to the sending time of the test access request and the receiving time of the result.
Further, the data of the process includes: the application server requests to access the database according to the test access request and receives the time of the database return result;
the analyzing the application server middleware performance according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server comprises the following steps:
and acquiring the database connection performance of the application server according to the time of the request for accessing the database and the time of the application server receiving the returned result of the database.
In a second aspect, there is provided a test terminal comprising:
the request sending and recording module sends the test access request to the application server and records the sending time of the test access request, so that the application server processes the flow according to the test access request and records the data of the processing process;
the feedback receiving and recording module is used for receiving the processing result fed back by the application server and recording the receiving time of the result;
the server data acquisition module acquires data of a processing process recorded by the application server;
and the performance analysis module is used for analyzing the performance of the middleware of the application server according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server.
Further, the data of the process includes: the time the application server receives the test access request;
the performance analysis module includes:
and the I/O performance analysis unit is used for obtaining the I/O performance of the application server according to the sending time of the test access request and the time of the application server receiving the test access request.
Further, the performance analysis module includes:
and the static resource processing performance analysis unit is used for acquiring the static resource processing performance of the application server according to the sending time of the test access request and the receiving time of the result.
Further, the data of the process includes: the application server requests to access the database according to the test access request and receives the time of the database return result;
the performance analysis module includes:
and the database connection performance analysis unit is used for acquiring the database connection performance of the application server according to the time for requesting to access the database and the time for receiving the returned result of the database.
In a third aspect, a method for testing performance of middleware of an application server is provided, and the method is applied to the application server, and includes:
receiving a test access request sent by a test terminal and recording the time for receiving the test access request;
judging whether the database needs to be accessed according to the test access request;
if yes, sending an access request to the database and recording the time for requesting to access the database;
obtaining a result returned by the database and recording the time of the result returned by the database;
transmitting the result returned by the database to the test terminal and recording the transmitting time of the result;
and sending the time of receiving the test access request, the time of requesting to access the database, the time of returning the result by the database and the sending time of the result to the test terminal as data of the processing process, so that the test terminal performs performance analysis according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing process, which are recorded by the test terminal.
In a fourth aspect, there is provided an application server comprising:
the request acquisition module is used for receiving a test access request sent by the test terminal and recording the time for receiving the test access request;
the access judgment module judges whether the database needs to be accessed according to the test access request;
the access module is used for sending an access request to the database and recording the time for requesting to access the database if the database is judged to be accessed according to the test access request;
the result receiving module is used for obtaining the result returned by the database and recording the time of the result returned by the database;
the result sending module is used for sending the result returned by the database to the test terminal and recording the sending time of the result;
and the data sending module is used for sending the time for receiving the test access request, the time for requesting to access the database, the time for returning the result by the database and the sending time of the result to the test terminal as data of a processing process, so that the test terminal performs performance analysis according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing process, which are recorded by the test terminal.
In a fifth aspect, an electronic device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the application server middleware performance test method described above when the program is executed.
In a sixth aspect, a computer readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the above-described application server middleware performance test method.
The invention provides a method for testing the performance of application server middleware, a test terminal, an application server, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: sending a test access request to an application server and recording the sending time of the test access request, so that the application server carries out a processing flow according to the test access request and records data of a processing process; receiving a processing result fed back by the application server and recording the receiving time of the result; acquiring data of a processing process recorded by the application server; analyzing the application server middleware performance according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server. The performance of the application server middleware is analyzed according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server, the processing procedure of the application server middleware can be separated, the performance data of a single component or stage can be extracted in a targeted manner, an application developer and a user are helped to evaluate whether the performance of the application server middleware is suitable or not, and when performance problems occur, the performance bottleneck of the middleware can be assisted to be positioned quickly, and the problem analysis efficiency is improved.
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular description of preferred embodiments, as illustrated in the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a system architecture diagram of an application server middleware performance test method according to an embodiment of the present application;
fig. 2 is a flowchart of a method for testing performance of an application server middleware applied to a test terminal according to an embodiment of the present application;
FIG. 3 shows a block diagram of a test terminal provided by an embodiment of the present application;
FIG. 4 is a diagram of another system architecture for applying the method for testing performance of middleware of an application server according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for testing performance of an application server middleware applied to an application server according to an embodiment of the present application;
FIG. 6 shows a block diagram of an application server provided by an embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
It is noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of the present application and in the foregoing figures, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
FIG. 1 is a system architecture diagram of an application server middleware performance test method according to an embodiment of the present application; as shown in fig. 1, the system architecture includes a test terminal 100 and an application server 104, where the application server is a physical server or a virtual machine, and an operating system of the application server deploys application server middleware, so that application services can be provided to the outside.
And the test terminal performs communication interaction with the application server so as to realize performance test of application server middleware deployed on the application server. The application server is provided with a test case component for processing the access request of the test terminal, carrying out data recording in cooperation with the test terminal and the like.
It should be noted that, before the performance test is performed on the application server middleware by using the test terminal, parameters of the application server middleware need to be configured according to practical application requirements.
Fig. 2 is a flowchart of a method for testing performance of an application server middleware applied to a test terminal according to an embodiment of the present invention; as shown in fig. 2, the application server middleware performance testing method is applied to a testing terminal, and specifically includes the following contents:
step S100: and sending the test access request to an application server and recording the sending time of the test access request.
And the application server performs a processing flow according to the test access request and records data of the processing process.
Step S200: receiving a processing result fed back by the application server and recording the receiving time of the result;
after the application server completes the processing flow corresponding to the test access request, the processing result is fed back to the intelligent terminal.
Step S300: acquiring data of a processing process recorded by the application server;
specifically, the acquiring manner may be that the application server sends the data to the test terminal according to a preset requirement, or the test terminal collects the data of the processing procedure on the application server according to the preset requirement.
Step S400: analyzing the application server middleware performance according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server.
Specifically, the data of the process may include: the time the application server receives the test access request and/or the data of the processing procedure comprises: and the application server requests to access the database according to the test access request and receives the time of the database return result.
According to the application server middleware performance testing method provided by the embodiment of the invention, the performance data of each processing stage of the application server middleware is stripped, so that the quick positioning of the performance bottleneck is facilitated, and the targeted optimization of the middleware configuration is performed. The performance of each processing stage of the middleware is accurately evaluated, the targeted comparison among different products is facilitated, and the performance advantages and disadvantages of different application server middleware products in different aspects are easily evaluated. In the process of selecting the middleware of the application server, an application developer or a user has reliable performance data as reference, and products which are more suitable for application requirements of the application developer or the user are easy to select.
In an alternative embodiment, the test access request may be a plurality of concurrent test access requests to generate transaction processing pressure against the application server.
When the above various times are recorded, the request labels of the corresponding test access requests are recorded at the same time, so that the data corresponding to different test access requests can be distinguished, and the test accuracy is further improved.
It should be noted that, before performance analysis is performed, data corresponding to the same request tag is first screened out, and then performance analysis is performed on the data.
In an alternative embodiment, in order to comprehensively test different performances of the middleware of the application server, the application server may be provided with a plurality of different program nodes so as to process different test access requests, so that when the above various times are recorded, the node numbers of the execution method flow are correspondingly recorded so as to analyze and process different nodes and different requests, and stability and robustness of performance analysis are improved.
In an alternative embodiment, the application server middleware performance test method may further include:
and generating the test access request.
The process of generating the test access request may be triggered by a control instruction, or may be triggered according to a preset condition, where the preset condition may be a preset time interval or a preset event.
In an alternative embodiment, the step S400 may include:
and obtaining the I/O performance of the application server according to the sending time of the test access request and the time of the application server receiving the test access request.
And/or acquiring the static resource processing performance of the application server according to the sending time of the test access request and the receiving time of the result.
And/or acquiring the database connection performance of the application server according to the time of the request for accessing the database and the time of the application server receiving the returned result of the database.
Specifically, the I/O performance is a process of receiving and analyzing a network request by an application server middleware to dispatch the request to a test case program, and represents the request receiving and scheduling capability of the application server middleware, wherein the processing time T1 of each request=the time B of the application server receiving the test access request-the sending time a of the test access request, and the processing time of all requests is calculated, so that the maximum processing time, the minimum processing time and the average processing time can be calculated.
Specifically, the static resource processing is a process that the application server middleware receives a static resource request, allocates threads to read the static resource and returns the static resource to a requester, and calculates the processing time of all requests by calculating the processing time of each request, wherein the processing time T2 of each request=the receiving time E of the result-the sending time a of the test access request, so that the maximum processing time, the minimum processing time and the average processing time can be calculated.
Specifically, the database connection is a process from applying for the database connection, sending a request to receiving a database return by the test case program, and the processing time T3 of each request=the time C2 of receiving the database return result by the application server-the time C1 of requesting to access the database, and the processing time of all requests is calculated, so that the maximum processing time, the minimum processing time and the average processing time can be calculated.
In summary, according to the method for testing the performance of the application server middleware provided by the embodiment of the invention, the performance conditions of the application server middleware in different processing stages when processing the service can be obtained by testing the processing capability of the application server middleware, so that guidance is provided for selecting the application server middleware and analyzing the performance bottleneck of the middleware. The processing process of the application server middleware is split through cooperation of different test components, the processing performance of each processing stage of the application server middleware is accurately evaluated, and an application developer or a user is helped to select a proper middleware product according to the processing characteristics (such as I/O intensive and data intensive) of the application by comparison and analysis of test data of different middleware.
Based on the same inventive concept, the embodiment of the present application also provides a test terminal, which can be used to implement the method described in the above embodiment, as described in the following embodiment. Since the principle of the test terminal for solving the problem is similar to that of the device, the implementation of the test terminal can be referred to the implementation of the method, and the repetition is omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 3 shows a block diagram of a test terminal provided by an embodiment of the present application; as shown in fig. 3, the test terminal may include: the system comprises a request sending recording module 10, a feedback receiving recording module 20, a server data acquisition module 30 and a performance analysis module 40.
The request sending and recording module 10 sends a test access request to an application server and records the sending time of the test access request, so that the application server performs a processing flow according to the test access request and records data of the processing flow;
The feedback receiving and recording module 20 receives the processing result fed back by the application server and records the receiving time of the result;
the server data acquisition module 30 acquires the data of the processing procedure recorded by the application server;
the performance analysis module 40 analyzes the application server middleware performance according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server.
According to the test terminal provided by the embodiment of the invention, the performance data of each processing stage of the application server middleware is stripped, so that the quick positioning of the performance bottleneck is facilitated, and the targeted optimization of the middleware configuration is performed. The performance of each processing stage of the middleware is accurately evaluated, the targeted comparison among different products is facilitated, and the performance advantages and disadvantages of different application server middleware products in different aspects are easily evaluated. In the process of selecting the middleware of the application server, an application developer or a user has reliable performance data as reference, and products which are more suitable for application requirements of the application developer or the user are easy to select.
In an alternative embodiment, the data of the process includes: the time when the application server receives the test access request; the performance analysis module comprises: and the I/O performance analysis unit is used for obtaining the I/O performance of the application server according to the sending time of the test access request and the time of the application server receiving the test access request.
In an alternative embodiment, the performance analysis module includes: and the static resource processing performance analysis unit acquires the static resource processing performance of the application server according to the sending time of the test access request and the receiving time of the result.
In an alternative embodiment, the data of the process includes: the application server requests to access the database according to the test access request and receives the time of the database return result; the performance analysis module comprises: and the database connection performance analysis unit is used for acquiring the database connection performance of the application server according to the time for requesting to access the database and the time for receiving the returned result of the database.
It should be noted that, the test terminal may be disposed on the same server, such as the system architecture shown in fig. 1, or may be disposed on different servers to implement a test function, and referring to fig. 4, the test terminal may include: pressure generating components 101, 102, 103, data acquisition component 105, and management terminal and computing unit 106.
The pressure generating component can comprise the request sending and recording module and the feedback receiving and recording module;
The data acquisition component comprises the server data acquisition module and is used for acquiring data on the pressure generation component and the application server;
the management terminal and the computing unit are used for controlling the pressure generating assembly to start and stop and calculating the performance condition of the middleware of the application server according to the data collected by the data collecting assembly, and the management terminal and the computing unit comprise the performance analysis module.
The pressure generating component, the application server, the data acquisition component, the management terminal and the computing unit can communicate through an enterprise internal local area network.
The embodiment of the invention also provides an application server middleware performance test method, which is applied to an application server and executed by a test case component deployed on the application server, and referring to fig. 5, the application server middleware performance test method can comprise the following contents:
step S1000: receiving a test access request sent by a test terminal and recording the time for receiving the test access request;
in order to distinguish data corresponding to different test access requests in subsequent processing, the request labels of the test access requests are recorded while the time is recorded.
In addition, different test case components can be arranged on the application server to process different kinds of test access requests, so that the numbers of the test case components are recorded or become program processing node numbers at the same time of recording time and request labels.
Step S2000: judging whether the database needs to be accessed according to the test access request;
if yes, go to step S3000; if not, ending the flow or directly feeding back the related data for processing the access request to the test terminal.
Step S3000: sending an access request to the database and recording the time of requesting to access the database;
the principle is referred to above, and will not be described herein again.
Step S4000: acquiring a result returned by the database and recording the time of the result returned by the database;
the principle is referred to above, and will not be described herein again.
Step S5000: transmitting the result returned by the database to the test terminal and recording the transmitting time of the result;
the principle is referred to above, and will not be described herein again.
Step S6000: and sending the time of receiving the test access request, the time of requesting to access the database, the time of returning the result by the database and the sending time of the result to the test terminal as data of a processing process, so that the test terminal performs performance analysis according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing process, which are recorded by the test terminal.
It will be appreciated by those skilled in the art that, while the above-mentioned time is being sent, a request tag corresponding to the time and a program processing node number are sent, so that the test terminal analyzes data of a certain test access request or analyzes data under a certain program processing node number to realize tests of different performances.
In summary, the method for testing the performance of the middleware of the application server provided by the embodiment of the application can be matched with the test terminal to obtain the performance of the middleware of the application server in different processing stages when processing the service, and provide guidance for selecting the middleware of the application server and analyzing the performance bottleneck of the middleware. The processing process of the application server middleware is split through cooperation of different test components, the processing performance of each processing stage of the application server middleware is accurately evaluated, and an application developer or a user is helped to select a proper middleware product according to the processing characteristics (such as I/O intensive and data intensive) of the application by comparison and analysis of test data of different middleware.
Based on the same inventive concept, the embodiments of the present application also provide an application server, which may be used to implement the method described in the above embodiments, as described in the following embodiments. Since the principle of the application server for solving the problem is similar to that of the above device, the implementation of the application server can refer to the implementation of the above method, and the repetition is omitted. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements the intended function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 6 shows a block diagram of an application server provided by an embodiment of the present invention; as shown in fig. 6, the application server includes:
the method comprises the steps that a request acquisition module 1 receives a test access request sent by a test terminal and records the time for receiving the test access request;
the access judgment module 2 judges whether the database needs to be accessed according to the test access request;
if the access module 3 judges that the database needs to be accessed according to the test access request, the access module sends an access request to the database and records the time for requesting to access the database;
the result receiving module 4 acquires the result returned by the database and records the time of the result returned by the database;
the result sending module 5 sends the result returned by the database to the test terminal and records the sending time of the result;
the data sending module 6 sends the time of receiving the test access request, the time of requesting to access the database, the time of returning the result by the database and the sending time of the result as data of a processing procedure to the test terminal, so that the test terminal performs performance analysis according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the test terminal.
In addition, those skilled in the art will appreciate that the test case components that may be deployed on the application server include the modules described above.
In summary, the application server provided by the embodiment of the invention can be matched with the test terminal to obtain the performance of the application server middleware in different processing stages when processing the service, and provide guidance for selecting the application server middleware and analyzing the performance bottleneck of the middleware. The processing process of the application server middleware is split through cooperation of different test components, the processing performance of each processing stage of the application server middleware is accurately evaluated, and an application developer or a user is helped to select a proper middleware product according to the processing characteristics (such as I/O intensive and data intensive) of the application by comparison and analysis of test data of different middleware.
The apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. A typical implementation device is an electronic device, which may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
In a typical example, the electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, which when executed implements the application server middleware performance test method described above.
Referring now to fig. 7, a schematic diagram of an electronic device 600 suitable for use in implementing embodiments of the present application is shown.
As shown in fig. 7, the electronic apparatus 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM)) 603. In the RAM603, various programs and data required for the operation of the system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on drive 610 as needed, so that a computer program read therefrom is mounted as needed as storage section 608.
In particular, according to embodiments of the present invention, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, an embodiment of the present invention includes a computer-readable storage medium having stored thereon a computer program that is executed by a processor to perform the above-described application server middleware performance test method.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (4)

1. The application server middleware performance testing method is characterized by being applied to a testing terminal and comprising the following steps:
sending a test access request to an application server and recording the sending time of the test access request, so that the application server processes a processing flow according to the test access request and records data of the processing flow;
receiving a processing result fed back by the application server and recording the receiving time of the result;
acquiring data of a processing process recorded by the application server;
analyzing the application server middleware performance according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server;
the test access request is a plurality of concurrent test access requests to generate transaction processing pressure for the application server; and/or the test access requests are multiple, different program nodes are deployed on the application server so as to process different test access requests;
when the various times are recorded, the node numbers of the execution method flow are correspondingly recorded so as to analyze and process different nodes and different requests;
When the test access requests are multiple or multiple, each test access request has a unique request tag, and when the various times are recorded, the request tags of the corresponding test access requests are recorded at the same time so as to distinguish data corresponding to different test access requests;
the data of the process includes: the time when the application server receives the test access request, the time when the application server requests to access the database according to the test access request, and the time when the application server receives a database return result;
analyzing the application server middleware performance according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server, including:
obtaining the I/O performance of the application server according to the sending time of the test access request and the time of the application server receiving the test access request; and/or
Acquiring the static resource processing performance of the application server according to the sending time of the test access request and the receiving time of the result; and/or
And acquiring the database connection performance of the application server according to the time for requesting to access the database and the time for receiving the returned result of the database.
2. A test terminal, comprising:
the request sending and recording module sends a test access request to an application server and records the sending time of the test access request, so that the application server processes a processing flow according to the test access request and records data of the processing process;
the feedback receiving and recording module is used for receiving the processing result fed back by the application server and recording the receiving time of the result;
the server data acquisition module acquires data of a processing process recorded by the application server;
the performance analysis module is used for analyzing the application server middleware performance according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing procedure recorded by the application server;
the test access request is a plurality of concurrent test access requests to generate transaction processing pressure for the application server; and/or the test access requests are multiple, different program nodes are deployed on the application server so as to process different test access requests;
when the various times are recorded, the node numbers of the execution method flow are correspondingly recorded so as to analyze and process different nodes and different requests;
When the test access requests are multiple or multiple, each test access request has a unique request tag, and when the various times are recorded, the request tags of the corresponding test access requests are recorded at the same time so as to distinguish data corresponding to different test access requests;
the data of the process includes: the time when the application server receives the test access request, the time when the application server requests to access the database according to the test access request, and the time when the application server receives a database return result;
the performance analysis module comprises:
the I/O performance analysis unit is used for obtaining the I/O performance of the application server according to the sending time of the test access request and the time of the application server receiving the test access request; and/or
The static resource processing performance analysis unit is used for acquiring the static resource processing performance of the application server according to the sending time of the test access request and the receiving time of the result; and/or
And the database connection performance analysis unit is used for acquiring the database connection performance of the application server according to the time for requesting to access the database and the time for receiving the returned result of the database.
3. An application server middleware performance test method, which is applied to an application server, comprises the following steps:
receiving a test access request sent by a test terminal and recording the time for receiving the test access request;
judging whether the database needs to be accessed according to the test access request;
if yes, sending an access request to the database and recording the time for requesting to access the database;
acquiring a result returned by the database and recording the time of the result returned by the database;
transmitting the result returned by the database to the test terminal and recording the transmitting time of the result;
the time of receiving the test access request, the time of requesting to access the database, the time of returning the result by the database and the time of sending the result are used as data of a processing process to be sent to the test terminal, so that the test terminal performs performance analysis according to the self-recorded time of sending the test access request and/or the result receiving time and/or the data of the processing process;
the test access request is a plurality of concurrent test access requests to generate transaction processing pressure for the application server; and/or the test access requests are multiple, different program nodes are deployed on the application server so as to process different test access requests;
When the various times are recorded, the node numbers of the execution method flow are correspondingly recorded so as to analyze and process different nodes and different requests;
when the test access requests are multiple or multiple, each test access request has a unique request tag, and when the various times are recorded, the request tags of the corresponding test access requests are recorded at the same time so as to distinguish data corresponding to different test access requests;
the performance analysis of the test terminal according to the sending time of the test access request recorded by the test terminal and/or the receiving time of the result and/or the data of the processing procedure comprises the following steps:
obtaining the I/O performance of the application server according to the sending time of the test access request and the time of the application server receiving the test access request; and/or
Acquiring the static resource processing performance of the application server according to the sending time of the test access request and the receiving time of the result; and/or
And acquiring the database connection performance of the application server according to the time for requesting to access the database and the time for receiving the returned result of the database.
4. An application server, comprising:
the request acquisition module is used for receiving a test access request sent by the test terminal and recording the time for receiving the test access request;
the access judgment module judges whether the database needs to be accessed according to the test access request;
the access module is used for sending an access request to the database and recording the time for requesting to access the database if the database is judged to be accessed according to the test access request;
the result receiving module is used for obtaining the result returned by the database and recording the time for returning the result by the database;
the result sending module is used for sending the result returned by the database to the test terminal and recording the sending time of the result;
the data sending module is used for sending the time for receiving the test access request, the time for requesting to access the database, the time for returning the result by the database and the sending time of the result as data of a processing process to the test terminal so that the test terminal performs performance analysis according to the sending time of the test access request and/or the receiving time of the result and/or the data of the processing process, which are recorded by the test terminal;
The test access request is a plurality of concurrent test access requests to generate transaction processing pressure for the application server; and/or the test access requests are multiple, different program nodes are deployed on the application server so as to process different test access requests;
when the various times are recorded, the node numbers of the execution method flow are correspondingly recorded so as to analyze and process different nodes and different requests;
when the test access requests are multiple or multiple, each test access request has a unique request tag, and when the various times are recorded, the request tags of the corresponding test access requests are recorded at the same time so as to distinguish data corresponding to different test access requests;
the performance analysis of the test terminal according to the sending time of the test access request recorded by the test terminal and/or the receiving time of the result and/or the data of the processing procedure comprises the following steps:
obtaining the I/O performance of the application server according to the sending time of the test access request and the time of the application server receiving the test access request; and/or
Acquiring the static resource processing performance of the application server according to the sending time of the test access request and the receiving time of the result; and/or
And acquiring the database connection performance of the application server according to the time for requesting to access the database and the time for receiving the returned result of the database.
CN202010173736.4A 2020-03-13 2020-03-13 Application server middleware performance test method, test terminal and application server Active CN111324545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010173736.4A CN111324545B (en) 2020-03-13 2020-03-13 Application server middleware performance test method, test terminal and application server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010173736.4A CN111324545B (en) 2020-03-13 2020-03-13 Application server middleware performance test method, test terminal and application server

Publications (2)

Publication Number Publication Date
CN111324545A CN111324545A (en) 2020-06-23
CN111324545B true CN111324545B (en) 2023-09-22

Family

ID=71173209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010173736.4A Active CN111324545B (en) 2020-03-13 2020-03-13 Application server middleware performance test method, test terminal and application server

Country Status (1)

Country Link
CN (1) CN111324545B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448857B (en) * 2022-01-29 2024-06-18 北京字节跳动网络技术有限公司 Mock service processing method, mock service processing device, storage medium and Mock service processing system
CN116107913B (en) * 2023-04-06 2023-11-14 阿里云计算有限公司 Test control method, device and system of single-node server

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005071560A1 (en) * 2004-01-17 2005-08-04 Keebok Park Method and system for application performance management
CN102484653A (en) * 2009-08-31 2012-05-30 思科技术公司 Measuring attributes of client-server applications
CN102938776A (en) * 2012-09-28 2013-02-20 方正国际软件有限公司 Dynamic page processing system based on Asynchronous JavaScript and XML (ajax) technique
CN104202220A (en) * 2014-09-19 2014-12-10 北京国双科技有限公司 Pressure test method and pressure test device
CN105138460A (en) * 2015-09-18 2015-12-09 北京恒华伟业科技股份有限公司 Software testing method and system
CN105808441A (en) * 2016-03-31 2016-07-27 浪潮通用软件有限公司 Multidimensional performance diagnosis and analysis method
CN107395312A (en) * 2017-09-19 2017-11-24 电信科学技术第五研究所有限公司 A kind of secure network method for synchronizing time and device
WO2018035799A1 (en) * 2016-08-25 2018-03-01 阿里巴巴集团控股有限公司 Data query method, application and database servers, middleware, and system
US10528512B1 (en) * 2018-03-14 2020-01-07 Parallels International Gmbh Improving efficiency of asynchronous input/output operations based on observed performance

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120253745A1 (en) * 2011-03-28 2012-10-04 Infosys Technologies Limited System and method for testing performance of mobile application server
KR20130003544A (en) * 2011-06-30 2013-01-09 한국전자통신연구원 Method and system for synchronizing contents between terminals

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005071560A1 (en) * 2004-01-17 2005-08-04 Keebok Park Method and system for application performance management
CN102484653A (en) * 2009-08-31 2012-05-30 思科技术公司 Measuring attributes of client-server applications
CN102938776A (en) * 2012-09-28 2013-02-20 方正国际软件有限公司 Dynamic page processing system based on Asynchronous JavaScript and XML (ajax) technique
CN104202220A (en) * 2014-09-19 2014-12-10 北京国双科技有限公司 Pressure test method and pressure test device
CN105138460A (en) * 2015-09-18 2015-12-09 北京恒华伟业科技股份有限公司 Software testing method and system
CN105808441A (en) * 2016-03-31 2016-07-27 浪潮通用软件有限公司 Multidimensional performance diagnosis and analysis method
WO2018035799A1 (en) * 2016-08-25 2018-03-01 阿里巴巴集团控股有限公司 Data query method, application and database servers, middleware, and system
CN107395312A (en) * 2017-09-19 2017-11-24 电信科学技术第五研究所有限公司 A kind of secure network method for synchronizing time and device
US10528512B1 (en) * 2018-03-14 2020-01-07 Parallels International Gmbh Improving efficiency of asynchronous input/output operations based on observed performance

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李长江.《浙江省国土资源遥感调查与综合研究》.北京地质出版社,2004,第349-351页. *
胡玫艳.《电子商务教程》.华南理工大学出版社,2003,第202-205页. *

Also Published As

Publication number Publication date
CN111324545A (en) 2020-06-23

Similar Documents

Publication Publication Date Title
US8037458B2 (en) Method and system for providing a common structure for trace data
CN107483221B (en) Cross-application problem troubleshooting method, device and system
CN102868573B (en) Method and device for Web service load cloud test
US20170123777A1 (en) Deploying applications on application platforms
CN105630684B (en) Software Development Kit recognition methods and device
CN106843945B (en) PaaS-based GIS application deployment method and system
CN111324545B (en) Application server middleware performance test method, test terminal and application server
WO2007144265A2 (en) Tracking discrete elements of distributed transactions
CN108959086B (en) Program package testing deployment method, device, system, electronic equipment and storage medium
US20160062868A1 (en) Automated instrumentation of applications
CN114115904A (en) Information processing method, information processing apparatus, server, and storage medium
US20200310828A1 (en) Method, function manager and arrangement for handling function calls
CN109951326B (en) Data processing method, device, storage medium and processor
CN112860507B (en) Control method and device for sampling rate of distributed link tracking system
CN113946328A (en) Service processing method and system, storage medium and electronic equipment
CN117539754A (en) Pressure testing method and device, storage medium and electronic equipment
CN112527642A (en) Performance test index data display method, device, equipment and storage medium
US9323509B2 (en) Method and system for automated process distribution
CN111367796B (en) Application program debugging method and device
CN111934932B (en) Internet architecture evaluation method and device
CN112596974A (en) Full link monitoring method, device, equipment and storage medium
US8549537B2 (en) Middleware bridge system and method
CN110928784A (en) Software testing environment monitoring method and device
CN116431160A (en) Fine application group processing method and server
CN117130860A (en) Data processing method, device and storage medium for function execution process

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant