Method and system for monitoring process

A technology for processes and processes, applied in the direction of multi-programming devices, etc., can solve the problems that the monitoring process cannot diagnose abnormal exit, the analysis and positioning work is difficult to carry out, and the reason for abnormal exit cannot be diagnosed, so as to facilitate positioning and analysis and avoid abnormal spread. , use flexible effects

CN100543683CActive Publication Date: 2009-09-23HUAWEI TECH CO LTD
7 Cites 9 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2009-09-23

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The present invention provides a method and system for monitoring a process. The method mainly includes: A. monitoring the heartbeat of the process in the system, and the process regularly reports the heartbeat message; B. according to the heartbeat message reported by the process The condition identifies an abnormal process. The system mainly includes: a unit for monitoring the heartbeat of the processes in the system, and the process regularly reports heartbeat messages to the unit for monitoring the heartbeat of the processes in the system; The condition of the message identifies the abnormal unit of process. By using the method and system of the present invention, the abnormal exit of the process can be monitored in real time, and various forms of sub-process exit conditions and corresponding abnormal exit reasons can be monitored.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of computer applications, in particular to a method and system for monitoring a process. Background technique

[0002] During the development and operation of various computer or communication products and systems, it is often encountered that the process exits abnormally, or the process falls into an infinite loop. If there is no corresponding abnormality detection mechanism and method in the product or system, it will be impossible to judge. If any process exits abnormally or if the process falls into an infinite loop, corresponding measures cannot be taken to handle the corresponding exception and recovery. Therefore, the high reliability and self-recovery of products and systems cannot be guaranteed.

[0003] In the current computer operating system, the monitoring of the process and the communication between the monitored processes are generally realized by sharing resources between processes (such as semaphore c...

Examples

Embodiment Construction

[0047] The present invention provides a method and system for monitoring a process. In this embodiment of the present invention, when a child process exits, the system kernel sends a designated signal carrying information such as a process identification to the parent process of the child process, and the parent process identifies the exited child process and exits according to the received designated signal. Therefore, the parent process can monitor and detect the abnormal exit of the child process in real time, and carry out corresponding exception processing.

[0048] The method of the present invention requires the operating system of the computer on the product or system to support the following mechanism: when the child process exits, a designated signal is actively sent to the parent process to notify the parent process that a child process exits at present. The current LINUX operating system supports this mechanism.

[0049]The processing flow of Embodiment 1 of the m...