Method and device for collecting host program performance in host trading

By partitioning the host program and distributed database on the middleware of the customer information control system, the host program performance data during the host transaction process is solved, and the problems of high collection costs and low accuracy in the existing technology are achieved, and the rapid and accurate Performance analysis and problem investigation have improved system stability.

CN113010554BActive Publication Date: 2024-12-10INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110243195.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-05
Publication Date
2024-12-10
Estimated Expiration
2041-03-05

AI Technical Summary

Technical Problem

The performance acquisition method of host program in existing host transactions is high cost and low accuracy. The EDX tool is cumbersome to use and cannot effectively collect performance data of host program, which affects the efficiency of performance analysis and problem-solving.

Method used

By running the host program and distributed database partition on the middleware of the customer information control system, the first task control block and the second task control block collect the host program performance data, and setting up multiple data acquisition points and performance data collection programs to achieve the Real-time acquisition and storage of host program performance.

Benefits of technology

It reduces the cost of collecting performance data of host programs during host transactions, improves the accuracy and efficiency of collection results, quickly and accurately detects and solves performance problems, and improves the operation stability and reliability of the customer information control system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113010554B_ABST
    Figure CN113010554B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method and device for collecting host program performance in a host transaction, which can be used in the field of financial technology. The method includes: controlling each host program data corresponding to the target host transaction running on the customer information control system middleware to run in a preset first task control block, and making the distributed database data corresponding to the target host transaction run in a second task control block; collecting and storing the performance data of each host program in the first task control block during the target host transaction. The present application can effectively improve the convenience of collecting host program performance data during the host transaction, and can effectively reduce the collection cost of host program performance data during the host transaction, and effectively improve the collection accuracy of host program performance data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, in particular to the field of financial technology, and specifically to a method and device for collecting host program performance in host transactions. Background Art

[0002] The mainframe transactions of financial institutions such as banks and securities companies run on the CICS middleware of IBM mainframes. In order to ensure the effectiveness of mainframe transactions, performance collection is required for analysis. When transaction performance problems are encountered, solutions can be determined based on the collected performance data.

[0003] Since a host transaction includes multiple host programs and SQL processing, the existing performance data collection methods include performance analysis of host programs and SQL processing during the host transaction. For SQL processing, this can be achieved by printing PM reports; for each host program within the transaction, EDX tools are generally used for step-by-step tracking and debugging, or the total running time is calculated by outputting the start and end time of each key point of each program.

[0004] However, the use of EDX tools is cumbersome, the tracking and debugging efficiency is low, and the overhead of program execution can only be subjectively felt, lacking data support; for the method of calculating the total running time by outputting the start and end time of each key point of each program, all programs in the transaction need to be modified, compiled and debugged, which is costly. Therefore, it is necessary to design a host program performance analysis method in the host transaction process with lower cost and more accurate collection results. Summary of the invention

[0005] In response to the problems in the prior art, the present application provides a method and device for collecting host program performance in host transactions, which can effectively improve the convenience of collecting host program performance data during host transactions, effectively reduce the collection cost of host program performance data during host transactions, and effectively improve the collection accuracy of host program performance data.

[0006] In order to solve the above technical problems, this application provides the following technical solutions:

[0007] In a first aspect, the present application provides a method for collecting host program performance in a host transaction, comprising:

[0008] Control each host program data corresponding to the target host transaction running on the customer information control system middleware to run in a preset first task control block, and make the distributed database data corresponding to the target host transaction run in a second task control block;

[0009] The performance data of each of the host programs in the first task control block during the target host transaction process is collected and stored.

[0010] Furthermore, the collecting and storing the performance data of each of the host programs in the first task control block during the target host transaction process includes:

[0011] During the target host transaction process, real-time performance data of each preset data collection point corresponding to each of the plurality of host programs in the first task control block is collected;

[0012] The performance data of each of the data collection points corresponding to each of the host programs is stored.

[0013] Furthermore, before collecting the performance data of each preset data collection point corresponding to each of the plurality of host programs in the first task control block in real time during the target host transaction, the method further includes:

[0014] Setting a plurality of different data collection points in the first task control block;

[0015] The data collection points include: program call collection point, called program return collection point, database script execution before collection point and database script execution after collection point.

[0016] Furthermore, before collecting the performance data of each preset data collection point corresponding to each of the plurality of host programs in the first task control block in real time during the target host transaction, the method further includes:

[0017] respectively setting performance data collection programs corresponding to each of the data collection points;

[0018] Correspondingly, the real-time collection of performance data of each preset data collection point corresponding to each of the plurality of host programs in the first task control block during the target host transaction process includes:

[0019] activating each of the performance data collection programs so that each of the performance data collection programs collects performance data of the corresponding data collection points respectively when or after detecting that the target host transaction has been initiated;

[0020] If it is detected that the target host transaction has ended, each of the performance data collection programs is stopped.

[0021] Furthermore, the control of each host program data corresponding to the target host transaction running on the customer information control system middleware is run in a preset first task control block, including:

[0022] The preset forced re-entry unit in the customer information control system middleware is started, so that the forced re-entry unit controls various host program data except the distributed database data to run in the first task control block in the customer information control system middleware.

[0023] Further, the distributed database data corresponding to the target host transaction is made to run in the second task control block, including:

[0024] Control a connection tool preset in the second task control block to establish a connection with a data retrieval unit in a distributed database, so that the second task control block processes the distributed database data corresponding to the distributed database.

[0025] Furthermore, the performance data includes: response time and CPU consumption.

[0026] In a second aspect, the present application provides a host program performance collection device in a host transaction, comprising:

[0027] A control module, used to control each host program data corresponding to the target host transaction running on the customer information control system middleware to run in a preset first task control block, and to make the distributed database data corresponding to the target host transaction run in a second task control block;

[0028] The collection module is used to collect and store the performance data of each host program in the first task control block during the target host transaction process.

[0029] In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for collecting host program performance in host transactions when executing the program.

[0030] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for collecting host program performance in host transactions.

