Refined process monitoring method and system based on watchdog in linux system

A process monitoring and watchdog technology, applied in hardware monitoring, response error generation, instruments, etc., can solve problems such as low monitoring efficiency, low monitoring precision, and short operating cycle, so as to meet high quality requirements and improve The effect of monitoring efficiency and flexible monitoring methods

Active Publication Date: 2019-01-29
FENGHUO COMM SCI & TECH CO LTD +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (1) The monitoring precision of the existing monitoring method is not high. It can only judge the most basic status of each business process, such as whether there is a program runaway. It is difficult to meet the high-quality requirements of process monitoring
[0006] (2) In practical applications, some business processes have short running cycles and low frequency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Refined process monitoring method and system based on watchdog in linux system
  • Refined process monitoring method and system based on watchdog in linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0040] see figure 1 As shown, the embodiment of the present invention provides a watchdog-based refined process monitoring method in a Linux system, comprising the following steps:

[0041] S1: Create a monitoring configuration file. The monitoring configuration file includes the lower bound threshold of system free memory, watchdog timeout value, type of monitoring method (dynamic monitoring or static monitoring) and static business process name, and transfer to S2.

[0042] During specific operations, the format of the monitoring configuration file described in S1 is "configuration item=item value", wherein the lower bound threshold of the system free memory is represented by the configuration item min-memory; the watchdog timeout value is represented by the configuration item watchdog-timeout; The type of monitoring mode is repres...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a refined process monitoring method and system based on a watchdog in a Linux system and relates to the technical field of process monitoring in the Linux system. The method comprises the steps of judging whether process monitoring this time is static monitoring or dynamic monitoring according to an established monitoring configuration file; monitoring each service process by sending specific signals regularly if process monitoring this time is static monitoring, and resetting the system by stopping 'dog feeding' once it is found that no service process exists; starting service process monitoring after service process register only if process monitoring this time is dynamic monitoring, obtaining the latest state of each service process through stage frames which are sent constantly during monitoring, and resetting the system by stopping 'dog feeding' once it is found that service processes or the system becomes abnormal. By the adoption of the method and system, refined process monitoring can be achieved, and the requirement for high-quality process monitoring can be met; furthermore, the monitoring method is flexible, resources are saved, and efficiency is high.

Description

technical field [0001] The invention relates to the technical field of process monitoring of a Linux system, in particular to a fine process monitoring method and system based on a watchdog in a Linux system. Background technique [0002] In the embedded Linux system, because the work of the processor is often interfered by the external electromagnetic field, the program will run away and fall into an endless loop, which will interrupt the normal operation of the program and the system cannot continue to work, which will cause the entire The system comes to a standstill, and even unexpected consequences occur. Therefore, in consideration of the stability of the Linux system, it is usually necessary to monitor various running processes in the Linux system in real time. [0003] In the Linux system, process monitoring essentially uses the IPC (Inter-Process Communication, inter-process communication) mechanism provided by Linux to complete the message transmission between the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/07G06F11/30
CPCG06F11/0757G06F11/3017G06F2201/88
Inventor 彭鹏吴军平郑明
Owner FENGHUO COMM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products