Method, apparatus and computer program product for managing trace records

By using active and inactive dump files in the application system to store tracking records in turn, and storing active files to the backup device when the inactive files are ready, the problems of low tracking record management efficiency and data coverage in the existing technology are solved, and the problem is achieved for more efficient storage and higher reliability.

CN113553207BActive Publication Date: 2024-09-17EMC IP HLDG CO LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010334310.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-24
Publication Date
2024-09-17
Estimated Expiration
2040-04-24

AI Technical Summary

Technical Problem

When the existing technology manages tracking records in application systems, the execution efficiency is not high, and it cannot be restored when the backup device fails. There is a threshold limit on the size of the ring buffer, which leads to the problem of overwriting previous tracking records.

Method used

Active dump files and inactive dump files are used to store trace records in turn, and a storage signal is generated when the inactive dump file is determined to be ready. The active dump file is stored in the backup device to avoid overwriting previous records when the ring buffer is full. Provides larger storage space and high reliability.

Benefits of technology

It improves the management efficiency of tracking records, avoids data loss and untimely storage coverage caused by backup device failure, and ensures continuous storage space and high reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113553207B
    Figure CN113553207B
Patent Text Reader

Abstract

The present disclosure relates to a method, device and computer program product for managing trace records in an application system. The application system includes an active dump file and an inactive dump file. In one method, a set of trace records representing the state of the application system is received. A set of trace records is added to the active dump file. Based on determining that the size of the active dump file meets a predetermined size threshold, and based on determining that the state of the inactive dump file is a ready state, a storage signal for storing the active dump file to a backup device associated with the application system is generated, wherein the ready state indicates that the inactive dump file can be used to store another set of trace records to be received in the future. Further, corresponding devices and computer program products are provided. Using an exemplary implementation of the present disclosure, two dump files can store trace records alternately, and copies of the dump files can be continuously stored in the backup device to improve reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Implementations of the present disclosure relate to management of application systems, and more particularly, to methods, devices, and computer program products for managing trace records in application systems. Background Art

[0002] With the development of computer technology, many types of application systems have emerged. In order to ensure the stable operation of the application system, the status of the application system can be continuously tracked. The status collected at different time points can be stored in a tracking record, and the tracking record can be written to a storage device in the application system. Technical solutions for managing tracking records have been proposed, however, the execution efficiency of these technical solutions is not satisfactory. At this time, how to manage tracking records in application systems has become a research hotspot. Summary of the invention

[0003] Therefore, it is expected to develop and implement a technical solution for managing tracking records in an application system in a more effective manner. It is expected that the technical solution can be compatible with existing application systems and perform operations related to managing tracking records in a more effective manner by modifying various configurations of existing application systems.

[0004] According to a first aspect of the present disclosure, a method for managing trace records in an application system is provided, wherein the application system includes an active dump file and an inactive dump file. In one method, a set of trace records representing the state of the application system is received. A set of trace records is added to the active dump file. Based on determining that the size of the active dump file meets a predetermined size threshold, and based on determining that the state of the inactive dump file is a ready state, a storage signal for storing the active dump file to a backup device associated with the application system is generated, wherein the ready state indicates that the inactive dump file can be used to store another set of trace records to be received in the future.

[0005] According to a second aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory coupled to the at least one processor, the memory having instructions stored therein, the instructions causing the device to perform an action for managing tracking records in an application system when executed by the at least one processor, wherein the application system comprises an active dump file and an inactive dump file. The action comprises: receiving a set of tracking records representing the state of the application system; adding a set of tracking records to the active dump file; generating a storage signal for storing the active dump file to a backup device associated with the application system based on determining that the size of the active dump file meets a predetermined size threshold and based on determining that the state of the inactive dump file is a ready state, wherein the ready state indicates that the inactive dump file can be used to store another set of tracking records to be received in the future.