[0031] It can be seen from the above technical scheme that the present application provides a method and device for collecting host program performance in a host transaction, the method comprising: controlling each host program data corresponding to the target host transaction running on the customer information control system middleware to run in a preset first task control block, and making the distributed database data corresponding to the target host transaction run in a second task control block; collecting and storing the performance data of each host program in the first task control block during the target host transaction process, and partitioning the DB2 external data (each host program data corresponding to the target host transaction) and the DB2 data by using the first task control block and the second task control block to realize the centralized collection of each host program data during the target host transaction process, which can effectively improve the convenience of collecting host program performance data during the host transaction process, and can effectively reduce the collection cost of host program performance data during the host transaction process, and effectively improve the collection accuracy of host program performance data, thereby effectively improving the accuracy and efficiency of performance analysis and performance problem detection based on the collected performance data, and thereby when a host program performance problem occurs in the host transaction, the performance problem can be quickly and accurately checked or solved, so as to effectively improve the operation stability and reliability of the customer information control system, and improve the reliability of the host transaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0033] Figure 1 It is a first flow chart of a method for collecting host program performance in a host transaction in an embodiment of the present application.

[0034] Figure 2 It is a second flow chart of the method for collecting host program performance in host transactions in an embodiment of the present application.

[0035] Figure 3 It is a third flow chart of the method for collecting host program performance in host transactions in the embodiment of the present application.

[0036] Figure 4 It is a fourth flow chart of the method for collecting host program performance in host transactions in the embodiment of the present application.

[0037] Figure 5 This is a fifth flow chart of the method for collecting host program performance in host transactions in an embodiment of the present application.

[0038] Figure 6 This is a sixth flow chart of the method for collecting host program performance in host transactions in an embodiment of the present application.

[0039] Figure 7 It is a structural diagram of a host program performance acquisition device in a host transaction in an embodiment of the present application.

[0040] Figure 8 It is a structural diagram of a host program performance acquisition system in a host transaction in an application example of this application.

[0041] Fig. 9 It is a schematic diagram of an example of QR TCB data collected and formatted by the EIXT program module 104 in the application example of the present application.

[0042] Fig.10 It is a logical schematic diagram of the method for collecting host program performance in a host transaction implemented by applying the host program performance collection system in the host transaction in the application example of the present application.

[0043] Fig.11 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] It should be noted that the method and device for collecting host program performance in host transactions disclosed in the present application can be used in the field of financial technology, and can also be used in any field outside the field of financial technology. The application field of the method and device for collecting host program performance in host transactions disclosed in the present application is not limited.

[0046] In order to solve the problems of high cost and low accuracy of collecting host program performance data in the process of host transaction in the existing EDX tools, the present application provides a host program performance collection method in host transaction, a host program performance collection device in host transaction, a host program performance collection system in host transaction, an electronic device and a computer-readable storage medium, which control the various host program data corresponding to the target host transaction running on the customer information control system middleware to run in a preset first task control block, and make the distributed database data corresponding to the target host transaction run in a second task control block; collect and store the performance data of each host program in the first task control block during the target host transaction, and use the first task control block and the second task control block to collect and store the performance data of each host program in the first task control block during the target host transaction. The task control block partitions and runs DB2 external data (each host program data corresponding to the target host transaction) and DB2 data to realize the centralized collection of each host program data in the target host transaction process, which can effectively improve the convenience of collecting host program performance data in the host transaction process, and can effectively reduce the collection cost of host program performance data in the host transaction process, and effectively improve the collection accuracy of host program performance data, thereby effectively improving the accuracy and efficiency of performance analysis and performance problem detection based on the collected performance data, and thus can quickly and accurately troubleshoot or solve performance problems when host program performance problems occur in host transactions, so as to effectively improve the operating stability and reliability of the customer information control system, and improve the reliability of host transactions.

[0047] In one or more embodiments of the present application, EDX is a transaction tracking tool provided by IBM online transaction middleware CICS, which is used to track the execution of online transactions step by step and can be regarded as a debug tool. For example, after logging into CICS, input CEDX TXN1 in the command line and press Enter, and the system will wait for the initiation of TXN1 transaction. Once initiated, the CICS interface will display the information of each execution step of TXN1 transaction (such as sending data, returning information, etc.). You need to press the "Next" key manually step by step).

[0048] In one or more embodiments of the present application, Customer Information Control System CICS (Customer Information Control System) is a mainframe transaction processing middleware of IBM Corporation, which supports online transaction services (OLTP), provides online transaction processing and transaction management for applications, can realize high-concurrency online transactions, and provide users with real-time transaction requests and responses.

[0049] Based on the above content, the present application also provides a host program performance collection device in a host transaction for implementing the host program performance collection method in a host transaction provided in one or more embodiments of the present application. The host program performance collection device in a host transaction can communicate with a client device by itself or through a third-party server, etc., to receive a host program performance collection trigger instruction sent by the client device, and control the various host program data corresponding to the target host transaction running on the client information control system middleware according to the instruction, all of which are run in a preset first task control block, and the distributed database data corresponding to the target host transaction is run in a second task control block; collect and store the performance data of each of the host programs in the first task control block during the target host transaction, and then output the performance data to the client device, so that the client device performs host program performance analysis in the host transaction according to the performance data of each of the host programs in the first task control block during the target host transaction, and when a host program performance problem occurs in the host transaction, timely and quickly obtain a solution to the host program performance problem in the host transaction according to the performance data of each of the host programs in the first task control block during the target host transaction.

[0050] It is understandable that the client device may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Among them, the smart wearable device may include smart glasses, a smart watch, a smart bracelet, etc.

[0051] In another practical application scenario, the part of the host program performance collection device in the host transaction that collects the host program performance in the host transaction can be executed in the server as described above, or all operations can be completed in the client device. The specific selection can be based on the processing capability of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device can also include a processor for specific processing of the host program performance collection in the host transaction.

[0052] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.

