[go: up one dir, main page]

CN113032207A - Application process monitoring method and device, electronic equipment and storage medium - Google Patents

Application process monitoring method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113032207A
CN113032207A CN202110232059.3A CN202110232059A CN113032207A CN 113032207 A CN113032207 A CN 113032207A CN 202110232059 A CN202110232059 A CN 202110232059A CN 113032207 A CN113032207 A CN 113032207A
Authority
CN
China
Prior art keywords
monitoring
application process
characteristic information
change characteristic
resource occupation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110232059.3A
Other languages
Chinese (zh)
Inventor
陈键冬
李旦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huya Technology Co Ltd
Original Assignee
Guangzhou Huya Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huya Technology Co Ltd filed Critical Guangzhou Huya Technology Co Ltd
Priority to CN202110232059.3A priority Critical patent/CN113032207A/en
Publication of CN113032207A publication Critical patent/CN113032207A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a method and a device for monitoring an application process, electronic equipment and a storage medium, and relates to the technical field of data monitoring. The method comprises the following steps: collecting resource occupation parameters of the application process by using the monitoring thread; wherein the monitoring thread is packaged in the application process; monitoring the change characteristic information of the resource occupation parameter; and when the change characteristic information meets a preset state condition, storing the current field operation state information of the application process in the local. According to the technical scheme, the efficiency of troubleshooting of the application process can be improved, and the application process monitoring capability is also improved.

Description