[0006] According to a third aspect of the present disclosure, there is provided a computer program product, which is tangibly stored on a non-transitory computer-readable medium and comprises machine-executable instructions for executing the method according to the first aspect of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] The features, advantages and other aspects of various implementations of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings, which illustrate several implementations of the present disclosure in an exemplary and non-limiting manner. In the accompanying drawings:

[0008] Figure 1 A block diagram schematically illustrates a process for managing tracking records in an application system according to a technical solution;

[0009] Figure 2 A block diagram schematically illustrates a process for managing tracking records in an application system according to an exemplary implementation of the present disclosure;

[0010] Figure 3 A block diagram schematically illustrates transitions between multiple states for managing tracking records in an application system according to an exemplary implementation of the present disclosure;

[0011] Figure 4 A block diagram schematically shows a method for managing tracking records in an application system according to an exemplary implementation of the present disclosure;

[0012] Figure 5 A flowchart of a method for managing tracking records in an application system according to an exemplary implementation of the present disclosure is schematically shown;

[0013] Figure 6 A block diagram schematically illustrates a process for collecting tracking records according to an exemplary implementation of the present disclosure;

[0014] Figure 7 A flowchart of a method for collecting tracking records according to an exemplary implementation of the present disclosure is schematically shown;

[0015] Figure 8 A block diagram schematically illustrates a data structure of a dump file according to an exemplary implementation of the present disclosure;

[0016] Fig. 9 A flowchart of a method for dumping trace records according to an exemplary implementation of the present disclosure is schematically shown;

[0017] Fig.10 A flowchart schematically shows a method for storing a dump file according to an exemplary implementation of the present disclosure; and

[0018] Fig.11 A block diagram of a device for managing tracking records in an application system according to an exemplary implementation of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0019] The preferred implementations of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred implementations of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the implementations set forth herein. On the contrary, these implementations are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0020] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example implementation" and "an implementation" mean "at least one example implementation". The term "another implementation" means "at least one additional implementation". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0021] It will be understood that the application system herein can be used to perform various functions. Specifically, the application system can be a storage system for providing storage services to users, an email system for providing email services to users, a sales system for providing shopping services to users, etc. For the convenience of description, the specific implementation of the present disclosure will be described below using only the storage system as an example of the application system.

[0022] See first Figure 1 The application environment of the exemplary implementation of the present disclosure is described. Figure 1 A block diagram 100 schematically shows a process for managing tracking records in an application system according to a technical solution. Figure 1 As shown, the state of the application system 110 at different time points can be collected, and the collected state can be stored in multiple tracking records 120. Currently, a technical solution for caching multiple tracking records 120 based on a ring buffer 130 has been proposed.

[0023] In this technical solution, the tracking records in the ring buffer 130 need to be stored in the backup device 140 regularly. In the existing storage system, the tracking records are stored in only one backup device 140 and no other copies exist. When the backup device 140 fails, the tracking records cannot be restored. Storing the records in the ring buffer 130 in the backup device 140 in the storage system may affect the read and write performance of the storage system itself. In addition, there is a threshold limit on the size of the ring buffer 130, and when the ring buffer 130 is filled, the previous tracking records will be overwritten.

[0024] Therefore, it is expected that a more effective method can be provided for managing tracking records. In order to solve the defects in the existing technical solutions, the exemplary implementation of the present disclosure proposes a method for managing tracking records in an application system. According to the exemplary implementation of the present disclosure, an active dump file and an inactive dump file are proposed. The above two files can be used to store tracking records, and a signal can be generated to indicate that the dump file needs to be stored in other storage devices. Figure 2 An overview of exemplary implementations according to the present disclosure is described.

[0025] Figure 2 A block diagram 200 schematically shows a process for managing tracking records in an application system according to an exemplary implementation of the present disclosure. Figure 2 As shown, the application system may include an active dump file 210 and an inactive dump file 220 , and may store a received set of trace records 230 in turn based on the two dump files.