[0053] The server and the client device may communicate with each other using any suitable network protocol, including network protocols that have not yet been developed on the date of filing this application. The network protocols may include, for example, TCP / IP, UDP / IP, HTTP, HTTPS, etc. Of course, the network protocols may also include, for example, RPC (Remote Procedure Call Protocol) and REST (Representational State Transfer) protocols used on top of the above protocols.

[0054] The details are described in detail through the following embodiments and application examples.

[0055] In order to solve the problems of high cost and low accuracy of collecting host program performance data in the host transaction process in the existing EDX tools, the present application provides an embodiment of a method for collecting host program performance in host transactions, see Figure 1 The host program performance collection method in the host transaction performed by the host program performance collection device in the host transaction specifically includes the following contents:

[0056] Step 100: Control each host program data corresponding to the target host transaction running on the customer information control system middleware to run in a preset first task control block, and make the distributed database data corresponding to the target host transaction run in a second task control block.

[0057] In step 100, the customer information control system middleware may be CICS middleware; the first task control block may be a QR task control block, and the second task control block may be an L8 task control block.

[0058] In one or more embodiments of the present application, QR task control block QR TCB (Quasi-Reentrant Task Control Block): TCB is a linked list used to control tasks in CICS, QR TCB is the main TCB in CICS, and both Threadsafe and nonthreadsafe applications can run on QR TCB.

[0059] In one or more embodiments of the present application, L8 task control block L8 TCB (L8 Mode Open TCB): CICS DB2 connection tool TRUE runs on Open TCB such as L8 TCB. Threadsafe application programs can also run on Open TCB such as L8TCB.

[0060] It can be understood that the distributed database data refers to data such as scripts of the distributed database that need to be executed during the transaction process of the target host, and the distributed database can adopt a relational database DB2.

[0061] In one or more embodiments of the present application, DB2 refers to a large-scale relational database product developed by IBM.

[0062] In one or more embodiments of the present application, since a transaction includes one or more programs, and the execution time of each program includes two parts: the time to execute the program itself (DB2 external program consumption) and the time to execute the DB2 database script (SQL consumption). Therefore, the DB2 data mentioned in the present application refers to the scripts and other data of the DB2 database, and the DB2 external data refers to the data of each host program involved in the host transaction process. The host program performance detection method proposed in the present application refers to the performance detection of the DB2 external data (the data of each host program involved in the host transaction process).

[0063] Step 200: Collect and store performance data of each of the host programs in the first task control block during the target host transaction process.

[0064] From the above description, it can be seen that the method for collecting host program performance in host transactions provided in the embodiment of the present application, by adopting the first task control block and the second task control block to partition the DB2 external data (the various host program data corresponding to the target host transaction) and the DB2 data, so as to realize the centralized collection of the various host program data in the target host transaction process, which can effectively improve the convenience of collecting host program performance data in the host transaction process, and can effectively reduce the collection cost of host program performance data in the host transaction process, and effectively improve the collection accuracy of host program performance data, and thus can effectively improve the accuracy and efficiency of performance analysis and performance problem detection based on the collected performance data, and thus can quickly and accurately troubleshoot or solve performance problems when host program performance problems occur in host transactions, so as to effectively improve the operating stability and reliability of the customer information control system, and improve the reliability of host transactions.

[0065] In order to collect host program data at multiple data collection points, an embodiment of a host program performance collection method in a host transaction provided in this application is provided, see Figure 2 Step 200 of the host program performance collection method in the host transaction specifically includes the following contents:

[0066] Step 210: During the target host transaction process, the performance data of each preset data collection point corresponding to each of the plurality of host programs in the first task control block is collected in real time.

[0067] Step 220: storing the performance data of each of the data collection points corresponding to each of the host programs.

[0068] From the above description, it can be seen that the method for collecting host program performance in host transactions provided in the embodiment of the present application can effectively improve the comprehensiveness of performance data collection by setting multiple data collection points, and thus can further improve the collection accuracy of host program performance data.

[0069] In order to realize the pre-setting of data collection points, an embodiment of the host program performance collection method in the host transaction provided in this application is provided, see Figure 3 , before step 100 or 200 in the host program performance collection method in the host transaction, the following contents are specifically included:

[0070] Step 010: setting a plurality of different data collection points in the first task control block; wherein the data collection points include: a program call collection point, a called program return collection point, a database script execution pre-collection point, and a database script execution post-collection point.

[0071] In step 010, the program call collection point can be written as: program LINK; the called program return collection point can be written as: program RETURN; the collection point before database script execution can be written as: before SQL execution (expressed as SQL-1); the collection point after database script execution can be written as: after SQL execution (expressed as SQL-1).

[0072] Among them, LINK means: program call; RETURN means: the called program returns. For example: program A calls program B, use A LINK B; after program B is executed, it returns the return code or return information to program A, using RETURN.

[0073] From the above description, it can be seen that the method for collecting host program performance in host transactions provided in the embodiment of the present application can further improve the comprehensiveness of performance data collection by setting multiple types of data collection points, and thus can further improve the collection accuracy of host program performance data.

[0074] In order to implement the pre-setting of the performance data collection program, an embodiment of the host program performance collection method in the host transaction provided in this application is shown in FIG. Figure 4 , after step 010 and before step 200 in the host program performance collection method in the host transaction, the following contents are specifically included:

[0075] Step 020: respectively setting a performance data collection program corresponding to each of the data collection points.

[0076] It can be understood that the performance data collection program can use the EXIT program module. Specifically, four CICS EXIT program modules are newly added and deployed to collect the current timestamp and QR TCB usage time of the four data collection points of "program LINK", "program RETURN", "before SQL execution" and "after SQL execution" respectively.

[0077] For the corresponding Figure 5 Based on step 020, step 210 in the host program performance collection method in the host transaction specifically includes the following contents:

[0078] Step 211: activating each of the performance data collection programs, so that each of the performance data collection programs collects performance data of its corresponding data collection point when or after detecting that the target host transaction has been initiated.

[0079] In one or more embodiments of the present application, the EXIT program module refers to a functional module written in mainframe assembly language, which can read the QR TCB timestamp and the QR TCB total consumption.

