JPH10187501A - Abnormality monitoring system for program - Google Patents

Abnormality monitoring system for program

Info

Publication number
JPH10187501A
JPH10187501A JP8347000A JP34700096A JPH10187501A JP H10187501 A JPH10187501 A JP H10187501A JP 8347000 A JP8347000 A JP 8347000A JP 34700096 A JP34700096 A JP 34700096A JP H10187501 A JPH10187501 A JP H10187501A
Authority
JP
Japan
Prior art keywords
program
counter
monitoring
abnormality monitoring
request
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
JP8347000A
Other languages
Japanese (ja)
Inventor
Kazushi Kitayama
和士 北山
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP8347000A priority Critical patent/JPH10187501A/en
Publication of JPH10187501A publication Critical patent/JPH10187501A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable abnormality monitor without fail while reducing influences upon a system. SOLUTION: An abnormality monitoring program 2 is provided with a start counter 21 by respective programs 31 -3n inside the system. In this case, when requesting start to any other program from each of programs 31 -3n , the start counter of that program is incremented and when processing is performed corresponding to the request, the start requested program resets its own start counter. Then, when the value of start counter 21 is not changed continuously for fixed time measured by a monitor timer 22 , the abnormal monitoring program 2 discriminates the program corresponding to that start counter abnormal.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータによ
りリアルタイム処理を行うコンピュータ応用システムに
係り、特にシステム内のプログラムが正常に稼働してい
るか否かをチェックするプログラムの異常監視方式に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer application system that performs real-time processing by a computer, and more particularly to a program abnormality monitoring method for checking whether a program in a system is operating normally.

【0002】[0002]

【従来の技術】電力系統の遠方監視制御システムや銀行
のオンライン処理システムなど、リアルタイム処理を必
要とするコンピュータ応用システムでは、システム内の
プログラムが正常に稼働しているかどうかのチェック機
能を設けることでシステムの信頼性を高めている。この
プログラムのチェック機能は、以下の異常監視方式で実
現される。
2. Description of the Related Art In a computer application system that requires real-time processing, such as a remote monitoring control system of a power system or an online processing system of a bank, a check function is provided to check whether a program in the system is operating normally. Improves system reliability. The check function of this program is realized by the following abnormality monitoring method.

【0003】(1)プログラムの稼働状態を調べる異常
監視プログラムを設ける。
(1) An abnormality monitoring program for checking the operating state of a program is provided.

【0004】(2)異常監視プログラムは、定期的にシ
ステム内の各プログラムに点検情報を通知する。
[0004] (2) The abnormality monitoring program periodically notifies each program in the system of inspection information.

【0005】(3)点検情報を受信した各プログラム
は、その応答を異常監視プログラムに通知する。
(3) Each program receiving the inspection information notifies the abnormality monitoring program of the response.

【0006】(4)異常監視プログラムは、応答が返っ
てきたプログラムを正常、所定時間内に応答が返ってこ
ないプログラムを異常と判定する。
(4) The abnormality monitoring program determines that a program that has returned a response is normal and a program that does not return a response within a predetermined time is abnormal.

【0007】図3は、異常監視プログラムによる異常監
視手順を示す。異常監視プログラムは送信周期t毎に点
検情報を各プログラムに順次送信し、これに対する各プ
ログラムからの応答が監視タイマに設定する一定時間T
内に通知されないときに当該プログラムを異常と判定す
る。
FIG. 3 shows an abnormality monitoring procedure by the abnormality monitoring program. The abnormality monitoring program sequentially transmits inspection information to each program at every transmission cycle t, and a response from each program to the inspection information is a predetermined time T set in the monitoring timer.
If the program is not notified, the program is determined to be abnormal.

【0008】[0008]

【発明が解決しようとする課題】従来の異常監視方式で
は、異常監視タイミングで、システムを構成する各プロ
グラムに情報が通知され、この通知に対する応答が各プ
ログラムから返ってくるため、異常監視機能がシステム
の負荷を高くし、異常監視を十分に行うため異常監視タ
イミングを短周期にするほど負荷を高める。
In the conventional abnormality monitoring method, information is notified to each program constituting the system at an abnormality monitoring timing, and a response to the notification is returned from each program. In order to increase the load on the system and perform sufficient abnormality monitoring, the load increases as the abnormality monitoring timing becomes shorter.

【0009】また、異常監視タイミングで点検情報とそ
の応答のためにはシステムのメモリ等の資源にパケット
の領域を確保することになり、システムの資源消費及び
メモリアクセス占有によってシステムの応答性への影響
も起こす。
In addition, a packet area is secured in the resources such as the memory of the system for checking information and its response at the timing of monitoring the abnormality. Influences.