[0026] Specifically, a newly received set of trace records 230 is added to the active dump file 210 to form a set of trace records 212. The trace records can be continuously received. When the state 214 of the active dump file 210 is "full", it can be determined whether to generate a storage signal 240 based on the state of the inactive dump file 220. If the inactive dump file 220 is in the ready state 222, the storage signal 240 can be generated. Using the exemplary implementation of the present disclosure, the two dump files can store the received trace records in turn. In this way, an intermediate layer dump file is set between the trace record and the backup device 250, thereby avoiding the error of overwriting the previously stored trace records when the ring buffer is full in the existing technical solution.

[0027] Further, the storage signal 240 may initiate the storage of the active dump file 210 to the backup device 250, thereby forming a backup file 252 in the backup device 250. In this way, copies of the dump file may be continuously stored in the backup device 250 with a larger storage space, so as to provide more storage space and higher reliability.

[0028] Figure 3 A block diagram 300 schematically shows the transitions between multiple states for managing trace records in an application system according to an exemplary implementation of the present disclosure. According to an exemplary implementation of the present disclosure, there may be an initial state 310, a configuration state 320, and a working state 330. Here, the initial state 310 may represent the initial state of collecting trace records. Initialization operations related to managing trace records have been performed during the startup of the application system, for example, data structures for buffers and dump files for storing trace records, and signals for indicating transitions between various states, etc. The configuration state 320 may represent a state in which configuration has been performed and the management of trace records has been started. Specifically, the buffer size, dump file size, and network address of the backup device, etc. of the trace records have been set at this time. The working state 330 represents a state in which configuration has been completed and can be used to receive and store collected trace records.

[0029] The various states can be converted to each other, for example, through the configuration 312 operation, the initial state 310 can be converted to the configuration state 320; through the destruction 314 operation, the configuration state 320 can be converted to the configuration state 310; through the enable 316 operation, the configuration state 320 can be converted to the working state 330; and through the disable 318 operation, the working state 330 can be converted to the configuration state 320.

[0030] According to an exemplary implementation of the present disclosure, the operations performed in the working state 330 may involve multiple processes. Figure 4 Provide more description. Figure 4 A block diagram 400 of a method for managing tracking records in an application system according to an exemplary implementation of the present disclosure is schematically shown. Figure 4 As shown, the working state 330 may involve a collection process 410, a transmission process 420, and a storage process 430. A transmission signal 412, a storage signal 240, and a storage completion signal 432 may be provided to transfer messages between the various processes.

[0031] like Figure 4 As shown, the collection process 410 may involve writing the collected trace records into a buffer. When the buffer is full, a transfer signal 410 may be generated to start a dump process 420. During the dump process, a set of trace records in the buffer may be dumped into a dump file. When the dump file is full, a storage signal 440 may be generated to start a storage process 430 to store the trace records in the dump file into a backup device. When the storage is completed, a storage completion signal 432 may be generated to notify the dump process 420.

[0032] In the following, we will refer to Figure 5 Describes more details about the dump process. Figure 5 Schematically shows a flow chart of a method 500 for managing tracking records in an application system according to an exemplary implementation of the present disclosure. Figure 5 As shown, at block 510, in an application system including an active dump file and an inactive dump file, a set of trace records 230 representing the state of the application system 110 is received. According to an exemplary implementation of the present disclosure, a set of trace records 230 may be received from a buffer of the application system 110.

[0033] Figure 6 A block diagram 600 schematically illustrates a process for collecting trace records according to an exemplary implementation of the present disclosure. Figure 6 As shown, the application system 110 may include an active buffer 610 and an inactive buffer 620. The size of the buffer may be preset, for example, it may be set that the buffer may accommodate n (n is a positive integer) trace records. The active buffer 610 and the inactive buffer 620 may have the same size. In the initial stage, both buffers are empty. Here, the active buffer 610 is used to receive the collected trace records 630. The collected trace records 630 may be stored in the active buffer 610 to form trace records 612. Newly collected trace records may be continuously added to the active buffer 610 until the active buffer 610 reaches a full state.