[0080] Step 212: If it is detected that the target host transaction has ended, then stop running each of the performance data collection programs.

[0081] Specifically, the EXIT program is activated to prepare to start performance data collection. A host transaction is initiated. The EXIT program collects performance data of each data collection point. The data of each collection point is written to the dataset for storage. It is determined whether the host transaction has ended. If not, step 211 is executed. Otherwise, the EXIT program is closed to stop collecting host transaction performance data.

[0082] From the above description, it can be seen that the method for collecting host program performance in host transactions provided in the embodiment of the present application can further improve the convenience and effectiveness of performance data collection by pre-setting a performance data collection program, thereby further improving the accuracy and efficiency of collecting host program performance data.

[0083] In order to further improve the accuracy and reliability of the collection of host program performance data, an embodiment of a host program performance collection method in a host transaction provided in this application is provided. Figure 6 Step 100 of the host program performance collection method in the host transaction specifically includes the following contents:

[0084] Step 110: Start the preset forced re-entry unit in the customer information control system middleware, so that the forced re-entry unit controls each host program data except the distributed database data to run in the first task control block in the customer information control system middleware.

[0085] In step 110, the forced reentry unit may specifically refer to FORCEQR. It is understandable that FORCEQR is a function provided by CICS middleware. After it is enabled, the application can only run on the QR TCB, while the DB2 database part (such as SQL execution) runs on the L8 TCB.

[0086] It is understandable that if an online program wants to run on CICS, it must be defined on CICS first. Through the definition, CICS is told whether the program can handle data above 16MB, whether it can be dynamically routed, whether the program complies with the thread safety (Threadsafe) standard, or is only Quasi-Reentrant. Multiple Threadsafe programs can access the same resource at the same time, while Quasi-Reentrant programs must rely on the serial mechanism provided by CICS when accessing shared resources. Threadsafe is an important attribute in program definition.

[0087] From the above description, it can be seen that the host program performance collection method in the host transaction provided by the embodiment of the present application can effectively improve the control accuracy and reliability of each host program data corresponding to the target host transaction running within the preset first task control block by pre-setting a forced re-entry unit, thereby further improving the collection accuracy and reliability of the host program performance data.

[0088] In order to further improve the accuracy and reliability of the collection of host program performance data, an embodiment of a host program performance collection method in a host transaction provided in this application is provided. Figure 6 The host program performance collection method in the host transaction further specifically includes the following contents executed after step 110:

[0089] Step 120: Control the connection tool preset in the second task control block to establish a connection with the data retrieval unit in the distributed database, so that the second task control block processes the distributed database data corresponding to the distributed database.

[0090] In step 120, the connection tool may be a CICS and DB2 connection tool TRUE, so that the CICS and DB2 connection tool TRUE establishes a connection with the data acquisition unit PLAN of BD2 through the thread thread, and because the CICS and DB2 connection tool TRUE is part of the second task control block, the second task control block can process the relevant transaction of the DB2 database. The CPU consumption of this transaction is not counted in the QR TCB consumption, that is, it is not counted in the DB2 external program CPU consumption.

[0091] In one or more embodiments of the present application, the data calling unit PLAN is generated in the BIND process, is an instantiation of DBRM and PACKAGE, and is called when the application is executed.

[0092] From the above description, it can be seen that the method for collecting host program performance in host transactions provided in the embodiment of the present application can effectively improve the accuracy and reliability of the distributed database data corresponding to the distributed database processed by the second task control block by pre-setting the connection tool, thereby further improving the accuracy and reliability of collecting host program performance data.

[0093] In order to more intuitively and quickly perform performance analysis and improve the accuracy and efficiency of performance problem detection based on performance data, an embodiment of a host program performance collection method in a host transaction is provided in the present application, wherein the performance data in the host program performance collection method in the host transaction includes: response time and CPU consumption.

[0094] It is understandable that the performance data includes two major indicators: response time and CPU consumption, and other indicators can be added according to actual application requirements. It is understandable that the difference between two timestamps is the response time; the difference between two QR TCB usage times is the CPU consumption.

[0095] From the above description, it can be seen that the method for collecting host program performance in host transactions provided in the embodiment of the present application can more intuitively and quickly perform performance analysis and improve the accuracy and efficiency of performance problem detection based on performance data through the type classification of performance data, and thus can further quickly and accurately troubleshoot or solve performance problems when host program performance problems occur in host transactions, so as to effectively improve the operating stability and reliability of the customer information control system and improve the reliability of host transactions.

[0096] From the software level, in order to solve the problems of high cost and low accuracy of collecting host program performance data in the host transaction process in the existing EDX tools, the present application provides an embodiment of a host program performance collection device in a host transaction for executing all or part of the content of the host program performance collection method in the host transaction, see Figure 7 The host program performance collection device in the host transaction specifically includes the following contents:

[0097] The control module 10 is used to control each host program data corresponding to the target host transaction running on the customer information control system middleware to run in a preset first task control block, and to make the distributed database data corresponding to the target host transaction run in a second task control block.

[0098] In the control module 10, the customer information control system middleware may adopt CICS middleware; the first task control block may adopt QR task control block, and the second task control block may adopt L8 task control block.

[0099] In one or more embodiments of the present application, QR task control block QR TCB (Quasi-Reentrant Task Control Block): TCB is a linked list used to control tasks in CICS, QR TCB is the main TCB in CICS, and both Threadsafe and nonthreadsafe applications can run on QR TCB.

[0100] In one or more embodiments of the present application, L8 task control block L8 TCB (L8 Mode Open TCB): CICS DB2 connection tool TRUE runs on Open TCB such as L8 TCB. Threadsafe application programs can also run on Open TCB such as L8TCB.

[0101] It can be understood that the distributed database data refers to data such as scripts of the distributed database that need to be executed during the transaction process of the target host, and the distributed database can adopt a relational database DB2.

[0102] In one or more embodiments of the present application, DB2 refers to a large-scale relational database product developed by IBM.

