Application resource monitoring method and device, electronic equipment, storage medium and program
By obtaining the business application layer log data and determining the current record value, and generating early warning information, the problems of poor timeliness and low accuracy in the existing technology are solved, and timely early warning and efficient monitoring of abnormal use of application system resources are achieved.
Patent Information
- Application Number
- CN202411877944.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-21
AI Technical Summary
The existing application resource monitoring technology has problems such as poor timeliness, difficulty in early warning and low accuracy in software critical application resource monitoring business scenarios, and it is difficult to adapt to the ever-changing system environment.
By obtaining the business application layer log data, determining the current record value of the target monitoring application resource, and generating early warning information when the warning critical value is reached, realizing a timely warning of abnormal resource usage problems in the application system.
It improves the accuracy and efficiency of application resource monitoring, promptly warns of abnormal resource use problems, and thus improves the operating performance and stability of the application system.
Smart Images

Figure CN119668996A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the fields of big data and financial technology, and in particular, to an application resource monitoring method, device, electronic device, storage medium and program. Background Art
[0002] Application monitoring technology refers to the technology of real-time monitoring and management of various application layer resources involved in the operation of the software system.
[0003] In the business scenario of software critical application resource monitoring, application monitoring technology can be used to monitor and manage various application layer resources of the software system in real time to ensure the stability and reliability of the software system. At present, application monitoring technology has been widely used in the business scenario of software critical application resource monitoring. For example, in the financial industry, application monitoring technology can be used to monitor and manage the resources of key business systems such as network transaction systems and payment systems in real time to ensure the stability and reliability of the system. In the Internet industry, application monitoring technology can be used to monitor and manage the resources of key business systems such as websites and servers in real time to ensure the stability and reliability of services.
[0004] In the process of implementing the present invention, the inventors found that the current application monitoring technology has some major defects and deficiencies in the business scenario of software critical application resource monitoring: (1) It is difficult to find potential problems: application monitoring technology can only detect problems that have already occurred, and it is difficult to find potential problems. In software critical application resource monitoring, there may be some resource bottleneck risks caused by business development and changes, such as the shortage of resources allocated by the original system and the long transaction processing time caused by the rapid increase in transaction users or transaction numbers. These problems may not be easy to detect, but they will affect the stability and performance of the system operation. (2) The burden of data collection and processing is heavy: current application monitoring technology needs to collect and process a large amount of real business data such as a large amount of transaction data, which may cause system performance to decline. In addition, for a large amount of business data, analysis and processing will become more difficult. (3) Data accuracy problem: the business data collected by the current application monitoring technology may have certain errors, which may lead to inaccurate monitoring results. For example, some monitoring tools may be affected by error information in the system log, resulting in inaccurate monitoring results. (4) It is difficult to adapt to the ever-changing system environment: current application monitoring technology needs to adapt to the ever-changing system environment. For example, when the system is upgraded or updated, the monitoring tool may need to be adjusted to maintain the accuracy of monitoring. (5) Application monitoring technology needs to rely on the application software itself to work properly. If the application software has defects or deficiencies, the monitoring technology will also be affected. For example, if the version of the application software is too old, the monitoring technology may not be able to support certain new functions, resulting in poor monitoring results. If the configuration of the application software is too low, the monitoring technology may not be able to collect enough information, resulting in inaccurate monitoring. Summary of the invention
[0005] The embodiments of the present invention provide an application resource monitoring method, device, electronic device, storage medium and program, which can timely warn of abnormal resource usage problems in the application system, improve the accuracy and efficiency of application resource monitoring, and further improve the operating performance and stability of the application system.
[0006] According to one aspect of the present invention, there is provided an application resource monitoring method, comprising:
[0007] Acquire business application layer log data; wherein the business application layer log data includes target monitoring application resource information;
[0008] Determining the current record value of each target monitoring application resource according to the target monitoring application resource information;
[0009] When it is determined that the current record value of the target monitoring application resource reaches the warning critical value, warning information of the target monitoring application resource is generated.
[0010] According to another aspect of the present invention, there is provided an application resource monitoring device, comprising:
[0011] A business application layer log data acquisition module, used to acquire business application layer log data; wherein the business application layer log data includes target monitoring application resource information;
[0012] A current record value determination module, used to determine the current record value of each target monitoring application resource according to the target monitoring application resource information;
[0013] The warning information generation module is used to generate warning information of the target monitoring application resource when it is determined that the current record value of the target monitoring application resource reaches the warning critical value.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the application resource monitoring method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the application resource monitoring method described in any embodiment of the present invention when executed.
[0019] According to another aspect of the present invention, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the application resource monitoring method described in any embodiment of the present invention is implemented.
[0020] The embodiment of the present invention obtains business application layer log data including target monitoring application resource information to determine the current record value of each target monitoring application resource based on the target monitoring application resource information, so as to generate warning information of the target monitoring application resource when it is determined that the current record value of the target monitoring application resource reaches the warning critical value, thereby solving the problems of poor timeliness, difficulty in early warning and low accuracy in existing application resource monitoring methods, and being able to timely warn of abnormal resource usage problems in the application system, thereby improving the accuracy and efficiency of application resource monitoring, and further improving the operating performance and stability of the application system.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a flow chart of an application resource monitoring method provided by Embodiment 1 of the present invention;
[0024] Figure 2 is a flow chart of an application resource monitoring method provided by Embodiment 2 of the present invention;
[0025] Figure 3 is a structural diagram of an application resource monitoring system provided by Embodiment 2 of the present invention;
[0026] Figure 4 is a schematic diagram of an application resource monitoring device provided by Embodiment 3 of the present invention;
[0027] Figure 5 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 This is a flowchart of an application resource monitoring method provided by the first embodiment of the present invention. This embodiment is applicable to the case where application resources are monitored in real time according to business application layer log data. The method can be executed by an application resource monitoring device, which can be implemented by software and / or hardware and can generally be integrated in an electronic device. The electronic device can be a terminal device or a server device. As long as it can perform application resource monitoring, the embodiment of the present invention does not limit the specific device type of the electronic device. Accordingly, if Figure 1 As shown, the method includes the following operations:
[0032] S110. Obtain business application layer log data; wherein the business application layer log data includes target monitoring application resource information.
[0033] Among them, the business application layer log data can be the log data collected for a business application that needs to monitor application resources. This log data is different from the system log data and is a log type that records business application layer information. The so-called application resources can be software resources configured by the application layer. Exemplarily, for a bank transaction system, application resources can include but are not limited to transaction codes, transaction dates, transaction area codes, transaction outlet numbers, transaction method numbers, transaction teller numbers, transaction terminal numbers, and transaction serial numbers, and other various transaction-related application layer resource information. For social software, application resources can include but are not limited to social accounts, social areas, and social codes, and other social-related application layer resource information. It can be understood that application resources need to be configured according to actual needs, and the embodiments of the present invention do not limit the types of business applications and the types of application resources for business applications. The target monitoring application resource information can be information about application resources that need to be monitored and warned for business applications.
[0034] In the embodiment of the present invention, when it is necessary to monitor the application resources of a business application, the business application layer log data of the business application can be obtained. The business application layer log data records the usage of application resources related to the application layer, and thus can include target monitoring application resource information that needs to be monitored.
[0035] S120. Determine the current record value of each target monitoring application resource according to the target monitoring application resource information.
[0036] The target monitoring application resource may be an application resource type that needs to be monitored and warned for a business application.
[0037] Correspondingly, after the target monitoring application resource information is obtained, various types of target monitoring application resources may be parsed according to the target monitoring application resource information to obtain the current record value of each target monitoring application resource.
[0038] S130. When it is determined that the current record value of the target monitoring application resource reaches the warning critical value, generate warning information of the target monitoring application resource.
[0039] The warning threshold value may be a warning value set for the target monitoring application resource. Optionally, the warning threshold value may be a value less than and close to the threshold value, or may be the threshold value itself. The embodiment of the present invention does not limit the specific value of the warning threshold value.
[0040] During the operation of business applications, application resources generally increase gradually with the development and changes of business applications. In order to realize monitoring and early warning of each target monitoring application resource, an early warning critical value can be configured for each target monitoring application resource. For example, the threshold of each target monitoring application resource can be used as the early warning critical value. Or, in order to discover potential problems more quickly, the adjacent value that is less than the threshold of the target monitoring application resource can also be used as the early warning critical value. Correspondingly, if it is found that the current recorded value of the target monitoring application resource has reached the early warning critical value according to the information recorded in the log data of the business application layer, it indicates that the allocation of the target monitoring application resource has reached the resource bottleneck. In order to avoid affecting the stability and performance of the system operation, early warning information of the target monitoring application resource can be generated in real time to realize early warning of the target monitoring application resource.
[0041] The above technical solution monitors application resources by using business application layer log data, which belongs to a separate asynchronous monitoring mechanism. It can meet the monitoring requirements without relying on the application software itself, and the system resources occupied by itself are very small, and it does not have any impact on the normal operation of the current application system. At the same time, the above solution can monitor the critical resource usage of application software at the application level, so as to timely discover abnormal resource usage problems that cannot be discovered at the system level, timely discover critical resource bottlenecks and issue early warnings, and effectively avoid system crashes or degradation of operating performance. Through the compatibility design of log file records, the compatibility of new and old versions of application software is achieved. By using business application layer log data to monitor application resources, it can avoid the need for existing monitoring tools to collect and analyze a large amount of business data. At the same time, log data can also be compatible with different versions of application software, avoiding the problem that the monitoring tool needs to be adjusted due to version upgrades, and can maintain the accuracy of application resource monitoring for a long time. The above application resource monitoring method can effectively help users monitor the critical resource usage of application software, thereby improving the stability and performance of the system, and has high practical value.
[0042] The embodiment of the present invention obtains business application layer log data including target monitoring application resource information to determine the current record value of each target monitoring application resource based on the target monitoring application resource information, so as to generate warning information of the target monitoring application resource when it is determined that the current record value of the target monitoring application resource reaches the warning critical value, thereby solving the problems of poor timeliness, difficulty in early warning and low accuracy in existing application resource monitoring methods, and being able to timely warn of abnormal resource usage problems in the application system, thereby improving the accuracy and efficiency of application resource monitoring, and further improving the operating performance and stability of the application system.
[0043] Embodiment 2
[0044] Figure 2 is a flowchart of an application resource monitoring method provided by the second embodiment of the present invention. This embodiment is specific based on the above embodiment. In this embodiment, multiple specific optional implementation methods are provided for obtaining business application layer log data, determining the current record value of each target monitoring application resource, and configuring the limit parameters corresponding to the target monitoring application resource. Figure 2 As shown, the method of this embodiment may include:
[0045] S210: Determine the limit parameter corresponding to the target monitoring application resource, and configure the warning critical value of the limit parameter corresponding to the target monitoring application resource.
[0046] The limit parameter may be an upper limit parameter or a lower limit parameter for configuring the target monitoring application resource configuration.
[0047] In an optional embodiment of the present invention, the target monitored application resource is an application critical resource of a transaction business; the application critical resource of the transaction business includes at least one of the following: application software identification, application running container identification, transaction code, transaction date, transaction area code, transaction outlet number, transaction method number, transaction teller number, transaction terminal number, transaction serial number, transaction account number, database processing time, and transaction processing time. This type of resource information continues to increase with the development of the business. When the critical limit of the application system is reached, it will have a significant impact on the stability and performance of the operation of the business application system. Considering the stability and performance of the system operation, this type of resource information must be monitored by limit.
[0048] Before monitoring each target monitoring application resource, the limit parameters corresponding to different target monitoring application resources can be determined first, so as to configure the warning critical value of the limit parameter corresponding to the target monitoring application resource. By pre-configuring the warning critical value of the limit parameter corresponding to the target monitoring application resource, the monitoring reference standard for the target monitoring application resource can be set, thereby improving the automation of application resource monitoring.
[0049] In an optional embodiment of the present invention, the limit parameters include first target monitoring limit parameters, and the configuration of the warning critical value of the limit parameters corresponding to the target monitoring application resources may include: determining the hierarchical limit parameter type of each of the first target monitoring limit parameters; and configuring the warning critical value of each of the first target monitoring limit parameters according to the hierarchical limit parameter type of each of the first target monitoring limit parameters.
[0050] Among them, the first target monitoring limit parameter can be a single-dimensional limit parameter, which can include hierarchical limit parameters, and can also include non-hierarchical limit parameters. As long as it is a single-dimensional limit parameter, the embodiment of the present invention does not limit the specific parameter type of the first target monitoring limit parameter. The hierarchical limit parameter type can be used to distinguish the hierarchical types of limit parameters. Exemplarily, taking the transaction business as an example, the hierarchical types of limit parameters can include but are not limited to application-level limit parameters, regional-level limit parameters, and transaction-level limit parameters.
[0051] For the first target monitoring limit parameter of a single dimension, the hierarchical limit parameter type of each first target monitoring limit parameter can be determined first. For example, for target monitoring application resources such as application running container ID, database processing time and transaction processing time, their hierarchical limit parameter type can be configured as application-level limit parameter, and for target monitoring application resources such as transaction code and transaction date, their hierarchical limit parameter type can be configured as transaction-level limit parameter, etc. Further, according to the hierarchical limit parameter type of each first target monitoring limit parameter, with reference to the actual business needs of the business application, the warning critical value of each first target monitoring limit parameter can be configured.
[0052] The above technical solution can realize precise configuration of each limit parameter by configuring the warning critical value of the limit parameter of a single dimension according to the hierarchical limit parameter type, which is conducive to special monitoring of target monitoring application resources.
[0053] In an optional embodiment of the present invention, the limit parameter may include a second target monitoring limit parameter, and the configuration of the warning critical value of the limit parameter corresponding to the target monitoring application resource may include: determining a hierarchical limit parameter identifier corresponding to the second target monitoring limit parameter; generating a target parameter identifier of the second target monitoring limit parameter based on the hierarchical limit parameter identifier corresponding to the second target monitoring limit parameter and the native parameter identifier of the second target monitoring limit parameter; and configuring the warning critical value of the second target monitoring limit parameter based on the target parameter identifier of the second target monitoring limit parameter.
[0054] The second target monitoring quota parameter may be a quota parameter configured through multi-dimensional information. The hierarchical quota parameter identifier may be a quota parameter identifier with priority distinction. The native parameter identifier may be an identifier of the quota parameter itself. The target parameter identifier may be an identifier of the second target monitoring quota parameter.
[0055] For the multi-dimensional second target monitoring limit parameter, the hierarchical limit parameter identifier corresponding to each second target monitoring limit parameter can be determined first. Exemplarily, the hierarchical limit parameter identifier can be an identifier with a priority distinction effect, such as an application number, an area number, and a transaction code. Furthermore, based on the hierarchical limit parameter identifier corresponding to the second target monitoring limit parameter and the native parameter identifier of the second target monitoring limit parameter, a target parameter identifier of the second target monitoring limit parameter is generated. Exemplarily, the target parameter identifier can be "application number + monitoring resource name", "area number ++ monitoring resource name" and "transaction code + monitoring resource name", etc. Among them, "monitoring resource name" is the native parameter identifier of the second target monitoring limit parameter. After obtaining the target parameter identifier, the warning critical value of the second target monitoring limit parameter can be configured based on the target parameter identifier.
[0056] The above technical solution can meet the special monitoring needs of special application resources by configuring the warning critical values of limit parameters in multiple restriction dimensions according to the hierarchical limit parameter identifiers combined with the native parameter identifiers, which is conducive to personalized monitoring of target monitoring application resources and timely detection of anomalies.
[0057] Figure 3 Schematic diagram of the structure of an application resource monitoring system provided by Embodiment 2 of the present invention. Figure 3 As shown, the above-mentioned application resource monitoring method can be executed by an application resource monitoring system. Optionally, the application resource monitoring system can be configured with a critical resource parameter setting module for setting limit parameters for application resources of business applications. Optionally, the limit parameters can include two types: first target monitoring limit parameters and second target monitoring limit parameters. Among them, the first target monitoring limit parameter can be a single-dimensional limit parameter. Taking the transaction business application as an example, illustratively, the first target monitoring limit parameter is further divided into application-level limit parameters, regional-level limit parameters, transaction-level limit parameters or a combination of the three. For example, application-level limit parameters may include but are not limited to the maximum number of application software running containers (such as a maximum value of 99), the maximum database processing time (such as a maximum value of 9999999) and the maximum transaction processing time (such as a maximum value of 99999999); regional-level limit parameters may include but are not limited to the maximum number of POS (Point of Sale) (such as a maximum value of 99999), ATM (Automated Teller Machine) (such as 9999) and self-service terminals (such as 9999) in the region; transaction-level limit parameters may include but are not limited to a single transaction amount limit (maximum value of 50,000), a transaction validity period (such as a maximum value of 20251231) and a transaction time limit (such as a maximum value of 15:00), etc., refer to Table 1, Table 2 and Table 3.
[0058] Table 1 List of application level limit parameters
[0059] Application ID Maximum number of running containers Maximum database processing time (seconds) Maximum transaction processing time (seconds) Credit card application 99 2 3
[0060] Table 2 Regional limit parameters
[0061] Area Code Maximum number of POS Maximum number of ATMs Maximum number of self-service terminals AA Region 99999 9999 9999
[0062] Table 3 Transaction level limit parameters
[0063] Transaction Code Single transaction limit Trading day limit Trading time limit 2801 50000 20241231 15:00
[0064] For specific monitoring requirements, you can configure the second target monitoring limit parameters according to "application number + monitoring resource name", "region number ++ monitoring resource name", "transaction code + monitoring resource name", and set critical values for them to monitor and identify abnormalities in the application resources.
[0065] S220. Determine the data monitoring period of the target monitoring application resource. When it is determined that the current system time reaches the data monitoring period of the target monitoring application resource, obtain the business application layer log data generated between the previous data monitoring period time and the current system time.
[0066] Wherein, the business application layer log data includes target monitoring application resource information.
[0067] The data monitoring period can be used as a reference to obtain business application layer log data. For example, the data monitoring period can be 1 day or 2 days, etc. The data monitoring periods corresponding to different target monitoring application resources can be the same or different, and the embodiment of the present invention does not limit this.
[0068] In order to avoid the problem that the large amount of business application layer log data leads to a heavy burden on data collection and processing, the target monitoring application resource can be configured with a matching data monitoring cycle. Accordingly, the business application layer log data can be obtained regularly according to the configured data monitoring cycle. Specifically, for the data monitoring cycle of each target monitoring application resource, when it is determined that the current system time reaches the data monitoring cycle of the target monitoring application resource, the business application layer log data generated between the previous data monitoring cycle time and the current system time can be obtained. It can be understood that when the interval between different data monitoring cycles is long, the business application layer log data obtained in different cycles may be different; when the interval between different data monitoring cycles is short, the business application layer log data obtained in different cycles may be the same.
[0069] By configuring the data monitoring cycle for the target monitoring application resources and obtaining the business application layer log data generated within the cycle based on the data monitoring cycle, the amount of basic data during application resource monitoring can be reduced and the efficiency and accuracy of data analysis can be improved.
[0070] S230. Create a business application log structure according to the target monitoring application resource information; wherein the business application log structure of the specific monitoring business includes an independent application resource monitoring field.
[0071] The business application log structure may be a data structure obtained by parsing the target monitoring application resource information. The independent application resource monitoring field may be a field configured to meet special monitoring requirements.
[0072] Specifically, after obtaining the business application layer log data including the target monitoring application resource information, the business application layer log data can be field parsed, and a formatted business application log structure can be generated according to the field parsing result. In the business application log structure, an independent application resource monitoring field can also be included. Optionally, the independent application resource monitoring field can further include a subdivided data structure, which can be further parsed into a substructure including multiple fields.
[0073] S240: Parse the business application log structure to obtain the current record value of each target monitoring application resource.
[0074] Accordingly, after obtaining the business application log structure corresponding to the target monitoring application resource information, the business application log structure can be parsed, and the current record value of the target monitoring application resource can be determined according to each field included in the business application log structure.
[0075] The above technical solution determines the current record value of the target monitoring application resource by creating a business application log structure, thereby improving the parsing efficiency and processing efficiency of the business application layer log data.
[0076] S250. When it is determined that the current record value of the target monitoring application resource reaches the warning critical value, generate warning information of the target monitoring application resource.
[0077] Continue with the above Figure 3 The application resource monitoring system shown in the figure is used as an example. In a specific example, Figure 3 As shown, the application resource monitoring system may also include a transaction log recording module for registering the transaction operation information of the business application software, that is, storing the transaction operation information to obtain a transaction log file. For transactions with specific monitoring requirements, the application resource information that needs to be specially monitored can be registered in the "independent character field" field.
[0078] Among them, in the transaction business scenario, the transaction log structure, which can be called a transaction log file, can include application critical resources accessed by the exchange, such as application software ID, application running container ID, transaction code, transaction date, transaction area code, transaction outlet number, transaction method number, transaction teller number, transaction terminal number, transaction serial number, transaction account number, database processing time, transaction processing time and other application resource information. At the same time, an independent application resource monitoring field can also be set in the transaction log structure. The independent application resource monitoring field can be referred to as an independent character field, which is used to record the application resource information of a specific transaction code, so as to monitor the application resource information occupied by a specific exchange. Reference Table 4 for the transaction log structure:
[0079] Table 4 Transaction log structure list
[0080]
[0081] The independent character field can be further subdivided into a data structure, referring to Table 5, which can be a loop structure:
[0082] Table 5 Independent character field structure list
[0083]
[0084] It can be learned from the above independent character field that the character length of the network point number is 2 and the current record value is 99.
[0085] like Figure 3 As shown, the application resource monitoring system can use the log parsing asynchronous process to perform data parsing and analysis, thereby reducing the performance impact on real-time trading services. The log parsing asynchronous process can query the latest transaction log regularly (such as daily), parse the regularly acquired transaction log data, obtain the latest transaction information, and check whether the record value of the current transaction is close to or reaches the maximum critical value according to the parameter limits of various application resources. If the record value of the current transaction is close to or reaches the critical value, it is sent to the critical resource warning module. If the record value of the current transaction exceeds the critical value, it is likely to be an abnormal transaction. For specific monitoring requirements, the independent character fields in the log can be parsed, and the application resources set by the exchange can be checked as required to see if they are running normally.
[0086] The critical resource warning module in the application resource monitoring system can receive warning information sent by the log parsing asynchronous process, and send the warning information to the relevant production operation and maintenance monitoring system or relevant personnel through various external channels to intervene in advance and avoid the occurrence of actual production problems.
[0087] Based on Figure 3 The application resource monitoring system shown can implement a method for monitoring critical resources of application software, including the following steps:
[0088] Step 1: Set the application resources and limit parameters that need to be monitored through the critical resource parameter setting module; the application resource setting limit parameters can be further divided into application-level limit parameters, regional-level limit parameters, transaction-level limit parameters, or a combination of the three.
[0089] Step 2. The application software records the log information of each transaction through the transaction log recording module, including: application software ID, application running container ID, transaction code, transaction date, transaction area code, transaction branch number, transaction method number, transaction teller number, transaction terminal number, transaction serial number, transaction account number, database processing time and transaction processing time, etc.
[0090] Step 3: Log parsing The asynchronous process periodically accesses (e.g., daily) the latest transaction log, parses the transaction log data, and checks whether the record value of the current transaction has approached or reached the maximum critical value according to the parameter limits of various critical resources. If it is close to or reaches the critical value, it is sent to the critical resource warning module. For those with specific monitoring requirements, the independent character fields in the log are parsed at the same time, and the critical resources set by the exchange are checked as required to see if they are operating normally.
[0091] Step 4: The critical resource warning module receives the warning information sent by the log parsing asynchronous process, and sends the warning information to the relevant production operation and maintenance monitoring system or relevant personnel through various external channels to intervene in advance and avoid the occurrence of actual production problems.
[0092] The application resource monitoring method provided by the above technical solution can overcome the technical shortcomings of existing application resource monitoring technology, is simple to implement and has low implementation cost, and is an important supplement to the technical means of critical resource monitoring of application software. The application resource monitoring method adopts a separate asynchronous processing mechanism, designs and parses the business application layer log data, and uses a variety of optional methods to configure the corresponding application resource limit parameters, so that application resource bottlenecks can be discovered in time from the application level and early warnings can be issued; at the same time, through the compatibility design of log file records, the compatibility of different versions of application software can be achieved.
[0093] In the technical solution of the present disclosure, the collected information (such as transaction-related information, etc.) is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0094] It should be noted that, in the embodiment of the present invention, a corresponding operation entry may be provided for the user to choose to agree or reject the automated decision result; if the user chooses to reject, the expert decision process is entered.
[0095] It should be noted that any arrangement and combination of the technical features in the above embodiments also falls within the protection scope of the present invention.
[0096] Embodiment 3
[0097] Figure 4 is a schematic diagram of an application resource monitoring device provided by Embodiment 3 of the present invention, such as Figure 4 As shown, the device includes: a business application layer log data acquisition module 310, a current record value determination module 320 and an early warning information generation module 330, wherein:
[0098] The business application layer log data acquisition module 310 is used to acquire business application layer log data; wherein the business application layer log data includes target monitoring application resource information;
[0099] A current record value determination module 320, configured to determine the current record value of each target monitoring application resource according to the target monitoring application resource information;
[0100] The warning information generation module 330 is used to generate warning information of the target monitoring application resource when it is determined that the current record value of the target monitoring application resource reaches the warning critical value.
[0101] The embodiment of the present invention obtains business application layer log data including target monitoring application resource information to determine the current record value of each target monitoring application resource based on the target monitoring application resource information, so as to generate warning information of the target monitoring application resource when it is determined that the current record value of the target monitoring application resource reaches the warning critical value, thereby solving the problems of poor timeliness, difficulty in early warning and low accuracy in existing application resource monitoring methods, and being able to timely warn of abnormal resource usage problems in the application system, thereby improving the accuracy and efficiency of application resource monitoring, and further improving the operating performance and stability of the application system.
[0102] Optionally, the business application layer log data acquisition module 310 is also used to: determine the data monitoring period of the target monitoring application resource; and when it is determined that the current system time has reached the data monitoring period of the target monitoring application resource, obtain the business application layer log data generated between the previous data monitoring period time and the current system time.
[0103] Optionally, the current record value determination module 320 is also used to: create a business application log structure based on the target monitoring application resource information; wherein the business application log structure of a specific monitoring business includes an independent application resource monitoring field; and parse the business application log structure to obtain the current record value of each target monitoring application resource.
[0104] Optionally, the above-mentioned device also includes a warning critical value configuration module, which is used to: determine the limit parameters corresponding to the target monitoring application resources; and configure the warning critical value of the limit parameters corresponding to the target monitoring application resources.
[0105] Optionally, the limit parameters include first target monitoring limit parameters, and the warning critical value configuration module is also used to: determine the hierarchical limit parameter type of each of the first target monitoring limit parameters; and configure the warning critical value of each of the first target monitoring limit parameters according to the hierarchical limit parameter type of each of the first target monitoring limit parameters.
[0106] Optionally, the limit parameters include a second target monitoring limit parameter, and the warning critical value configuration module is also used to: determine the hierarchical limit parameter identifier corresponding to the second target monitoring limit parameter; generate the target parameter identifier of the second target monitoring limit parameter based on the hierarchical limit parameter identifier corresponding to the second target monitoring limit parameter and the native parameter identifier of the second target monitoring limit parameter; and configure the warning critical value of the second target monitoring limit parameter based on the target parameter identifier of the second target monitoring limit parameter.
[0107] Optionally, the target monitored application resources are application critical resources of transaction business; the application critical resources of the transaction business include at least one of the following: application software identification, application running container identification, transaction code, transaction date, transaction area code, transaction outlet number, transaction method number, transaction teller number, transaction terminal number, transaction serial number, transaction account number, database processing time and transaction processing time.
[0108] The above application resource monitoring device can execute the application resource monitoring method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the application resource monitoring method provided by any embodiment of the present invention.
[0109] Since the application resource monitoring device introduced above is a device that can execute the application resource monitoring method in the embodiment of the present invention, based on the application resource monitoring method introduced in the embodiment of the present invention, the technical personnel of the field can understand the specific implementation of the application resource monitoring device of the present embodiment and its various variations, so how the application resource monitoring device implements the application resource monitoring method in the embodiment of the present invention is not described in detail here. As long as the technical personnel of the field implement the device adopted by the application resource monitoring method in the embodiment of the present invention, it belongs to the scope of protection of this application.
[0110] Embodiment 4
[0111] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0112] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0113] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0114] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the application resource monitoring method.
[0115] Optionally, the application resource monitoring method may include:
[0116] Acquire business application layer log data; wherein the business application layer log data includes target monitoring application resource information;
[0117] Determining the current record value of each target monitoring application resource according to the target monitoring application resource information;
[0118] When it is determined that the current record value of the target monitoring application resource reaches the warning critical value, warning information of the target monitoring application resource is generated.
[0119] In some embodiments, the application resource monitoring method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the application resource monitoring method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the application resource monitoring method in any other appropriate manner (e.g., by means of firmware).
[0120] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0121] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0122] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0123] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0124] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0125] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0126] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0127] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for monitoring application resources, characterized in that: include: Acquire business application layer log data; wherein the business application layer log data includes target monitoring application resource information; Determining the current record value of each target monitoring application resource according to the target monitoring application resource information; When it is determined that the current record value of the target monitoring application resource reaches the warning critical value, warning information of the target monitoring application resource is generated.
2. The method according to claim 1, characterized in that The obtaining of business application layer log data includes: Determining a data monitoring period for the target monitoring application resource; When it is determined that the current system time reaches the data monitoring period of the target monitoring application resource, the business application layer log data generated between the last data monitoring period time and the current system time is obtained.
3. The method according to claim 1, characterized in that Determining the current record value of each target monitoring application resource according to the target monitoring application resource information includes: Creating a business application log structure according to the target monitoring application resource information; wherein the business application log structure of a specific monitoring business includes an independent application resource monitoring field; The business application log structure is parsed to obtain the current record value of each target monitoring application resource.
4. The method according to claim 1, characterized in that: Before obtaining the business application layer log data, the method further includes: Determine the limit parameters corresponding to the target monitoring application resources; Configure the warning critical value of the limit parameter corresponding to the target monitoring application resource.
5. The method according to claim 4, characterized in that The limit parameter includes a first target monitoring limit parameter, and the configuration of the warning critical value of the limit parameter corresponding to the target monitoring application resource includes: Determining a hierarchical limit parameter type for each of the first target monitoring limit parameters; According to the hierarchical limit parameter type of each of the first target monitoring limit parameters, the warning critical value of each of the first target monitoring limit parameters is configured.
6. The method according to claim 4, characterized in that The limit parameter includes a second target monitoring limit parameter, and the configuration of the warning critical value of the limit parameter corresponding to the target monitoring application resource includes: Determine a hierarchical limit parameter identifier corresponding to the second target monitoring limit parameter; generating a target parameter identifier of the second target monitoring limit parameter according to the hierarchical limit parameter identifier corresponding to the second target monitoring limit parameter and the native parameter identifier of the second target monitoring limit parameter; According to the target parameter identifier of the second target monitoring limit parameter, the warning critical value of the second target monitoring limit parameter is configured.
7. The method according to any one of claims 1 to 6, characterized in that: The target monitored application resources are application critical resources for transaction business; the application critical resources for transaction business include at least one of the following: application software identification, application running container identification, transaction code, transaction date, transaction area code, transaction outlet number, transaction method number, transaction teller number, transaction terminal number, transaction serial number, transaction account number, database processing time and transaction processing time.
8. An application resource monitoring device, characterized in that: include: A business application layer log data acquisition module, used to acquire business application layer log data; wherein the business application layer log data includes target monitoring application resource information; A current record value determination module, used to determine the current record value of each target monitoring application resource according to the target monitoring application resource information; The warning information generation module is used to generate warning information of the target monitoring application resource when it is determined that the current record value of the target monitoring application resource reaches the warning critical value.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the application resource monitoring method described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the application resource monitoring method described in any one of claims 1-7 when executed.
11. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the application resource monitoring method described in any one of claims 1-7 is implemented.