[0034] The state 614 of the active buffer 610 can be determined based on the comparison of the number of trace records included in the active buffer 610 with the value n. If the state is full, a dump signal 412 can be generated to start the process of dumping a set of trace records in the active buffer 610 to the active dump file 210. According to an exemplary implementation of the present disclosure, the time to call the dump operation can be determined only by comparing the number of trace records in the active buffer 610 with a predetermined number threshold. In this way, the dump process 420 does not need to care about the specific operation process of how to collect each trace record, but can read a set of collected trace records at one time when the number of collected trace records reaches the predetermined number n, thereby improving the performance of the dump process 420.

[0035] Further, the active buffer 610 and the inactive buffer 620 may be exchanged. In other words, the active buffer 610 and the inactive buffer 620 may be exchanged based on determining that the number of trace records in the active buffer 610 meets a predetermined number threshold. The new active buffer will replace the full old active buffer to continue storing trace records. Using the exemplary implementation of the present disclosure, it is ensured that there is always an active buffer to accommodate newly collected trace records during the collection of trace records. Compared with the traditional ring buffer, it is possible to avoid the situation where subsequent trace records overwrite previous trace records due to untimely storage.

[0036] After the exchange, the collected new trace records will be stored in the current active buffer (i.e., the original inactive buffer 620). The trace records can be collected based on a method similar to the above description. If the current active buffer is full, the next dump signal can be generated to dump the trace records into the dump file.

[0037] Figure 7 A flow chart of a method 700 for collecting trace records according to an exemplary implementation of the present disclosure is schematically shown. At box 710, trace records describing the state of the application system can be collected from the monitoring system. At box 720, the collected trace records can be stored in the active buffer 610. At box 730, it can be continuously determined whether the active buffer 610 is full. If the active buffer 610 is full, the method 700 proceeds to box 740 to generate a dump signal 412; if the buffer is not full, the method 700 returns to box 710 to continue collecting the next trace record. The generated dump signal 412 can be used to notify the dump process 420 to receive a set of trace records (i.e., a set of records in the active buffer). Further, at box 750, the active buffer and the inactive buffer can be exchanged.

[0038] return Figure 5 In block 510, if a dump signal 412 is received, a set of trace records can be retrieved from the active buffer 610; if a dump signal 412 is not received, the dump signal 412 can be waited for to be generated. With the exemplary implementation of the present disclosure, the dump signal 412 can notify the time for receiving a set of trace records. In this way, the additional resource overhead caused by the need to constantly check whether the ring buffer has been filled in the prior art solution can be avoided.

[0039] The above has described the specific operation of collecting a set of trace records 230. In the following, it will be described how to process the received set of trace records 230. At block 520, the set of trace records 230 is added to the active dump file 210. According to the exemplary implementation of the present disclosure, the data structure of the active dump file 210 and the inactive dump file 220 is the same, and may include a file header and a file body. In the following, reference will be made to Figure 8 Data structures describing the dump file.

[0040] Figure 8 A block diagram 800 schematically illustrates a data structure of a dump file according to an exemplary implementation of the present disclosure. A dump file 810 may include a file header 820 and a file body 822. The file header may include the size of a set of tracking records 230. Assuming that the size of each tracking record is S, the size of a set of tracking records 230 may be represented as an integer multiple of a tracking record, for example, the size of a set of tracking records may be defined as S*n (n is a positive integer). The file header may include a threshold value for the size of the file. The threshold value here indicates the maximum storage capacity of the file. For example, the size threshold value may be defined as S*n*m (m is a positive integer), indicating that the dump file may accommodate at most n*m tracking records.

[0041] According to an exemplary implementation of the present disclosure, the size of a set of trace records 230 may also be represented by the number of trace records, for example, specifying that a set of trace records may include n trace records. It may be specified how many sets of trace records a dump file may include. For example, a file size threshold may be defined as n*m, which means that a dump file may store at most m sets of trace records, and each set of trace records may include n trace records.