【0010】また、滅多に稼働することのないプログラ
ムにも異常監視の起動がかかるため、プログラムの切り
替え等の負荷がかかる。
[0010] In addition, since the monitoring of the abnormality is started even for a program that rarely runs, a load such as switching of the program is imposed.

【0011】本発明の目的は、システムへの影響を少な
くしながら確実な異常監視ができるプログラムの異常監
視方式を提供することにある。
An object of the present invention is to provide a program abnormality monitoring method capable of reliably monitoring an abnormality while reducing the influence on the system.

【0012】[0012]

【課題を解決するための手段】本発明は、前記課題を解
決するため、各プログラムの起動の有無を起動カウンタ
の値の変化の有無から監視してプログラムの異常監視を
行うようにしたもので、以下の構成を特徴とする。
In order to solve the above-mentioned problems, the present invention monitors the presence or absence of activation of each program from the presence or absence of a change in the value of an activation counter to monitor the abnormality of the program. It is characterized by the following configuration.

【0013】リアルタイム処理を行うコンピュータ応用
システム内の各プログラムが正常に稼働しているか否か
をチェックするにおいて、異常監視プログラムは、シス
テム内の各プログラム別に起動カウンタを設け、システ
ム内の各プログラムは、他のプログラムに起動要求する
ときに当該プログラムの前記起動カウンタをインクリメ
ントする手段を設け、起動要求を受けたプログラムは、
要求に対する処理を行ったときに対応する前記起動カウ
ンタをリセットする手段を設け、異常監視プログラム
は、前記起動カウンタの値が一定時間継続して変化しな
いときに当該起動カウンタに対応するシステム内のプロ
グラムを異常と判定する手段を備えたことを特徴とす
る。
In checking whether or not each program in the computer application system that performs real-time processing is operating normally, the abnormality monitoring program provides an activation counter for each program in the system, and each program in the system includes A means for incrementing the start counter of the program when a start request is issued to another program;
Means for resetting the start-up counter corresponding to processing of the request, wherein the abnormality monitoring program is a program in the system corresponding to the start-up counter when the value of the start-up counter does not continuously change for a certain period of time. Characterized in that it is provided with means for judging that is abnormal.

【0014】[0014]

【発明の実施の形態】図1は、本発明の実施形態を示す
異常監視機能ブロック図である。CPU1の1つの処理
機能としてソフトウェア構成される異常監視プログラム
2は、起動カウンタ21と監視タイマ22を用意する。
FIG. 1 is a block diagram of an abnormality monitoring function according to an embodiment of the present invention. Software configured abnormality monitoring program 2 as one processing function of CPU1 prepares a start counter 2 1 and monitoring timer 2 2.

【0015】起動カウンタ21は、各プログラム31〜3
N別に設けられる。各プログラムは、別のプログラムに
処理要求を通知するときには要求先のプログラムに対応
する起動カウンタをインクリメントし、起動されたプロ
グラムはその処理を終了したときに対応する起動カウン
タを0にリセットする。
[0015] The start-up counter 2 1, each program 3 1 to 3
Provided separately for N. Each program increments a start counter corresponding to the requested program when notifying another program of a processing request, and resets the corresponding start counter to 0 when the started program ends its processing.

【0016】異常監視プログラム2は、起動カウンタ2
1のプログラム別の内容を定期的に監視し、その内容が
0以外の値を所定時間継続したときに当該起動カウンタ
1に対応するプログラムを異常と判定する。所定時間
継続の計時は、監視タイマ22により得る。
The abnormality monitoring program 2 includes a start counter 2
Periodically monitors the first program-specific content, determines program corresponding to the start counter 2 1 when its contents have continued a value other than 0 predetermined times and abnormal. Predetermined time continuity of the timing can be by monitoring timer 2 2.

【0017】なお、起動カウンタ21の更新は、起動要
求及び起動要求受付の共通インタフェース(ライブラ
リ)内で行う。
[0017] Note that the update start counter 2 1, carried out in a common interface activation request and the activation request acceptance (library).