Application process monitoring method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of data monitoring, in particular to a method and a device for monitoring an application process, electronic equipment and a storage medium.
Background
An application process is a running activity of a program in a computer on a certain data set, is a basic unit for resource allocation and scheduling of a system, and is the basis of an operating system structure. In early process-oriented design of computer architecture, processes were the basic execution entities of programs; in contemporary thread-oriented computer architectures, processes are containers for threads. A program is a description of instructions, data, and their organization, and a process is an entity of a program.
The running field information of the application process is as follows: it may refer to the memory layout, stack, and CPU (Central Processing Unit) conditions when an application is started and running. The operating site information plays a very critical role in troubleshooting online service problems.
At present, in order to obtain current running field information generated when an application process runs in a problem, a program can start a special service (generally in an HTTP mode) in a forward mode during starting, so that the program is convenient for developers to use when the problem occurs, but in the time, the calling of an interface is passive, manual monitoring is needed, and the real-time state of the application process is difficult to monitor effectively.
Disclosure of Invention
In order to solve the technical problem of labor consumption in application process monitoring, embodiments of the present application provide a method and an apparatus for monitoring an application process, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present application provides a method for monitoring an application process, where the method includes the following steps:
collecting resource occupation parameters of the application process by using the monitoring thread; wherein the monitoring thread is packaged in the application process;
monitoring the change characteristic information of the resource occupation parameter;
and when the change characteristic information meets a preset state condition, storing the current field operation state information of the application process in the local.
In an optional embodiment of the first aspect, when the change characteristic information satisfies a preset state condition, the step of storing the current field operation state information of the application process locally includes:
when the variation of the variation characteristic information in the monitoring period of the monitoring thread meets a preset state condition, triggering and utilizing a corresponding monitoring algorithm to obtain a monitoring result aiming at the variation characteristic information;
and if the monitoring result meets the set condition, storing the current operation state information locally.
In an optional embodiment of the first aspect, the triggering to obtain the monitoring result for the feature information by using a corresponding monitoring algorithm includes:
when the application process is started, presetting a first threshold value of the maximum memory utilization rate;
the method comprises the steps of obtaining actual memory utilization rates of at least two continuous monitoring periods, and comparing the actual memory utilization rates of a plurality of monitoring periods with a first threshold value to obtain a first monitoring result of the memory utilization rates.
In an optional embodiment of the first aspect, the triggering to obtain the monitoring result for the feature information by using a corresponding monitoring algorithm includes:
acquiring a change characteristic information curve of a current monitoring period in real time, and calculating the slope of the change characteristic information curve;
and comparing the slope with a preset second threshold value of the change characteristic information curve to obtain a second monitoring result of the change characteristic information curve.
In an optional embodiment of the first aspect, the change characteristic information includes a change value of at least one parameter of a memory usage rate, a disk read-write frequency, and a CPU usage rate.
In an optional embodiment of the first aspect, the step of locally storing the current field operation state information of the application process includes:
and if the first monitoring result and the second monitoring result respectively meet the first threshold value and the second threshold value, importing the current field running state information containing the first monitoring result and the second monitoring result from the monitoring thread to a system through an interface, and storing the current field running state information in the local.
In an optional embodiment of the first aspect, the method for monitoring an application process further includes:
and if the first monitoring result does not meet the first threshold value and/or the second monitoring result does not meet the second threshold value, continuing to acquire the current resource occupation parameter of the application process by using the monitoring thread.
In a second aspect, a monitoring apparatus for an application process is provided, which includes:
the acquisition module is used for acquiring the resource occupation parameters of the application process by using the monitoring thread; wherein the monitoring thread is packaged in the application process;
the monitoring module is used for monitoring the change characteristic information of the resource occupation parameter;
and the storage module is used for storing the current field operation state information of the application process in the local place when the change characteristic information meets the preset state condition.
In a third aspect, an electronic device is provided, which includes:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the monitoring method for the application process provided by the first aspect of the embodiment of the present application is implemented.
In a fourth aspect, a computer-readable storage medium is provided, where a computer program is stored on the computer-readable storage medium, where the computer program is executed by a processor to implement the application process monitoring method provided in the first aspect of the embodiment of the present application.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
according to the monitoring scheme of the application process, when the application process is started, the current running field information can be obtained in real time, the characteristic indexes of the current running field information are automatically monitored by the monitoring thread, and when the monitoring result meets the set monitoring condition, the current running state information is mapped to the local, so that the running state information possibly occurring under the condition can be reserved in time, the abnormal condition can be reproduced later, and the problem is eliminated.
Additional aspects and advantages of embodiments of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of embodiments of the present application.
Drawings
The foregoing and/or additional aspects and advantages of embodiments of the present application will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a monitoring method for an application process in an embodiment of the present application;
FIG. 2 is a flowchart illustrating the detailed step of step S130 in an embodiment of the present application;
FIG. 3 is a block diagram of an implementation framework for a method for monitoring application processes in one embodiment of the present application;
FIG. 4 is a schematic structural diagram of a first mouse synchronization processing apparatus according to an embodiment of the disclosure;
fig. 5 is a schematic structural diagram of an electronic device for monitoring an application process according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The application process can be connected with the system, is an independent unit for resource allocation and scheduling of the system, is a program with certain independent functions, and realizes the collection and processing of data in data operation.
During the program running process, at least one application process needs to be scheduled to process data. In the running process, along with the calling and generation of the application process, data of the same item can change along with the calling and generation, and meanwhile, usage data traces such as cache data and the like can be generated, and the data traces can accumulate more and more along with the time and occupy a certain resource space.
In the running process of the application process, the occupation of the resource space is generally embodied by a resource occupation parameter. The resource occupation parameter may include memory layout, stack, and CPU conditions. The resource occupation parameter may be embodied in the current field operation state information of the application process. The field operation state information can play a very important role in the operation field for troubleshooting the online service problem. However, some problems in the operation site are difficult to reproduce in the test environment, so that means such as manual real-time monitoring or calling an interface to perform on-site calling after a problem is generated are required, and the monitoring capability for the operation of the application process is low. Even if the problem of the application process is found, the problem cannot be processed in time, and the problem is erased by the operating system, so that the current operation of the application process is stopped. Therefore, the existing means such as manual monitoring or passive calling cannot completely meet the monitoring requirement of the application process.
In order to overcome the above problem, an embodiment of the present application provides a method for monitoring an application process.
Referring to fig. 1, fig. 1 is a flowchart illustrating a monitoring method for an application process in an embodiment of the present application.
S110, collecting resource occupation parameters of the application process by using a monitoring thread; wherein the monitoring thread is packaged within the application process.
And packaging a monitoring thread in the application process to be monitored, wherein the monitoring thread is used for collecting resources occupied by the application process in the running process of the application process, such as corresponding resource occupation parameters of a memory, a CPU and the like. Meanwhile, a corresponding coroutine is set in a system running the application process, and acquisition of resource occupation parameters is assisted.
And S120, monitoring the change characteristic information of the resource occupation parameter.
During the process, the original resources which continuously occupy the operation terminal, such as cache data generation and CPU occupied resources, are subjected to logic operation, so that the resource occupation parameters can change along with the operation of the application process, and the change characteristic information of the resource occupation parameters reflecting the resource occupation condition can change accordingly.
In this embodiment, the change characteristic information is used to represent a change condition of the resource usage parameter, and may include information such as a space change of a disk, a usage rate of a memory, and a usage rate of a CPU.
In the embodiment of the application, the monitoring thread is utilized to collect the resource occupation parameters of different running times from the exposed program provided by the programming language in the running process of the application process, so as to obtain the change characteristic information reflecting the change condition of the resource occupation parameters. And the monitoring thread monitors the resource occupation condition of the application process according to the change characteristic information.
And S130, when the change characteristic information meets a preset state condition, storing the current field operation state information of the application process in the local.
In the embodiment of the application, corresponding state conditions are set for the change characteristic information of different resource occupation parameters, and the change characteristic information monitored by the monitoring thread is monitored according to the state conditions. In this embodiment, the state condition may set a corresponding monitoring condition for a change condition of one or more directional resource occupation parameters according to different operation scenarios. When the change characteristic information meets the set state condition, the field operation state information which represents the change characteristic information of the application process at the moment is ensured to be local.
In this embodiment, the field operation state includes state attribute information recorded in a memory during an application process operation process, such as information about a memory usage rate, a stack condition, a CPU usage condition, a disk read-write frequency, and the like.
The field operation state information can be a text formed by state attribute information in a memory in a set format, and when the change characteristic information meets a preset state condition, the text is mapped to the local disk, so that the state attribute information recorded at that time can be acquired from the local disk in the subsequent problem troubleshooting, and the current situation can be reproduced according to the state attribute information.
According to the monitoring method of the application process, the resource occupation parameters in the running process are collected by the monitoring thread packaged in the application process, monitoring is carried out according to the change characteristic information of the resource occupation parameters, when the change characteristic information meets the set state condition, the field running state information which shows the change characteristic information at the time is stored to the local, active persistent storage of the field running state information is achieved, the change characteristic information at the time is convenient to reappear in the follow-up problem troubleshooting, the efficiency of the problem troubleshooting of the application process is improved, and the monitoring capability of the application process is also improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating a detailed step of step S130 in an embodiment of the present application.
On the basis of the above embodiment, step S130 may further include:
s131, when the variation of the characteristic information in the monitoring period of the monitoring thread meets a preset state condition, triggering and utilizing a corresponding monitoring algorithm to obtain a monitoring result aiming at the variation characteristic information;
and S132, if the monitoring result meets the set condition, storing the current running state information locally.
In the process of the above steps S131 to S132, according to the current operation scenario, a corresponding monitoring status condition is set for the change situation of one or more directional resource occupation parameters, and a corresponding monitoring algorithm is set according to the status condition. And in the monitoring period, monitoring the change characteristic information obtained by the acquired resource occupation parameters in real time according to the monitoring algorithm. When the change characteristic information meets the preset state condition, triggering a corresponding monitoring algorithm according to the current running scene, and calculating the change characteristic information according to the monitoring algorithm to obtain the monitoring result of the application process in running.
When the monitoring result meets a set condition, the set condition may be a further calculation condition of the monitoring algorithm, or a condition for comparing the monitoring result with other existing parameters according to the above-mentioned monitoring result, and the like. If the set conditions are met, the running state information which shows the change characteristic information at that time is stored locally.
According to the embodiment, various change conditions of different resource occupation parameters are monitored, so that the monitoring method of the application process provided by the application process is suitable for different operation scenes.
For the triggering in step S131, obtaining a monitoring result for the feature information by using a corresponding monitoring algorithm, the method may further include:
when the application process is started, presetting a first threshold value of the maximum memory utilization rate;
the method comprises the steps of obtaining actual memory utilization rates of at least two continuous monitoring periods, and comparing the actual memory utilization rates of a plurality of monitoring periods with a first threshold value to obtain a first monitoring result of the memory utilization rates.
The maximum threshold value judgment can also be applied to the judgment of the change condition of the resource occupation parameter when each function is started in the application process, wherein the resource occupation parameter can be at least one of the parameters of the memory utilization rate, the disk read-write frequency and the CPU utilization rate.
For the monitoring execution of the monitoring algorithm, the resource occupation situation when the application process is started can be monitored. In this embodiment, when the application process is started, the resource condition occupied by starting the application process is collected, and peak monitoring is performed, for example, a first threshold of a maximum memory usage rate is preset, and a memory usage rate corresponding to starting the application process is collected. In this embodiment, the monitoring period is a short period of time set from the start-up to the start-up of the application process, and is used to monitor the change of the resource occupation corresponding to the start-up instant of the application process. In this embodiment, the first threshold for the maximum memory usage is set to 90%. When the first threshold of the maximum memory usage rate is less than 90%, it can be at least ensured that the application program can be smoothly started. If the value is greater than 90%, the application process may be stuck at the start moment, or the application process may not be started normally, or may not be operated normally after being started.
Another embodiment may also be included according to the monitoring execution of the monitoring algorithm. The triggering in step S131 may further include obtaining a monitoring result for the feature information by using a corresponding monitoring algorithm, and the method further includes:
acquiring a change characteristic information curve of a current monitoring period in real time, and calculating the slope of the change characteristic information curve;
and comparing the slope with a second threshold value of a preset change characteristic information curve to obtain a second monitoring result of the memory usage rate curve.
Acquiring resource occupation parameters in real time or periodically, describing the resource occupation parameters acquired at different times in a set monitoring period to obtain a change characteristic information curve, and calculating the slope of the change characteristic information curve according to the length of a monitoring period or a starting point and an end point. And setting a collection time point of the resource occupation parameter in each monitoring period, and describing a corresponding change characteristic information curve according to the numerical values of the resource occupation parameters of the front and rear adjacent collection time points to obtain the slope of the change characteristic information curve, so as to obtain the acceleration change of the collected resource occupation parameter in the monitoring period. If the range covered by the monitoring period only has two acquisition time points of the resource occupation parameters and the change of the resource occupation parameters is basically linear, the data points corresponding to the resource occupation parameters of the two acquisition time points can be directly used for making a straight line, and the slope of the straight line is used as a change characteristic information curve.
When the application process is running, if the resource occupation is mutated, the situation of unstable running can be caused. The change characteristic information curve can be used for obtaining the change condition of resource occupation when the application process runs, and is beneficial to evaluating whether the running is in a stable state.
And presetting a corresponding second threshold value for the change characteristic information curve according to different service types and operation scenes.
By utilizing the service type reported by the live broadcast data, in the initial stage of entering a live broadcast busy time period, for example, in a time period of 8-9 o' clock every night, the reported data can be accelerated quickly in a short time. The rate of increase is typically between 150% and 180% as evaluated by historical data, and a corresponding second threshold is set to 220% in order to reserve sufficient incremental space. If the acceleration in the monitoring period is larger than the second threshold value in the time period, an abnormal condition may occur, and according to the monitoring period, the slope of the change characteristic information curve is obtained and compared with the second threshold value, so as to obtain a second monitoring result related to the change characteristic information curve. By delaying the above example, in a time period of 8-9 points every night, setting the monitoring period to 1 minute, acquiring the resource occupation parameter every 30 seconds, wherein each monitoring period corresponds to an acquisition time point of the resource occupation parameter, and acquiring numerical values of the resource occupation parameters of two acquisition time points before and after the acquisition time point to describe a corresponding change characteristic information curve, so as to obtain the slope of the acquisition time point in the monitoring period of the change characteristic information curve.
In this embodiment, the slope threshold determination may be further divided into slope thresholds according to a variation trend of the broadcast, so that the determination result is more accurate.
Comparing the change value of the calculated slope with a second threshold, if the obtained slope is 230%, exceeding the second threshold, and determining whether to locally store the current operation state information according to a monitoring algorithm or a further judgment condition.
The slope of the change characteristic information curve can also be obtained by using the resource occupation parameters acquired in two continuous monitoring periods.
In this embodiment, the change characteristic information includes a change value of at least one parameter of a memory usage rate, a disk read-write frequency, and a CPU usage rate.
Referring to fig. 3, fig. 3 is an execution framework diagram of a monitoring method of an application process in an embodiment of the present application.
On the basis of the first monitoring result and the second monitoring result obtained by the judgment of the maximum threshold and the slope threshold, whether the current field operation state information is stored locally can be further confirmed according to whether the first monitoring result and the second monitoring result respectively exceed the combination of the corresponding maximum threshold and the slope threshold.
In this embodiment, the first monitoring result and the second monitoring result are set to exceed the corresponding maximum threshold and slope threshold respectively as the execution condition that the current field operation state information is stored locally. And when the first monitoring result and the second monitoring result respectively exceed the corresponding maximum threshold and the slope threshold, triggering the execution condition that the current field running state information is stored in the local, and storing the current field running state information to the local by the monitoring thread.
Under the judgment condition, if the first monitoring result does not satisfy the first threshold value and/or the second monitoring result does not satisfy the second threshold value, that is, the first monitoring result cannot exceed the first threshold value and the second monitoring result cannot exceed the second threshold value at the same time, the monitoring thread is used for continuously acquiring the current resource occupation parameter of the application process.
Based on the same application concept as the monitoring method of the application process, the embodiment of the application also provides a monitoring device of the application process.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a first mouse synchronization processing apparatus according to an embodiment of the disclosure. The monitoring apparatus 400 for application process includes:
an acquisition module 410, configured to acquire a resource occupation parameter of an application process by using a monitoring thread; wherein the monitoring thread is packaged in the application process;
a monitoring module 420, configured to monitor change characteristic information of the resource occupation parameter;
a saving module 430, configured to save the current field operation state information of the application process locally when the change characteristic information meets a preset state condition.
The monitoring device 400 for the application process provided by the embodiment of the application process collects the resource occupation parameters in the running process by using the monitoring thread packaged in the application process, monitors according to the change characteristic information of the resource occupation parameters, stores the field running state information representing the current change characteristic information to the local when the monitoring thread meets the set state condition, and actively and persistently stores the field running state information, so that the current change characteristic information can be conveniently reappeared in the follow-up problem troubleshooting, the efficiency of the problem troubleshooting of the application process is improved, and the monitoring capability of the application process is also improved.
Based on the same principle as the method shown in the embodiment of the present application, an embodiment of the present application further provides an electronic device, which may include but is not limited to: a processor and a memory; a memory for storing computer operating instructions; and the processor is used for executing the method shown in the embodiment by calling the computer operation instruction. Compared with the prior art, the electronic equipment in the embodiment of the application can acquire the resource occupation parameters in the running process by using the monitoring thread packaged in the application process, monitor according to the change characteristic information of the resource occupation parameters, store the field running state information which shows the current change characteristic information to the local when the change characteristic information meets the set state condition, and actively and persistently store the field running state information, so that the current change characteristic information can be conveniently reappeared in the follow-up problem troubleshooting, the efficiency of the problem troubleshooting of the application process is improved, and the monitoring capability of the application process is also improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device for monitoring an application process according to an embodiment of the present application.
In an alternative embodiment, an electronic device is provided, as shown in fig. 5, the electronic device 500 shown in fig. 5 comprising: a processor 501 and a memory 503. Wherein the processor 501 is coupled to the memory 503, such as via the bus 502. Optionally, the electronic device 500 may also include a transceiver 504. It should be noted that the transceiver 504 is not limited to one in practical applications, and the structure of the electronic device 500 is not limited to the embodiment of the present application.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments. Compared with the prior art, the computer-readable storage medium in the embodiment of the application acquires the resource occupation parameters in the running process by using the monitoring thread packaged in the application process, monitors according to the change characteristic information of the resource occupation parameters, stores the field running state information which shows the current change characteristic information to the local when the change characteristic information meets the set state condition, and actively and persistently stores the field running state information, so that the current change characteristic information can be conveniently reappeared in the follow-up problem troubleshooting, the efficiency of the problem troubleshooting of the application process is improved, and the monitoring capability of the application process is also improved.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A monitoring method of an application process is characterized by comprising the following steps:
collecting resource occupation parameters of the application process by using the monitoring thread; wherein the monitoring thread is packaged in the application process;
monitoring the change characteristic information of the resource occupation parameter;
and when the change characteristic information meets a preset state condition, storing the current field operation state information of the application process in the local.
2. The method according to claim 1, wherein the step of storing the current field operation state information of the application process locally when the change characteristic information satisfies a preset state condition comprises:
when the variation of the variation characteristic information in the monitoring period of the monitoring thread meets a preset state condition, triggering and utilizing a corresponding monitoring algorithm to obtain a monitoring result aiming at the variation characteristic information;
and if the monitoring result meets the set condition, storing the current operation state information locally.
3. The method of claim 2,
the step of triggering and utilizing a corresponding monitoring algorithm to obtain a monitoring result aiming at the characteristic information comprises the following steps:
when the application process is started, presetting a first threshold value of the maximum memory utilization rate;
the method comprises the steps of obtaining actual memory utilization rates of at least two continuous monitoring periods, and comparing the actual memory utilization rates of a plurality of monitoring periods with a first threshold value to obtain a first monitoring result of the memory utilization rates.
4. The method according to one of the claims 2 or 3,
the step of triggering and utilizing a corresponding monitoring algorithm to obtain a monitoring result aiming at the characteristic information comprises the following steps:
acquiring a change characteristic information curve of a current monitoring period in real time, and calculating the slope of the change characteristic information curve;
and comparing the slope with a preset second threshold value of the change characteristic information curve to obtain a second monitoring result of the change characteristic information curve.
5. The method of claim 4,
the change characteristic information comprises a change value of at least one parameter of memory utilization rate, disk read-write frequency and CPU utilization rate.
6. The method of claim 4,
the step of storing the current field operation state information of the application process in a local place includes:
and if the first monitoring result and the second monitoring result respectively meet the first threshold value and the second threshold value, importing the current field running state information containing the first monitoring result and the second monitoring result from the monitoring thread to a system through an interface, and storing the current field running state information in the local.
7. The method of claim 4, further comprising:
and if the first monitoring result does not meet the first threshold value and/or the second monitoring result does not meet the second threshold value, continuing to acquire the current resource occupation parameter of the application process by using the monitoring thread.
8. A device for monitoring an application process, comprising:
the acquisition module is used for acquiring the resource occupation parameters of the application process by using the monitoring thread; wherein the monitoring thread is packaged in the application process;
the monitoring module is used for monitoring the change characteristic information of the resource occupation parameter;
and the storage module is used for storing the current field operation state information of the application process in the local place when the change characteristic information meets the preset state condition.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: a method of monitoring an application process according to any one of claims 1 to 7 is performed.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of monitoring an application process of any one of claims 1 to 7.
CN202110232059.3A 2021-03-02 2021-03-02 Application process monitoring method and device, electronic equipment and storage medium Pending CN113032207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110232059.3A CN113032207A (en) 2021-03-02 2021-03-02 Application process monitoring method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110232059.3A CN113032207A (en) 2021-03-02 2021-03-02 Application process monitoring method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113032207A true CN113032207A (en) 2021-06-25