[0103] In one or more embodiments of the present application, since a transaction includes one or more programs, and the execution time of each program includes two parts: the time to execute the program itself (DB2 external program consumption) and the time to execute the DB2 database script (SQL consumption). Therefore, the DB2 data mentioned in the present application refers to the scripts and other data of the DB2 database, and the DB2 external data refers to the data of each host program involved in the host transaction process. The host program performance detection method proposed in the present application refers to the performance detection of the DB2 external data (the data of each host program involved in the host transaction process).

[0104] The collection module 20 is used to collect and store the performance data of each of the host programs in the first task control block during the target host transaction process.

[0105] The embodiment of the host program performance collection device in the host transaction provided in the present application can be specifically used to execute the processing flow of the embodiment of the host program performance collection method in the host transaction in the above-mentioned embodiment. Its functions will not be repeated here, and reference can be made to the detailed description of the above-mentioned method embodiment.

[0106] From the above description, it can be seen that the host program performance collection device in the host transaction provided by the embodiment of the present application, by adopting the first task control block and the second task control block to partition the DB2 external data (the various host program data corresponding to the target host transaction) and the DB2 data, so as to realize the centralized collection of the various host program data in the target host transaction process, which can effectively improve the convenience of collecting host program performance data in the host transaction process, and can effectively reduce the collection cost of host program performance data in the host transaction process, and effectively improve the collection accuracy of host program performance data, and thus can effectively improve the accuracy and efficiency of performance analysis and performance problem detection based on the collected performance data, and thus can quickly and accurately troubleshoot or solve the performance problem when the host program performance problem occurs in the host transaction, so as to effectively improve the operation stability and reliability of the customer information control system, and improve the reliability of the host transaction.

[0107] In order to collect host program data at multiple data collection points, an embodiment of a host program performance collection device in a host transaction provided in the present application is provided, wherein the collection module 20 in the host program performance collection device in the host transaction is specifically used to perform the following contents:

[0108] Step 210: During the target host transaction process, the performance data of each preset data collection point corresponding to each of the plurality of host programs in the first task control block is collected in real time.

[0109] Step 220: storing the performance data of each of the data collection points corresponding to each of the host programs.

[0110] From the above description, it can be seen that the host program performance collection device in the host transaction provided by the embodiment of the present application can effectively improve the comprehensiveness of performance data collection by setting multiple data collection points, and thus can further improve the collection accuracy of host program performance data.

[0111] In order to realize the pre-setting of data collection points, an embodiment of a host program performance collection device in a host transaction provided in the present application is further specifically used to perform the following contents:

[0112] Step 010: setting a plurality of different data collection points in the first task control block; wherein the data collection points include: a program call collection point, a called program return collection point, a database script execution pre-collection point, and a database script execution post-collection point.

[0113] In step 010, the program call collection point can be written as: program LINK; the called program return collection point can be written as: program RETURN; the collection point before database script execution can be written as: before SQL execution (expressed as SQL-1); the collection point after database script execution can be written as: after SQL execution (expressed as SQL-1).

[0114] Among them, LINK means: program call; RETURN means: the called program returns. For example: program A calls program B, use A LINK B; after program B is executed, it returns the return code or return information to program A, using RETURN.

[0115] From the above description, it can be seen that the host program performance collection device in the host transaction provided by the embodiment of the present application can further improve the comprehensiveness of performance data collection by setting multiple types of data collection points, and thus can further improve the collection accuracy of host program performance data.

[0116] In order to implement the pre-setting of the performance data collection program, an embodiment of the host program performance collection device in the host transaction provided in the present application is further specifically used to perform the following contents:

[0117] Step 020: respectively setting a performance data collection program corresponding to each of the data collection points.

[0118] It can be understood that the performance data collection program can use the EXIT program module. Specifically, four CICS EXIT program modules are newly added and deployed to collect the current timestamp and QR TCB usage time of the four data collection points of "program LINK", "program RETURN", "before SQL execution" and "after SQL execution" respectively.

[0119] Correspondingly, based on step 020, the collection module 20 in the host program performance collection device in the host transaction is also specifically used to perform the following contents:

[0120] Step 211: activating each of the performance data collection programs, so that each of the performance data collection programs collects performance data of its corresponding data collection point when or after detecting that the target host transaction has been initiated.

[0121] In one or more embodiments of the present application, the EXIT program module refers to a functional module written in mainframe assembly language, which can read the QR TCB timestamp and the QR TCB total consumption.

[0122] Step 212: If it is detected that the target host transaction has ended, then stop running each of the performance data collection programs.

[0123] Specifically, the EXIT program is activated to prepare to start performance data collection. A host transaction is initiated. The EXIT program collects performance data of each data collection point. The data of each collection point is written to the dataset for storage. It is determined whether the host transaction has ended. If not, step 211 is executed. Otherwise, the EXIT program is closed to stop collecting host transaction performance data.

[0124] From the above description, it can be seen that the host program performance collection device in the host transaction provided by the embodiment of the present application can further improve the convenience and effectiveness of performance data collection by pre-setting the performance data collection program, and thus can further improve the accuracy and efficiency of collecting host program performance data.

[0125] In order to further improve the accuracy and reliability of the collection of host program performance data, in an embodiment of a host program performance collection device in a host transaction provided in the present application, the control module 10 in the host program performance collection device in the host transaction is specifically used to perform the following contents:

[0126] Step 110: Start the preset forced re-entry unit in the customer information control system middleware, so that the forced re-entry unit controls each host program data except the distributed database data to run in the first task control block in the customer information control system middleware.

[0127] In step 110, the forced reentry unit may specifically refer to FORCEQR. It is understandable that FORCEQR is a function provided by CICS middleware. After it is enabled, the application can only run on the QR TCB, while the DB2 database part (such as SQL execution) runs on the L8 TCB.

