Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for implementing software watchdog in software system

A technology of software watchdog and software system, applied in the direction of response error generation, etc., can solve the problems of watchdog honor judgment error, fault recovery, etc., achieve the effect of simple and reliable, and improve stability

Active Publication Date: 2013-04-10
TAICANG T&W ELECTRONICS CO LTD
View PDF4 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a method for implementing a software watchdog in a software system, which solves the problem that the existing watchdog honor judgment error for a software system leads to unnecessary fault recovery

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
  • Method for implementing software watchdog in software system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0019] figure 1 An embodiment of a method for realizing a software watchdog in a software system of the present invention is shown: a method for realizing a software watchdog in a software system includes the following steps

[0020] After the software system is started, the monitoring process is first started, and the monitoring process creates a TCP connection and waits for the connection request;

[0021] After the monitored process is started, a TCP connection to the monitored process is automatically established, and the monitored process receives the TCP connection request of the monitored p...

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 method for monitoring the stability of a software system, and particularly relates to a method for implementing a software watchdog in the software system. The method comprises the following steps of: creating TCP (Transfer Control Protocol) connection, receiving a TCP connection request of a monitored process; sending the process information to a monitoring process through the TCP connection by the monitored process, and monitoring the state of TCP connection between the monitoring process and all the monitored processes by the monitoring process; when the monitoring process abnormally exits, disconnecting the corresponding TCP connection, and determining whether the corresponding monitored process abnormally exits or not; and restarting the monitored process, so that the software system returns to normal. The method provided by the invention has the following beneficial effects that the method that the system state is monitored by utilizing the TCP connection in the software system is adopted, so that the system automatically restores when the process truly and abnormally exits, and thus the stability of the software system is greatly improved, and the method can be implemented very simply and reliably by using the standard TCP connection.

Description

technical field [0001] The invention relates to a method for monitoring the stability of a software system, in particular to a method for realizing a software watchdog in the software system. Background technique [0002] In the software system, in order to ensure the stability of the software system, it is necessary to monitor the entire software system through the software watchdog. In most cases, the implementation of the software watchdog is that each process sends a heartbeat message to the monitoring process at regular intervals to prove that it is in a normal operating state. When the monitoring process finds that a process has not sent a heartbeat message for a long time, it concludes that the process is dead, and restarts the entire system to restore the system to normal. But adopting this logic will cause the monitoring process to make wrong judgments, because it is possible that a certain process has no time to send a heartbeat message to the monitoring process d...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/07
Inventor 张定理
Owner TAICANG T&W ELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products