[0042] The file body 822 can be used to store multiple groups of trace records received. In the initial stage of running the method for managing the technical solution of trace records, the file body can be set to empty. At this time, each group of trace records received can be added to the corresponding position of the active dump file 210. According to an exemplary implementation of the present disclosure, as the active buffer 610 becomes full, a dump signal 412 can be generated periodically. Each time the dump signal 412 is received, another group of trace records can be received from the active buffer 610, and another group of trace records can be added to the active dump file. For example, the first group of trace records 830 can be added to the 0th to n-1th positions in the file body 822, and the second group of trace records 832 can be added to the nth to 2n-1th positions in the file body 822, and so on.

[0043] With the exemplary implementation of the present disclosure, various configuration information may be recorded in the file header 820, and the collected tracking records may be recorded in the file body 822. In this way, a newly received set of tracking records may be continuously added to the end of the file body 822. By comparing the current dump file size with the size threshold recorded in the file header, it may be convenient to determine whether the current dump file is full.

[0044] The above has described how to add a newly received trace record to the active dump file 210. Figure 5 Describe how to start the process of backing up to the storage device 250 when the active dump file 210 is full. At block 530, based on determining that the size of the active dump file 210 meets the predetermined size threshold and based on determining that the inactive dump file 220 is marked as ready, generate a storage signal 240 for storing the active dump file 210 to the backup device 250 associated with the application system 110. When the active dump file 210 is full, the dump signal 240 can start the storage process 430 of storing the active dump file 210 to the backup device 250.

[0045] During the storage process 430, since the newly received trace records cannot be added to the active dump file 210, it is necessary to ensure that the inactive dump file 220 can replace the active dump file 210 before the storage signal is generated. Here, the ready state indicates that the inactive dump file 220 can be used to store another set of trace records to be received in the future. In this way, it can be ensured that the active dump file 210 and the inactive dump file 220 can be served alternately in subsequent operations.

[0046] According to an exemplary implementation of the present disclosure, the active dump file 210 and the inactive dump file 220 may be exchanged. At this time, the exchanged active dump file may be used to store another set of tracking records to be received in the future. Using the exemplary implementation of the present disclosure, both the active dump file 210 and the inactive dump file 220 may be used alternately to accommodate each set of received tracking records. In this way, the situation where there is nowhere to accommodate the received tracking records due to uploading the tracking records to the backup device 250 may be avoided.

[0047] In the following, we will refer to Fig. 9 More details of the dump process 420 are described in detail. The figure schematically shows a flow chart of a method 900 for dumping tracking records according to an exemplary implementation of the present disclosure. Fig. 9At block 910 in the method 900, a dump signal 412 may be waited for, where the dump signal 412 is a signal from the acquisition process 410. If the dump signal 412 is received, the dump process is unlocked at block 920 and the method 900 proceeds to block 930; if the dump signal 412 is not received, the wait continues until the dump process is unlocked.

[0048] At box 930, a set of trace records in the active buffer 610 can be added to the active dump file. Each set of trace records can be continuously received until it is determined at box 940 that the active dump file 210 is full. Specifically, assuming that the threshold size of the active dump file 210 is m and m sets of trace records have been received, the active dump file 210 is full. At box 950, if the inactive dump file is ready, the method 900 proceeds to box 960 to generate a storage signal 240; otherwise, the inactive dump file will be waited for to be ready. At box 970, the active dump file 210 and the inactive dump file 220 can be exchanged. At this point, the method 900 returns to box 910 to continue waiting for the next dump signal 412.