[0128] It is understandable that if an online program wants to run on CICS, it must be defined on CICS first. Through the definition, CICS is told whether the program can handle data above 16MB, whether it can be dynamically routed, whether the program complies with the thread safety (Threadsafe) standard, or is only Quasi-Reentrant. Multiple Threadsafe programs can access the same resource at the same time, while Quasi-Reentrant programs must rely on the serial mechanism provided by CICS when accessing shared resources. Threadsafe is an important attribute in program definition.

[0129] From the above description, it can be seen that the host program performance collection device in the host transaction provided by the embodiment of the present application can effectively improve the control accuracy and reliability of each host program data corresponding to the target host transaction running within the preset first task control block by pre-setting a forced re-entry unit, thereby further improving the collection accuracy and reliability of the host program performance data.

[0130] In order to further improve the accuracy and reliability of the collection of host program performance data, in an embodiment of a host program performance collection device in a host transaction provided in the present application, the control module 10 in the host program performance collection device in the host transaction is further specifically used to perform the following contents:

[0131] Step 120: Control the connection tool preset in the second task control block to establish a connection with the data retrieval unit in the distributed database, so that the second task control block processes the distributed database data corresponding to the distributed database.

[0132] In step 120, the connection tool may be a CICS and DB2 connection tool TRUE, so that the CICS and DB2 connection tool TRUE establishes a connection with the data acquisition unit PLAN of BD2 through the thread thread, and because the CICS and DB2 connection tool TRUE is part of the second task control block, the second task control block can process the relevant transaction of the DB2 database. The CPU consumption of this transaction is not counted in the QR TCB consumption, that is, it is not counted in the DB2 external program CPU consumption.

[0133] In one or more embodiments of the present application, the data calling unit PLAN is generated in the BIND process, is an instantiation of DBRM and PACKAGE, and is called when the application is executed.

[0134] From the above description, it can be seen that the host program performance collection device in the host transaction provided by the embodiment of the present application can effectively improve the accuracy and reliability of the distributed database data corresponding to the distributed database processed by the second task control block by pre-setting the connection tool, thereby further improving the collection accuracy and reliability of the host program performance data.

[0135] In order to more intuitively and quickly perform performance analysis and improve the accuracy and efficiency of performance problem detection based on performance data, an embodiment of a host program performance collection device in a host transaction is provided in the present application, and the performance data in the host program performance collection device in the host transaction includes: response time and CPU consumption.

[0136] It is understandable that the performance data includes two major indicators: response time and CPU consumption, and other indicators can be added according to actual application requirements. It is understandable that the difference between two timestamps is the response time; the difference between two QR TCB usage times is the CPU consumption.

[0137] From the above description, it can be seen that the host program performance acquisition device in the host transaction provided by the embodiment of the present application can more intuitively and quickly perform performance analysis and improve the accuracy and efficiency of performance problem detection based on performance data through the type classification of performance data, and then when host program performance problems occur in the host transaction, it can further quickly and accurately troubleshoot or solve the performance problems, so as to effectively improve the operating stability and reliability of the customer information control system and improve the reliability of the host transaction.

[0138] In order to further illustrate the present solution, the present application also provides a specific application example of a method and system for collecting host program performance in host transactions. By adding a CICS export program data collection module and enabling FORCEQR to centrally run processing outside DB2 on the QR TCB, the purpose of accurately obtaining the consumption of each program outside DB2 is achieved.

[0139] See also Figure 8 The host program performance collection system in the host transaction for implementing the host program performance collection method in the host transaction specifically includes the following contents:

[0140] CICS middleware 101 , QR task control block 102 , L8 task control block 103 , EIXT program module 104 and DB2 database 105 .

[0141] First, after FORCEQR is turned on, all applications including those complying with the Threadsafe standard can only run in the QR task control block 102 , while SQL processing runs in the L8 task control block 103 .

[0142] It is understandable that FORCEQR is a function provided by CICS middleware. After it is turned on, the application can only run on the QR TCB (equivalent to driving ducks into a cage), while the DB2 database part (such as SQL execution) runs on the L8 TCB. It is understandable that if an online program wants to run on CICS, it must be defined on CICS first. Through the definition, tell CICS whether this program can process data above 16MB line, whether it can be dynamically routed, whether the program complies with the thread safety (Threadsafe) standard, or is only Quasi-Reentrant. Multiple Threadsafe programs can access the same resource at the same time, while Quasi-Reentrant programs must rely on the serial mechanism provided by CICS when accessing shared resources. Threadsafe is an important attribute in the program definition.

[0143] The EIXT program module 104 is an exit program of CICS, which can collect the timestamp and QR TCB consumption of the QR task control block 102. The L8 task control block 103 does not assume the operation of the DB2 external program at this time, but is mainly responsible for the operation of the CICS and DB2 connection tool TRUE, so that the CICS and DB2 connection tool TRUE establishes a connection with the data retrieval unit PLAN of BD2 through the thread thread, and because the CICS and DB2 connection tool TRUE is a part of the L8 task control block 103, the L8 task control block 103 can process the relevant transactions of the DB2 database 105. The CPU consumption of this transaction is not counted in the QR TCB consumption, that is, it is not counted in the CPU consumption of the DB2 external program.

[0144] It is understood that PLAN is a control structure generated in the BIND process, which is a combination of DBRM and PACKAGE and is called when the application is executed. BIND is a processing method that converts the output of the DB2 precompiler into a controllable structure (a package or application plan), through which the path to access data and the execution of certain permissions are selected.

[0145] See also Fig. 9 , which is the QR TCB data collected and formatted by the EIXT program module 104, can be used to conveniently and accurately analyze the performance of various programs outside DB2. The specific description is as follows:

[0146] 1. SQL-1 is the data collection point before SQL execution, and SQL-2 is the data collection point after SQL execution;

[0147] 2. Calculation of response time and CPU consumption of each collection point: timestamp and total QR TCB consumption of the next collection point minus timestamp and total QR TCB consumption of the current collection point;

[0148] 3. The consumption of LINK / RETURN collection points is counted in PROGB, and the consumption of SQL-1 / SQL-2 collection points is counted in PROGA;

[0149] 4. The units of response time and CPU consumption are both microseconds.