Family

ID=76465903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110232059.3A Pending CN113032207A (en) 2021-03-02 2021-03-02 Application process monitoring method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113032207A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114528184A (en) * 2022-02-17 2022-05-24 中国平安人寿保险股份有限公司 Application blockage monitoring method and device, computer equipment and storage medium
CN114968743A (en) * 2022-05-31 2022-08-30 重庆长安汽车股份有限公司 Abnormal event monitoring method, device, equipment and medium
WO2023040584A1 (en) * 2021-09-15 2023-03-23 杭州逗酷软件科技有限公司 Device data processing method and apparatus, and electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722431A (en) * 2012-04-25 2012-10-10 华为技术有限公司 Process monitoring method and process monitoring device
US20130238882A1 (en) * 2010-10-05 2013-09-12 Fujitsu Limited Multi-core processor system, monitoring control method, and computer product
CN105808412A (en) * 2014-12-30 2016-07-27 展讯通信(天津)有限公司 Process resource real-time monitoring method
CN112346924A (en) * 2020-09-21 2021-02-09 西安交大捷普网络科技有限公司 Server monitoring method and system
WO2021022710A1 (en) * 2019-08-02 2021-02-11 平安科技(深圳)有限公司 Message queue processing method, device, electronic apparatus, and computer readable non-volatile storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130238882A1 (en) * 2010-10-05 2013-09-12 Fujitsu Limited Multi-core processor system, monitoring control method, and computer product
CN102722431A (en) * 2012-04-25 2012-10-10 华为技术有限公司 Process monitoring method and process monitoring device
CN105808412A (en) * 2014-12-30 2016-07-27 展讯通信(天津)有限公司 Process resource real-time monitoring method
WO2021022710A1 (en) * 2019-08-02 2021-02-11 平安科技(深圳)有限公司 Message queue processing method, device, electronic apparatus, and computer readable non-volatile storage medium
CN112346924A (en) * 2020-09-21 2021-02-09 西安交大捷普网络科技有限公司 Server monitoring method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023040584A1 (en) * 2021-09-15 2023-03-23 杭州逗酷软件科技有限公司 Device data processing method and apparatus, and electronic device and storage medium
CN114528184A (en) * 2022-02-17 2022-05-24 中国平安人寿保险股份有限公司 Application blockage monitoring method and device, computer equipment and storage medium
CN114968743A (en) * 2022-05-31 2022-08-30 重庆长安汽车股份有限公司 Abnormal event monitoring method, device, equipment and medium