【0018】図2は、本実施形態における異常監視処理
例である。監視対象プログラムPrc−Xに対して、プ
ログラムPrc−Aから処理要求を行うとき、プログラ
ムPrc−Aが監視対象プログラムPrc−Xの起動カ
ウンタをそれまでの「0」からインクリメントにより
「1」にして要求Aを発生する。この後、プログラムP
rc−Bからも起動要求があると、監視対象プログラム
Prc−Xの起動カウンタが「2」にインクリメントさ
れる。
FIG. 2 is an example of an abnormality monitoring process according to the present embodiment. When a process request is issued from the program Prc-A to the monitoring target program Prc-X, the program Prc-A changes the activation counter of the monitoring target program Prc-X from “0” to “1” by increment. Generate request A. After this, the program P
When there is a start request from rc-B, the start counter of the monitored program Prc-X is incremented to “2”.

【0019】この後、監視対象プログラムPrc−Xが
要求の取り出しで稼働すると、要求A,Bに関わる処理
を行い、この処理で監視対象プログラムPrc−Xは自
己の起動カウンタを「0」にリセットする。
Thereafter, when the monitoring target program Prc-X operates to fetch the request, the monitoring target program Prc-X performs a process related to the requests A and B. In this process, the monitoring target program Prc-X resets its own start counter to “0”. I do.

【0020】同様に、プログラムPrc−Cによる起動
要求には、起動カウンタが「1」にされ、監視対象プロ
グラムPrc−Xが要求Cに対する稼働で起動カウンタ
を「0」にリセットする。
Similarly, for a start request by the program Prc-C, the start counter is set to "1", and when the monitored program Prc-X operates on the request C, the start counter is reset to "0".

【0021】このような起動カウンタのインクリメント
とリセットの繰り返しにおいて、プログラムPrc−I
やPrc−Jによる起動要求で起動カウンタが「n」ま
でインクリメントされ、異常監視プログラム2が監視タ
イミングになってプログラムPrc−Xの起動カウンタ
の値「n」を読み込んだとき、この読み込んだタイミン
グから監視タイマ22に設定する時間後にも値が「0」
にないときに監視対象プログラムPrc−Xを異常と判
定する。
In such repetition of the increment and reset of the activation counter, the program Prc-I
The start counter is incremented to “n” by the start request by the Prc-J or Prc-J, and when the abnormality monitoring program 2 reads the start counter value “n” of the program Prc-X at the monitoring timing, the timing from this read timing is value even after the time set in the monitoring timer 2 2 is "0"
When it is not, the monitoring target program Prc-X is determined to be abnormal.

【0022】なお、異常判定は、起動プログラムの値が
「0」か否かの判定に限らず、その値が一定時間継続す
るときに異常と判定することでも良い。
The abnormality determination is not limited to the determination as to whether the value of the startup program is "0", but may be determined to be abnormal when the value continues for a certain period of time.

【0023】[0023]

【発明の効果】以上のとおり、本発明によれば、各プロ
グラムの起動の有無をプログラム別の起動カウンタの値
の変化の有無からプログラムの異常監視を行うようにし
たため、システムへの影響を少なくしながら確実な異常
監視ができ、具体的には以下の効果がある。
As described above, according to the present invention, whether or not each program is activated is monitored based on whether or not the value of the activation counter of each program has changed, so that the effect on the system is reduced. In this way, it is possible to reliably monitor abnormalities, and specifically, it has the following effects.

【0024】(1)システム内のプログラムの通常の処
理要求がそのまま監視のための情報を更新するため、監
視のための専用の処理要求を必要としない。
(1) Since a normal processing request of a program in the system updates information for monitoring as it is, a dedicated processing request for monitoring is not required.

【0025】(2)監視のための処理要求を必要としな
いため、監視処理によるシステム負荷の増加がない。
(2) Since a processing request for monitoring is not required, there is no increase in system load due to monitoring processing.

【0026】(3)監視のためにメモリ等のシステム資
源を消費することがない。
(3) System resources such as memory are not consumed for monitoring.

【0027】(4)異常監視プログラムとその他のプロ
グラムとの直接の関係がないため、プログラム構造を単
純化できる。
(4) Since there is no direct relationship between the abnormality monitoring program and other programs, the program structure can be simplified.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施形態を示す異常監視機能ブロック
図。
FIG. 1 is a block diagram of an abnormality monitoring function according to an embodiment of the present invention.

【図2】実施形態における異常監視処理例。FIG. 2 is an example of an abnormality monitoring process in the embodiment.

【図3】従来の異常監視手順。FIG. 3 shows a conventional abnormality monitoring procedure.

【符号の説明】[Explanation of symbols]