[0150] See also Fig.10 The host program performance collection method in the host transaction implemented by the host program performance collection system in the host transaction specifically includes the following contents:

[0151] Step S101, add and deploy 4 CICS EXIT program modules, which are used to collect the current timestamp and QR TCB usage time of the 4 data collection points of "Program LINK", "Program RETURN", "Before SQL Execution" and "After SQL Execution". Among them, LINK means: program call; RETURN means: called program return. For example: program A calls program B, using A LINKB; after program B is executed, it returns the return code or return information to program A, using RETURN.

[0152] It can be understood that the difference between the two timestamps is the response time; the difference between the two QR TCB usage times is the CPU consumption.

[0153] Step S102, start FORCEQR, centralize the processing outside DB2 to run on QR TCB (QR task control block), and run SQL processing on L8 TCB.

[0154] Step S103, activating the EXIT program to prepare to start performance data collection.

[0155] It is understandable that the performance data includes two major indicators: response time and CPU consumption, and other indicators may be added according to actual application requirements.

[0156] Step S104, initiating a host transaction.

[0157] Step S105, the EXIT program collects the performance data of each data collection point.

[0158] Step S106, writing the data of each collection point into the dataset for storage.

[0159] Step S107, determine whether the host transaction has ended, if not, execute step S105, otherwise execute step S108.

[0160] Step S108, activating the EXIT program and stopping the collection of host transaction performance data.

[0161] Step S109, close FORCEQR.

[0162] Step S110: Based on the QR TCB data collected above, the performance of each DB2 external host program in the transaction is analyzed.

[0163] In summary, the present application provides a method and system for collecting host program performance in host transactions, which solves the problems of cumbersome and inefficient use of IBM EDX tracking tools and high operating costs caused by modifying program print run time, and provides a low-cost and more accurate DB2 external host program performance analysis method. The specific advantages of the application example of the present application are as follows:

[0164] 1. Provides a new transaction performance analysis method. Directly obtain the performance reference data of various programs outside DB2, changing the previous problem of printing DB2 PM reports to eliminate database performance problems and then locating the specific program.

[0165] 2. Accuracy: The actual running data of the program is obtained directly in the host memory, and the data is the most accurate.

[0166] 3. Ease of use: This method can directly obtain accurate consumption of each program outside DB2 without using cumbersome debugging tools, modifying the application to output time at each key point, or subtracting the SQL execution time from the program execution time after opening the DB2PM report to obtain the consumption of each program outside DB2.

[0167] From the hardware level, in order to solve the problems of high cost and low accuracy of collecting host program performance data in the host transaction process in the existing EDX tools, the present application provides an embodiment of an electronic device for implementing all or part of the content of the host program performance collection method in the host transaction, and the electronic device specifically includes the following content:

[0168] Fig.11 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig.11 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig.11 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.

[0169] In one embodiment, the host program performance collection function in the host transaction can be integrated into the central processing unit. The central processing unit can be configured to perform the following control:

[0170] Step 100: Control each host program data corresponding to the target host transaction running on the customer information control system middleware to run in a preset first task control block, and make the distributed database data corresponding to the target host transaction run in a second task control block.

[0171] In step 100, the customer information control system middleware may be CICS middleware; the first task control block may be a QR task control block, and the second task control block may be an L8 task control block.

[0172] In one or more embodiments of the present application, QR task control block QR TCB (Quasi-Reentrant Task Control Block): TCB is a linked list used to control tasks in CICS, QR TCB is the main TCB in CICS, and both Threadsafe and nonthreadsafe applications can run on QR TCB.

[0173] In one or more embodiments of the present application, L8 task control block L8 TCB (L8 Mode Open TCB): CICS DB2 connection tool TRUE runs on Open TCB such as L8 TCB. Threadsafe application programs can also run on Open TCB such as L8TCB.

[0174] It can be understood that the distributed database data refers to data such as scripts of the distributed database that need to be executed during the transaction process of the target host, and the distributed database can adopt a relational database DB2.

[0175] In one or more embodiments of the present application, DB2 refers to a large-scale relational database product developed by IBM.

[0176] In one or more embodiments of the present application, since a transaction includes one or more programs, and the execution time of each program includes two parts: the time to execute the program itself (DB2 external program consumption) and the time to execute the DB2 database script (SQL consumption). Therefore, the DB2 data mentioned in the present application refers to the scripts and other data of the DB2 database, and the DB2 external data refers to the data of each host program involved in the host transaction process. The host program performance detection method proposed in the present application refers to the performance detection of the DB2 external data (the data of each host program involved in the host transaction process).

[0177] Step 200: Collect and store performance data of each of the host programs in the first task control block during the target host transaction process.

[0178] From the above description, it can be seen that the electronic device provided in the embodiment of the present application uses the first task control block and the second task control block to partition the DB2 external data (the various host program data corresponding to the target host transaction) and the DB2 data to realize the centralized collection of the various host program data in the target host transaction process, which can effectively improve the convenience of collecting host program performance data in the host transaction process, and can effectively reduce the collection cost of host program performance data in the host transaction process, and effectively improve the collection accuracy of host program performance data, and thus can effectively improve the accuracy and efficiency of performance analysis and performance problem detection based on the collected performance data, and thus can quickly and accurately troubleshoot or solve performance problems when host program performance problems occur in host transactions, so as to effectively improve the operating stability and reliability of the customer information control system and improve the reliability of host transactions.

[0179] In another embodiment, the host program performance collection device in the host transaction can be configured separately from the central processing unit 9100. For example, the host program performance collection device in the host transaction can be configured as a chip connected to the central processing unit 9100, and the host program performance collection function in the host transaction is realized through the control of the central processing unit.

[0180] like Fig.11 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig.11 In addition, the electronic device 9600 may also include Fig.11 For components not shown, reference may be made to the prior art.

[0181] like Fig.11 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.

[0182] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.

[0183] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.

[0184] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.

[0185] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0186] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.

[0187] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module, etc. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.