Similar Documents

Publication Publication Date Title
KR102490908B1 (en) Resource scheduling method and terminal device
CN113032207A (en) Application process monitoring method and device, electronic equipment and storage medium
CN111813545B (en) A resource configuration method, device, medium and equipment
EP3129880B1 (en) Method and device for augmenting and releasing capacity of computing resources in real-time stream computing system
CN110930291B (en) GPU video memory management control method and related device
CN107239339B (en) System performance optimization parameter determination method, system performance optimization method and device
US10255114B2 (en) Abnormality detection apparatus, control method, and program
CN110618869B (en) Resource management method, device and equipment
JPWO2005017736A1 (en) System and program for detecting bottleneck in disk array device
CN111625456A (en) Stuck positioning method and device
CN112749013B (en) Thread load detection method and device, electronic equipment and storage medium
CN114223189A (en) Duration statistics method, apparatus, electronic device and computer readable medium
CN108415765B (en) Task scheduling method and device and intelligent terminal
CN112650575A (en) Resource scheduling method and device and cloud service system
CN114461323A (en) A stuck processing method, device, electronic device and storage medium
CN110968483A (en) Service data acquisition method and device and electronic equipment
CN119248499B (en) Task processing load analysis method and device
CN117591301A (en) Monitoring cloud resource allocation optimization method and system
CN114416326A (en) Big data control method, device, control system and readable storage medium
CN115169925A (en) Battery swap station resource configuration method and device, electronic equipment and storage medium
CN116450120B (en) Method, device, equipment and medium for analyzing kernel of real-time operating system
CN120315840A (en) A task control method, device, equipment and medium
CN119784466A (en) A parking order distribution and consumption method and related equipment
CN114325392A (en) Electric quantity display method and device, storage medium and electronic equipment
CN118503063A (en) System delay performance analysis method, device, electronic equipment and storage medium

Legal Events

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