[0049] According to an exemplary implementation of the present disclosure, the storage signal 240 may be used to start the storage process 430. For example, the storage signal 240 may notify the application system 110 to upload the active dump file 210 to the backup device 250. For another example, the storage signal 240 may notify the backup device 250 to retrieve the active dump file 210 from the application system 110. Fig.10 More details about the stored procedure 430 are described. Fig.10 Schematically shows a flow chart of a method 1000 for storing a dump file according to an exemplary implementation of the present disclosure. Fig.10 As shown, at block 1010, a storage signal 240 may be waited for. The storage signal 240 here is a signal from the dump process 420. If the storage signal 420 is received, the storage process is unlocked at block 1020 and the method 1000 proceeds to block 1030; if the storage signal 420 is not received, then the wait continues until the storage process is unlocked.

[0050] At block 1030, the trace records in the active dump file 210 may be stored to the backup device 250. Specifically, the active dump file 210 may be uploaded from the application system 110 to the backup device, and alternatively and / or additionally, the backup device 250 may be instructed to retrieve the trace records from the active dump file 210. At block 1040, it may be determined whether the storage process has been completed, and if not completed, the unstored trace records may continue to be stored to the backup device 250. If all trace records in the active dump file 210 have been stored to the backup device 250, the method 1000 proceeds to block 1050 to generate a storage completion signal 432. The method 1000 may return to block 1010 to wait for the next storage signal.

[0051] According to an exemplary implementation of the present disclosure, the state of the inactive dump file 220 can be determined according to whether the active dump file 210 has been stored in the backup device 250. If all tracking records in the active dump file 210 have been stored in the backup device 250, it can be determined that the inactive dump file 220 is in the ready state.

[0052] According to an exemplary implementation of the present disclosure, a storage completion signal 432 may be received from the backup device 250. Here, the storage completion signal 432 is a signal generated at the backup device 250 indicating that the active dump file 210 has been stored in the backup device 250. Using the exemplary implementation of the present disclosure, the storage signal 240 may be generated based on the receipt of the storage completion signal 432. In this way, the timing of generating the storage signal 240 may be determined, and the situation of repeatedly checking and confirming whether the tracking record in the active dump file 210 has been stored in the backup device 250 may be avoided in the application system 110.

[0053] See above for Figures 2 to 10 An example of a method according to the present disclosure is described in detail, and an implementation of a corresponding device will be described below. Specifically, a device for managing tracking records in an application system is provided, wherein the application system includes an active dump file and an inactive dump file. The device includes: a receiving module configured to receive a set of tracking records representing the state of the application system; an adding module configured to add a set of tracking records to the active dump file; a generating module configured to generate a storage signal for storing the active dump file to a backup device associated with the application system based on determining that the size of the active dump file meets a predetermined size threshold and based on determining that the state of the inactive dump file is a ready state, wherein the ready state indicates that the inactive dump file can be used to store another set of tracking records to be received in the future. According to an exemplary implementation of the present disclosure, the above-mentioned device also includes a module for executing other steps in method 500.

[0054] Fig.11 A block diagram of a device 1100 for managing backup devices according to an exemplary implementation of the present disclosure is schematically shown. As shown, the device 1100 includes a general processing unit (CPU) 1101, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 1102 or computer program instructions loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the device 1100 can also be stored. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

[0055] A number of components in the device 1100 are connected to the I / O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disk, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0056] The various processes and processing described above, such as methods 500, 700, 900, and 1000, may be performed by the processing unit 1101. For example, in some implementations, the above methods may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1108. In some implementations, part or all of the computer program may be loaded and / or installed on the device 1100 via the ROM 1102 and / or the communication unit 1109. When the computer program is loaded into the RAM 1103 and executed by the CPU 1101, one or more steps of the method described above may be performed. Alternatively, in other implementations, the CPU 1101 may also be configured in any other appropriate manner to implement the above process / method.

[0057] According to an exemplary implementation of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory coupled to the at least one processor, the memory having instructions stored therein, the instructions causing the device to perform an action for managing tracking records in an application system when executed by the at least one processor, the application system comprising an active dump file and an inactive dump file. The action comprises: receiving a set of tracking records representing the state of the application system; adding a set of tracking records to the active dump file; generating a storage signal for storing the active dump file to a backup device associated with the application system based on determining that the size of the active dump file meets a predetermined size threshold and based on determining that the state of the inactive dump file is a ready state, wherein the ready state indicates that the inactive dump file can be used to store another set of tracking records to be received in the future.