[0188] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps of the method for collecting host program performance in a host transaction in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps of the method for collecting host program performance in a host transaction in which the execution subject is a server or a client in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0189] Step 100: Control each host program data corresponding to the target host transaction running on the customer information control system middleware to run in a preset first task control block, and make the distributed database data corresponding to the target host transaction run in a second task control block.

[0190] In step 100, the customer information control system middleware may be CICS middleware; the first task control block may be a QR task control block, and the second task control block may be an L8 task control block.

[0191] In one or more embodiments of the present application, QR task control block QR TCB (Quasi-Reentrant Task Control Block): TCB is a linked list used to control tasks in CICS, QR TCB is the main TCB in CICS, and both Threadsafe and nonthreadsafe applications can run on QR TCB.

[0192] In one or more embodiments of the present application, L8 task control block L8 TCB (L8 Mode Open TCB): CICS DB2 connection tool TRUE runs on Open TCB such as L8 TCB. Threadsafe application programs can also run on Open TCB such as L8TCB.

[0193] It can be understood that the distributed database data refers to data such as scripts of the distributed database that need to be executed during the transaction process of the target host, and the distributed database can adopt a relational database DB2.

[0194] In one or more embodiments of the present application, DB2 refers to a large-scale relational database product developed by IBM.

[0195] In one or more embodiments of the present application, since a transaction includes one or more programs, and the execution time of each program includes two parts: the time to execute the program itself (DB2 external program consumption) and the time to execute the DB2 database script (SQL consumption). Therefore, the DB2 data mentioned in the present application refers to the scripts and other data of the DB2 database, and the DB2 external data refers to the data of each host program involved in the host transaction process. The host program performance detection method proposed in the present application refers to the performance detection of the DB2 external data (the data of each host program involved in the host transaction process).

[0196] Step 200: Collect and store performance data of each of the host programs in the first task control block during the target host transaction process.

[0197] From the above description, it can be seen that the computer-readable storage medium provided in the embodiment of the present application partitions and runs DB2 external data (each host program data corresponding to the target host transaction) and DB2 data by adopting the first task control block and the second task control block to realize the centralized collection of each host program data in the target host transaction process, which can effectively improve the convenience of collecting host program performance data in the host transaction process, and can effectively reduce the collection cost of host program performance data in the host transaction process, and effectively improve the collection accuracy of host program performance data, and thus can effectively improve the accuracy and efficiency of performance analysis and performance problem detection based on the collected performance data, and thus can quickly and accurately troubleshoot or solve performance problems when host program performance problems occur in host transactions, so as to effectively improve the operating stability and reliability of the customer information control system, and improve the reliability of host transactions.

[0198] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (devices), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0199] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0200] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for collecting host program performance in host transactions, characterized in that: include: Control each host program data corresponding to the target host transaction running on the customer information control system middleware to run in a preset first task control block, and make the distributed database data corresponding to the target host transaction run in a second task control block; The control of each host program data corresponding to the target host transaction running on the customer information control system middleware is performed in a preset first task control block, including: Starting a preset mandatory reentry unit in the customer information control system middleware, so that the mandatory reentry unit controls each host program data except the distributed database data to run in the first task control block in the customer information control system middleware; Said and making the distributed database data corresponding to the target host transaction run in the second task control block include: Controlling a connection tool preset in the second task control block to establish a connection with a data retrieval unit in a distributed database, so that the second task control block processes the distributed database data corresponding to the distributed database; The performance data of each of the host programs in the first task control block during the target host transaction process is collected and stored.

2. The method for collecting host program performance in host transactions according to claim 1, characterized in that: The collecting and storing the performance data of each of the host programs in the first task control block during the target host transaction process includes: During the target host transaction process, real-time performance data of each preset data collection point corresponding to each of the plurality of host programs in the first task control block is collected; The performance data of each of the data collection points corresponding to each of the host programs is stored.

3. The method for collecting host program performance in host transactions according to claim 2, characterized in that: Before collecting the performance data of each preset data collection point corresponding to each of the plurality of host programs in the first task control block in real time during the target host transaction, the method further includes: Setting a plurality of different data collection points in the first task control block; The data collection points include: program call collection point, called program return collection point, database script execution before collection point and database script execution after collection point.

4. The method for collecting host program performance in host transactions according to claim 3, characterized in that: Before collecting the performance data of each preset data collection point corresponding to each of the plurality of host programs in the first task control block in real time during the target host transaction, the method further includes: respectively setting performance data collection programs corresponding to each of the data collection points; Correspondingly, the real-time collection of performance data of each preset data collection point corresponding to each of the plurality of host programs in the first task control block during the target host transaction process includes: activating each of the performance data collection programs so that each of the performance data collection programs collects performance data of the corresponding data collection points respectively when or after detecting that the target host transaction has been initiated; If it is detected that the target host transaction has ended, each of the performance data collection programs is stopped.

5. The method for collecting host program performance in host transactions according to any one of claims 1 to 4, characterized in that: The performance data includes: response time and CPU consumption.

6. A host program performance collection device in host transactions, characterized in that: include: A control module, used to control each host program data corresponding to the target host transaction running on the customer information control system middleware to run in a preset first task control block, and to make the distributed database data corresponding to the target host transaction run in a second task control block; The control of each host program data corresponding to the target host transaction running on the customer information control system middleware is performed in a preset first task control block, including: Starting a preset mandatory reentry unit in the customer information control system middleware, so that the mandatory reentry unit controls each host program data except the distributed database data to run in the first task control block in the customer information control system middleware; Said and making the distributed database data corresponding to the target host transaction run in the second task control block include: Controlling a connection tool preset in the second task control block to establish a connection with a data retrieval unit in a distributed database, so that the second task control block processes the distributed database data corresponding to the distributed database; The collection module is used to collect and store the performance data of each host program in the first task control block during the target host transaction process.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for collecting host program performance in a host transaction according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for collecting host program performance in a host transaction as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Performance monitoring method and apparatus

    CN106407085A

  • Bank host transaction monitoring and analyzing method

    CN110119985A