1…CPU 2…異常監視プログラム 21…起動カウンタ 22…監視タイマ 31〜3n…システム内のプログラム1 CPU 2 Abnormality monitoring program 2 1 Start counter 2 2 Monitoring timer 3 1 to 3 n Program in the system

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 リアルタイム処理を行うコンピュータ応
用システム内の各プログラムが正常に稼働しているか否
かをチェックするにおいて、 異常監視プログラムは、システム内の各プログラム別に
起動カウンタを設け、 システム内の各プログラムは、他のプログラムに起動要
求するときに当該プログラムの前記起動カウンタをイン
クリメントする手段を設け、 起動要求を受けたプログラムは、要求に対する処理を行
ったときに対応する前記起動カウンタをリセットする手
段を設け、 異常監視プログラムは、前記起動カウンタの値が一定時
間継続して変化しないときに当該起動カウンタに対応す
るシステム内のプログラムを異常と判定する手段を備え
たことを特徴とするプログラムの異常監視方式。
In checking whether or not each program in a computer application system that performs real-time processing is operating normally, an abnormality monitoring program provides an activation counter for each program in the system, The program is provided with a means for incrementing the start counter of the program when the program makes a start request to another program, and the program which has received the start request resets the start counter corresponding to the request when processing is performed on the request. Wherein the abnormality monitoring program comprises means for determining that a program in the system corresponding to the activation counter is abnormal when the value of the activation counter does not continuously change for a certain period of time. Monitoring method.
JP8347000A 1996-12-26 1996-12-26 Abnormality monitoring system for program Pending JPH10187501A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8347000A JPH10187501A (en) 1996-12-26 1996-12-26 Abnormality monitoring system for program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8347000A JPH10187501A (en) 1996-12-26 1996-12-26 Abnormality monitoring system for program

Publications (1)

Publication Number Publication Date
JPH10187501A true JPH10187501A (en) 1998-07-21

Family

ID=18387252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8347000A Pending JPH10187501A (en) 1996-12-26 1996-12-26 Abnormality monitoring system for program

Country Status (1)

Country Link
JP (1) JPH10187501A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100820789B1 (en) * 2001-04-06 2008-04-10 엘지전자 주식회사 System based on real time and its monitoring method
JP2010081183A (en) * 2008-09-25 2010-04-08 Fuji Xerox Co Ltd Image processing apparatus, image forming apparatus and program
US7826962B2 (en) 2005-06-23 2010-11-02 Denso Corporation Electronic control apparatus
JP2011065215A (en) * 2009-09-15 2011-03-31 Ntt Docomo Inc Information processor and information processing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100820789B1 (en) * 2001-04-06 2008-04-10 엘지전자 주식회사 System based on real time and its monitoring method
US7826962B2 (en) 2005-06-23 2010-11-02 Denso Corporation Electronic control apparatus
JP2010081183A (en) * 2008-09-25 2010-04-08 Fuji Xerox Co Ltd Image processing apparatus, image forming apparatus and program
JP2011065215A (en) * 2009-09-15 2011-03-31 Ntt Docomo Inc Information processor and information processing method

Similar Documents

Publication Publication Date Title
US5860002A (en) System for assigning boot strap processor in symmetric multiprocessor computer with watchdog reassignment
US6425093B1 (en) Methods and apparatuses for controlling the execution of software on a digital processing system
JPH0576654B2 (en)
US20040039935A1 (en) Method and device for measuring the execution time of a real task in a real time system
US4839895A (en) Early failure detection system for multiprocessor system
US7558990B2 (en) Semiconductor circuit device and method of detecting runaway
JPH10187501A (en) Abnormality monitoring system for program
US5737515A (en) Method and mechanism for guaranteeing timeliness of programs
US6735716B1 (en) Computerized diagnostics and failure recovery
US6463492B1 (en) Technique to automatically notify an operating system level application of a system management event
WO2012025962A1 (en) Load control device, load control method, and load control program
JP2004213122A (en) Stable operation method of control system by client/server and program therefor
CN114595037A (en) Data processing method and device
JP2000132428A (en) Computer system, application monitoring method for computer system, and program recording medium
JP4313858B2 (en) calculator
JPH09212389A (en) Method and device for detecting abnormal state of computer system
JPH01156830A (en) Operating system
JP2845616B2 (en) Multiprocessor system
JPH064301A (en) Time division interruption control system
JPH05324409A (en) Run-away monitor system for software
JPH0635757A (en) Abnormality detector of cpu
JP3361949B2 (en) Program verification device
JPH0962534A (en) Self-diagnostic method for electronic computer
JPH01288954A (en) Service program execution program for multi-processor system
JPS62245456A (en) Time monitor and control system