[0058] According to an exemplary implementation of the present disclosure, the active dump file and the inactive dump file respectively include: a file header for indicating the size and size threshold of a group of trace records; and a file body for storing the received multiple trace records.

[0059] According to an exemplary implementation of the present disclosure, the action further includes: exchanging the active dump file and the inactive dump file, so that the exchanged active dump file is used to store another set of tracking records to be received in the future.

[0060] According to an exemplary implementation of the present disclosure, the application system includes an active buffer, wherein receiving a set of trace records includes at least any one of the following: retrieving a set of trace records from the active buffer in response to receiving a dump signal; and waiting for a dump signal in response to not receiving a dump signal.

[0061] According to an exemplary implementation of the present disclosure, a dump signal is generated based on comparing the number of trace records in the active buffer with a predetermined number threshold.

[0062] According to an exemplary implementation of the present disclosure, the application system further includes an inactive buffer, and the active buffer and the inactive buffer are exchanged according to determining that the number of tracking records in the active buffer meets a predetermined number threshold.

[0063] According to an exemplary implementation of the present disclosure, the action further includes: receiving another set of trace records representing the state of the application system; and adding the another set of trace records to the active dump file.

[0064] According to an exemplary implementation of the present disclosure, the storage signal is used to perform at least any one of the following: notifying to upload the active dump file to the backup device; and notifying the backup device to retrieve the active dump file.

[0065] According to an exemplary implementation of the present disclosure, determining that the state of the inactive dump file is a ready state includes: determining that the inactive dump file is marked as a ready state based on determining that the active dump file has been stored in the backup device.

[0066] According to an exemplary implementation of the present disclosure, determining that the active dump file has been stored in the backup device includes: receiving a storage completion signal from the backup device, where the storage completion signal indicates that the active dump file has been stored in the backup device.

[0067] According to an exemplary implementation of the present disclosure, a computer program product is provided, which is tangibly stored on a non-transitory computer-readable medium and includes machine-executable instructions for executing a method according to the present disclosure.

[0068] According to an exemplary implementation of the present disclosure, a computer-readable medium is provided. The computer-readable medium stores machine-executable instructions, and when the machine-executable instructions are executed by at least one processor, the at least one processor implements the method according to the present disclosure.

[0069] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.

[0070] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: 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), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0071] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0072] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some implementations, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0073] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0074] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0075] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0076] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0077] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the implementations disclosed herein.

Claims

1. A method for managing tracking records in an application system, wherein the application system includes an active buffer, an active dump file, and an inactive dump file, the method comprising: receiving a set of trace records representing a state of the application system, wherein receiving the set of trace records comprises retrieving, by a dump process, the set of trace records from the active buffer in response to receiving a dump signal, wherein the dump signal is generated based on determining that a total number of trace records in the active buffer reaches a predetermined number threshold, wherein the dump process awaits receipt of the dump signal, and wherein receipt of the dump signal unlocks the dump process; adding, by the dump process, the set of trace records to the active dump file; A storage signal is generated by the dump process for notifying a backup device of the application system to retrieve the active dump file from the application system, and wherein the storage signal is generated by the dump process according to a determination by the dump process that a size of the active dump file meets a predetermined size threshold, and according to a determination by the dump process that a state of the inactive dump file is a ready state, wherein the ready state indicates that the inactive dump file can be used to store another set of tracking records to be received in the future.

2. The method according to claim 1, wherein the active dump file and the inactive dump file respectively include: A file header, used to indicate the size of the set of tracking records and the size threshold; as well as The file body is used to store multiple received tracking records.

3. The method according to claim 1, further comprising: The active dump file and the inactive dump file are exchanged, so that the exchanged active dump file is used to store another set of trace records to be received in the future. 4 . The method according to claim 1 , wherein the application system further comprises an inactive buffer, and the active buffer and the inactive buffer are exchanged according to determining that the number of tracking records in the active buffer meets a predetermined number threshold.

5. The method according to claim 1, further comprising: receiving another set of tracking records representing a state of the application system; as well as The another set of trace records is added to the active dump file.

6. The method according to claim 1, wherein determining that the state of the inactive dump file is the ready state comprises: According to determining that the active dump file has been stored in the backup device, determining that the inactive dump file is marked as the ready state.

7. The method according to claim 6, wherein determining that the active dump file has been stored to the backup device comprises: A storage completion signal is received from the backup device, the storage completion signal indicating that the active dump file has been stored to the backup device.

8. An electronic device comprising: at least one processor; as well as A memory coupled to the at least one processor, the memory having instructions stored therein, the instructions, when executed by the at least one processor, causing the device to perform an action for managing trace records in an application system, the application system comprising an active buffer, an active dump file, and an inactive dump file, and the action comprising: receiving a set of trace records representing a state of the application system, wherein receiving the set of trace records comprises retrieving, by a dump process, the set of trace records from the active buffer in response to receiving a dump signal, wherein the dump signal is generated based on determining that a total number of trace records in the active buffer reaches a predetermined number threshold, wherein the dump process waits for receipt of the dump signal, and wherein the receipt of the dump signal unlocks the dump process; adding, by the dump process, the set of trace records to the active dump file; A storage signal is generated by the dump process for notifying a backup device of the application system to retrieve the active dump file from the application system, and wherein the storage signal is generated by the dump process according to a determination by the dump process that a size of the active dump file meets a predetermined size threshold, and according to a determination by the dump process that a state of the inactive dump file is a ready state, wherein the ready state indicates that the inactive dump file can be used to store another set of tracking records to be received in the future.

9. The device according to claim 8, wherein the active dump file and the inactive dump file respectively include: A file header, used to indicate the size of the set of tracking records and the size threshold; as well as The file body is used to store multiple received tracking records.

10. The apparatus of claim 8, wherein the actions further comprise: The active dump file and the inactive dump file are exchanged, so that the exchanged active dump file is used to store another set of trace records to be received in the future. 11 . The apparatus according to claim 8 , wherein the application system further comprises an inactive buffer, the active buffer and the inactive buffer being swapped according to determining that the number of tracking records in the active buffer satisfies a predetermined number threshold.

12. The apparatus of claim 8, wherein the actions further comprise: receiving another set of tracking records representing a state of the application system; as well as The another set of trace records is added to the active dump file.

13. The device according to claim 8, wherein determining that the state of the inactive dump file is the ready state comprises: According to determining that the active dump file has been stored in the backup device, determining that the inactive dump file is marked as the ready state.

14. A computer program product having a non-transitory computer readable medium storing a set of instructions for managing trace records in an application system, the application system including an active buffer, an active dump file, and an inactive dump file, the set of instructions, when executed by a computerized circuit system, causes the computerized circuit system to perform a method, the method comprising: receiving a set of trace records representing a state of the application system, wherein receiving the set of trace records comprises retrieving, by a dump process, the set of trace records from the active buffer in response to receiving a dump signal, wherein the dump signal is generated based on determining that a total number of trace records in the active buffer reaches a predetermined number threshold, wherein the dump process awaits receipt of the dump signal, and wherein receipt of the dump signal unlocks the dump process; adding, by the dump process, the set of trace records to the active dump file; A storage signal is generated by the dump process for notifying a backup device of the application system to retrieve the active dump file from the application system, and wherein the storage signal is generated by the dump process according to a determination by the dump process that a size of the active dump file meets a predetermined size threshold, and according to a determination by the dump process that a state of the inactive dump file is a ready state, wherein the ready state indicates that the inactive dump file can be used to store another set of tracking records to be received in the future.