JP5997005B2 - Information processing apparatus, process normal end determination method, and program - Google Patents

Information processing apparatus, process normal end determination method, and program Download PDF

Info

Publication number
JP5997005B2
JP5997005B2 JP2012239396A JP2012239396A JP5997005B2 JP 5997005 B2 JP5997005 B2 JP 5997005B2 JP 2012239396 A JP2012239396 A JP 2012239396A JP 2012239396 A JP2012239396 A JP 2012239396A JP 5997005 B2 JP5997005 B2 JP 5997005B2
Authority
JP
Japan
Prior art keywords
list
predesignated
information processing
designated
processing apparatus
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.)
Active
Application number
JP2012239396A
Other languages
Japanese (ja)
Other versions
JP2014089603A (en
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.)
Canon Electronics Inc
Original Assignee
Canon Electronics Inc
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 Canon Electronics Inc filed Critical Canon Electronics Inc
Priority to JP2012239396A priority Critical patent/JP5997005B2/en
Publication of JP2014089603A publication Critical patent/JP2014089603A/en
Application granted granted Critical
Publication of JP5997005B2 publication Critical patent/JP5997005B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、プロセスが正常に終了したかどうかを判定する技術に関する。   The present invention relates to a technique for determining whether or not a process has ended normally.

パーソナルコンピュータなどの情報処理装置では数多くのプロセスが存在し、それらが独立にまたは相互に関係しながら動作している。ただし、各プロセスが同一の専門家によって作られたプロセスではないため、すべてのプロセスが同じルールで動作しているとは限らない。   There are many processes in an information processing apparatus such as a personal computer, and they operate independently or in relation to each other. However, since each process is not a process created by the same expert, not all processes are operating according to the same rule.

一方で、複数のプロセス間で問題が生じると、システムに重大な障害を発生させる可能性がある。特に独自のシステムをパーソナルコンピュータに導入する場合にはこのような問題が発生しやすい。特許文献1によれば、名前が指定された任意のプロセスを監視対象とし、監視プロセスの異常終了時に連動処理を振り分けてプロセス監視開始/終了期間の柔軟な設定を可能にしたプロセス監視システムが提案されている。具体的には、監視プロセス手段がプロセス監視開始部からの通知を受け取ると監視プロセス定義ファイルを読み込み、監視対象プロセスのプロセス名を取得する。プロセス名を基にプロセスIDをオペレーティングシステムのプロセス管理テーブルから検索し、監視対象プロセス群が異常終了した場合に検知できるように設定する。プロセスの異常終了を検知するとその終了コードを取得し、プロセス名、終了コードをキーに監視プロセス定義ファイルを検索し、対応する連動処理を検索、実行する。プロセス監視終了部からの通知を受けプロセス監視を停止する。   On the other hand, if a problem occurs between a plurality of processes, it may cause a serious failure in the system. Such problems are likely to occur particularly when a unique system is introduced into a personal computer. According to Patent Document 1, a process monitoring system is proposed in which an arbitrary process with a specified name is to be monitored, and when the monitoring process ends abnormally, the linked process is assigned and the process monitoring start / end period can be set flexibly. Has been. Specifically, when the monitoring process means receives a notification from the process monitoring start unit, it reads the monitoring process definition file and acquires the process name of the monitoring target process. The process ID is retrieved from the process management table of the operating system based on the process name, and set so that it can be detected when the monitored process group ends abnormally. When an abnormal end of a process is detected, the end code is acquired, and the monitoring process definition file is searched using the process name and end code as keys, and the corresponding linked process is searched and executed. Stops process monitoring in response to notification from the process monitoring end section.

特開2000−311099号公報JP 2000-311099 A

一般に、プロセスは終了するときにリターンコードと呼ばれる値を出力する。そのリターンコードを事前に正常か異常か値で定義しておくことで、リターンコードからプロセスの終了処理が正しく行われたかどうかを判定できる。   Generally, when a process ends, it outputs a value called a return code. By defining the return code as normal or abnormal in advance, it is possible to determine from the return code whether the process termination processing has been performed correctly.

しかし、リターンコードだけでは、プロセスの停止処理が悪意あるユーザーによる意図的な停止処理なのか、処理軽減のための他のプロセスからの強制的に停止処理なのかを判定することはできない。またパーソナルコンピュータ上には、リターンコードを出力しないプロセスや、そのリターンコードの定義が不明なプロセスも多く存在する。よって、プロセスが正常に終了したのかどうかを判定することは難しい。特許文献1にもどのようにしてプロセスの異常終了を検知するかは記載されていない。   However, the return code alone cannot determine whether the process stop process is an intentional stop process by a malicious user or a forced stop process from another process to reduce the process. In addition, there are many processes on a personal computer that do not output a return code and processes whose definition of the return code is unknown. Therefore, it is difficult to determine whether the process has ended normally. Patent Document 1 does not describe how to detect the abnormal end of the process.

そこで、本発明は、このような課題および他の課題のうち、少なくとも1つを解決することを目的とする。本発明は、たとえば、監視対象のプロセスの終了処理が行われたときに当該プロセスが正常に終了したかどうかを判定することを目的とする。なお、他の課題については明細書の全体を通して理解できよう。   Therefore, an object of the present invention is to solve at least one of such problems and other problems. An object of the present invention is, for example, to determine whether or not a process has been normally terminated when a process to be monitored is terminated. Other issues can be understood throughout the specification.

本発明によれば、たとえば、予め指定されたプロセスが終了したときに、当該予め指定されたプロセスと関連した関連プロセスが稼働しているかどうかに基づいて、当該予め指定されたプロセスが正常に終了したかどうかを判定することを特徴とする情報処理装置が提供される。   According to the present invention, for example, when a predesignated process is terminated, the predesignated process is normally terminated based on whether a related process associated with the predesignated process is operating. There is provided an information processing apparatus characterized by determining whether or not it has been performed.

また、本発明によれば、
予め指定されたプロセスを監視するプロセス監視手段と、
前記予め指定されたプロセスと関連した関連プロセスを登録した関連リストを記憶する記憶手段と、
前記予め指定されたプロセスが終了したときに、前記関連リストに記憶されている前記関連プロセスが起動していれば前記予め指定されたプロセスが正常に終了したと判定し、前記関連リストに記憶されている前記関連プロセスが起動していなければ前記予め指定されたプロセスが正常に終了しなかったと判定する判定手段と
を有することを特徴とする情報処理装置が提供される。
Moreover, according to the present invention,
A process monitoring means for monitoring a predesignated process;
Storage means for storing a related list in which related processes related to the predesignated process are registered;
If the related process stored in the related list is activated when the pre-designated process ends, it is determined that the pre-designated process has ended normally, and is stored in the related list. An information processing apparatus is provided that includes a determination unit that determines that the previously designated process has not ended normally if the related process is not activated.

本発明によれば、予め指定されたプロセスが終了したときに、当該予め指定されたプロセスと関連した関連プロセスが稼働しているかどうかに基づいて、当該予め指定されたプロセスが正常に終了したかどうかを判定することで、プロセスが正常に終了したかどうかを従来よりも正確に判定できるようになる。   According to the present invention, when a predesignated process is terminated, whether the predesignated process is normally terminated based on whether a related process associated with the predesignated process is operating. By determining whether or not, it is possible to more accurately determine whether or not the process has been normally completed.

プロセス監視システムの全体的構成を示すブロック図である。It is a block diagram which shows the whole structure of a process monitoring system. 関連プロセスリストの一例を示す図である。It is a figure which shows an example of a related process list. 複数のプロセス間の相互関係の一例を示す図である。It is a figure which shows an example of the mutual relationship between several processes. 情報処理装置のハードウェア構成一例を示す図である。It is a figure which shows an example of the hardware constitutions of information processing apparatus. プロセスの終了判定方法を示すフローチャートである。It is a flowchart which shows the completion | finish determination method of a process.

図1は、本発明の一実施の形態に係るプロセス監視システム110の全体を説明したブロック図である。プロセス監視システム110は、パーソナルコンピュータ(情報処理装置)上で動作している。プロセス監視システム110は、監視対象として予め指定されたプロセス120と、予め指定されたプロセス120と関連した関連プロセスを含む関連プロセス群130との各動作を監視する。プロセス監視システム110では、パーソナルコンピュータで常時起動しており、監視対象となるプロセス120を監視している。プロセス監視システム110は、監視対象のプロセス120の終了を検知する終了検知部111と、プロセス120が正常に終了したかどうか判定する正常終了判定部112と、プロセス120が正常に終了しなかったことを通知する通知部113とを有している。   FIG. 1 is a block diagram illustrating the entire process monitoring system 110 according to an embodiment of the present invention. The process monitoring system 110 operates on a personal computer (information processing apparatus). The process monitoring system 110 monitors each operation of the process 120 specified in advance as a monitoring target and the related process group 130 including related processes related to the process 120 specified in advance. The process monitoring system 110 is always activated by a personal computer and monitors the process 120 to be monitored. The process monitoring system 110 includes an end detection unit 111 that detects the end of the process 120 to be monitored, a normal end determination unit 112 that determines whether the process 120 has ended normally, and that the process 120 has not ended normally. And a notification unit 113 for notifying the user.

終了検知部111は、監視対象のプロセス120を監視しており、監視対象のプロセス120の終了するときに発行する終了イベントを取得し、監視対象のプロセス120の終了を検知する。終了検知部111は、監視対象のプロセス120の終了を検知すると、監視対象のプロセス120が終了したことを示す終了情報を正常終了判定部112に通知する。終了情報には、監視対象のプロセス120のプロセス名やプロセスIDなど、監視対象のプロセス120を識別可能な識別情報が含まれている。このように、終了検知部111は、予め指定されたプロセス120を監視するプロセス監視手段として機能する。   The end detection unit 111 monitors the process 120 to be monitored, acquires an end event issued when the process 120 to be monitored ends, and detects the end of the process 120 to be monitored. When detecting the end of the monitoring target process 120, the end detection unit 111 notifies the normal end determination unit 112 of end information indicating that the monitoring target process 120 has ended. The end information includes identification information that can identify the process 120 to be monitored, such as the process name and process ID of the process 120 to be monitored. As described above, the end detection unit 111 functions as a process monitoring unit that monitors the process 120 specified in advance.

正常終了判定部112は、終了検知部111から終了情報を受信すると、関連プロセス群130の稼働起動状況を確認する。関連プロセス群130に属する1つ以上の関連プロセスのプロセス名などの識別情報は関連プロセスリスト140に登録されているものとする。関連プロセスリスト140は、予め指定されたプロセス120と関連した関連プロセスを登録した関連リストの一例である。関連プロセスリスト140は、ハードディスクドライブ、メモリなどの記憶手段に記憶されている。一方で、オペレーティングシステム(OS)150は、パーソナルコンピュータで動作しているすべてのプロセスを登録したプロセスリスト(以下、OSプロセスリスト160と称す。)を作成し、保持している。正常終了判定部112は、オペレーティングシステム150が管理しているOSプロセスリスト160を参照することで、関連プロセス群130が稼働しているかどうかを判定する。正常終了判定部112は、監視対象のプロセス120が終了したときに、関連プロセスリストに記憶されている関連プロセス群130が起動していれば監視対象のプロセス120が正常に終了したと判定する。また、正常終了判定部112は、関連プロセスリストに記憶されている関連プロセス群130が起動していなければ予め指定された監視対象のプロセスが正常に終了しなかったと判定する。   When the normal end determination unit 112 receives the end information from the end detection unit 111, the normal end determination unit 112 checks the operation start status of the related process group 130. It is assumed that identification information such as process names of one or more related processes belonging to the related process group 130 is registered in the related process list 140. The related process list 140 is an example of a related list in which related processes related to the process 120 specified in advance are registered. The related process list 140 is stored in a storage unit such as a hard disk drive or a memory. On the other hand, the operating system (OS) 150 creates and holds a process list (hereinafter referred to as an OS process list 160) in which all processes operating on the personal computer are registered. The normal end determination unit 112 refers to the OS process list 160 managed by the operating system 150 to determine whether the related process group 130 is operating. The normal end determination unit 112 determines that the monitored process 120 has ended normally if the related process group 130 stored in the related process list is activated when the monitored process 120 ends. In addition, the normal end determination unit 112 determines that the process to be monitored that has been designated in advance has not ended normally unless the related process group 130 stored in the related process list is activated.

監視対象のプロセス120は1つでもよいし、複数であってもよい。ただし、複数の監視対象のプロセス120が存在する場合、複数の監視対象のプロセス120のそれぞれごとに、相互に関係した関連プロセス群130を関連プロセスリストに記憶しておけばよい。   There may be one or more processes 120 to be monitored. However, when there are a plurality of processes 120 to be monitored, a related process group 130 may be stored in the related process list for each of the plurality of processes 120 to be monitored.

図2は、関連プロセスリスト140の一例を示す図である。関連プロセスリスト140には、監視対象として予め指定されたプロセスのプロセス名と、予め指定されたプロセスと相互に関係した関連プロセスのプロセス名とが対応付けて記憶されている。この例では、プロセスAに対して、プロセスB,C,Dが対応付けて関連プロセスリスト140に登録されている。   FIG. 2 is a diagram illustrating an example of the related process list 140. In the related process list 140, a process name of a process designated in advance as a monitoring target and a process name of a related process correlated with the process designated in advance are stored in association with each other. In this example, processes B, C, and D are associated with process A and registered in the related process list 140.

図3は、複数のプロセス間の相互関係の一例を示した図である。プロセスAとプロセスBが相互関係にある場合、プロセスAが起動状態(S301)に遷移すると、相互に関係したプロセスBは停止状態(S302)に遷移する。プロセスAが停止状態(S303)に遷移すると、プロセスBは起動状態(S304)に遷移する。このように、プロセスAが終了したときには、プロセスBが稼働している。よって、監視対象のプロセス120がプロセスAであれば、プロセスAが終了したときに、OSプロセスリストにプロセスBが掲載されていれば、プロセスAは正常に終了したと判定される。逆に、プロセスAが終了したときに、OSプロセスリストにプロセスBが掲載されていなければ、プロセスAは正常に終了しなかったと判定される。   FIG. 3 is a diagram illustrating an example of a mutual relationship between a plurality of processes. When the process A and the process B are in a mutual relationship, when the process A transits to the start state (S301), the process B related to each other transits to the stop state (S302). When the process A transitions to the stop state (S303), the process B transitions to the start state (S304). Thus, when the process A ends, the process B is operating. Therefore, if the process 120 to be monitored is the process A, when the process A ends, if the process B is listed in the OS process list, it is determined that the process A has ended normally. On the other hand, when the process A ends, if the process B is not listed in the OS process list, it is determined that the process A did not end normally.

図4は、情報処理装置として適用可能なコンピュータ100のハードウェア構成例を示すブロック図である。CPU41は、ROM42やRAM43に格納されているコンピュータプログラムやデータを用いてコンピュータ全体の制御を行う。とりわけ、CPU41は、コンピュータプログラムを実行することでプロセス監視システム110として機能する。ROM42には、コンピュータ100の設定データや、ブートプログラムなどが格納されている。   FIG. 4 is a block diagram illustrating a hardware configuration example of the computer 100 applicable as the information processing apparatus. The CPU 41 controls the entire computer using computer programs and data stored in the ROM 42 and RAM 43. In particular, the CPU 41 functions as the process monitoring system 110 by executing a computer program. The ROM 42 stores setting data of the computer 100, a boot program, and the like.

RAM43は、HDD(ハードディスクドライブ)44からロードされたコンピュータプログラムやデータ、通信インターフェース47を介して外部から受信したデータなどを一時的に記憶するためのエリアを有する。さらに、RAM43は、CPU41が各種の処理を実行する際に用いるワークエリアを有する。すなわち、RAM43は、各種のエリアを適宜提供することができる。   The RAM 43 has an area for temporarily storing computer programs and data loaded from an HDD (Hard Disk Drive) 44, data received from the outside via the communication interface 47, and the like. Further, the RAM 43 has a work area used when the CPU 41 executes various processes. That is, the RAM 43 can provide various areas as appropriate.

HDD44には、オペレーティングシステム150やプロセス監視システム110に相当するプログラム、プロセス120や関連プロセス群130に相当するプログラムが記憶されている。また、関連プロセスリスト140や、監視対象として指定されたプロセスの情報もHDD44に記憶されているものとする。   The HDD 44 stores a program corresponding to the operating system 150 and the process monitoring system 110, and a program corresponding to the process 120 and the related process group 130. It is also assumed that the related process list 140 and information on processes designated as monitoring targets are also stored in the HDD 44.

HDD44に保存されているコンピュータプログラムやデータは、CPU41による制御に従って適宜にRAM43にロードされ、CPU41による処理対象となる。   Computer programs and data stored in the HDD 44 are appropriately loaded into the RAM 43 under the control of the CPU 41 and are processed by the CPU 41.

入力装置45は、キーボードやマウスなどにより構成されており、本コンピュータの操作者は、この入力装置45を操作することで、各種の指示をCPU41に対して入力することができる。たとえば、CPU41は、入力装置45を通じて監視対象として指定されたプロセス120の情報を受け付けて、HDD44に記憶する。また、CPU41は、入力装置45を通じて、監視対象として指定されたプロセス120に関連した関連プロセスの情報も受け付けて、関連プロセスリスト140を作成し、HDD44に記憶してもよい。   The input device 45 includes a keyboard, a mouse, and the like. An operator of the computer can input various instructions to the CPU 41 by operating the input device 45. For example, the CPU 41 receives information on the process 120 designated as a monitoring target through the input device 45 and stores it in the HDD 44. The CPU 41 may also receive information on related processes related to the process 120 designated as the monitoring target through the input device 45, create the related process list 140, and store the related process list 140 in the HDD 44.

表示装置46は、CRTや液晶画面などにより構成されており、CPU41による処理結果を画像や文字などでもって表示することができる。たとえば、CPU41は、通知部113として機能することで、プロセス120が正常に終了しなかったことを通知するためのメッセージを表示装置46に表示させてもよい。   The display device 46 is configured by a CRT, a liquid crystal screen, or the like, and can display a processing result by the CPU 41 using an image, text, or the like. For example, the CPU 41 may cause the display device 46 to display a message for notifying that the process 120 has not ended normally by functioning as the notification unit 113.

通信インターフェース47は、様々なインターフェースで構成されている。通信インターフェース47は、たとえば、本コンピュータをネットワークに接続する為のネットワークインターフェース、外部周辺機器を接続するためのデバイスインターフェースを含む。   The communication interface 47 is composed of various interfaces. The communication interface 47 includes, for example, a network interface for connecting the computer to a network and a device interface for connecting an external peripheral device.

なお、これらのコンピュータ100の構成については係る構成に限定されることはない。つまり、上述した機能を達成できる限りにおいて、コンピュータ100の構成は適宜に変更されてもよい。   Note that the configuration of the computer 100 is not limited to such a configuration. That is, as long as the above-described functions can be achieved, the configuration of the computer 100 may be changed as appropriate.

図5は、プロセス監視システム110が実行する正常終了判定方法の各ステップを示すフローチャートである。CPU41は、オペレーティングシステム150を起動し、さらにオペレーティングシステム150にしたがって各種のプロセスやプロセス監視システム110を起動する。プロセス監視システム110は、サービスプログラムとしてオペレーティングシステム150のブート時に自動的に起動されてもよいし、ユーザーの指示にしたがって起動されてもよい。   FIG. 5 is a flowchart showing the steps of the normal end determination method executed by the process monitoring system 110. The CPU 41 activates the operating system 150 and further activates various processes and the process monitoring system 110 according to the operating system 150. The process monitoring system 110 may be automatically started when the operating system 150 is booted as a service program, or may be started according to a user instruction.

S501で、CPU41は、監視対象として予め指定されているプロセス120の名称を特定する。監視対象として予め指定されているプロセス120の名称は、HDD44に予め記憶されており、CPU41は、その名称を読み出すことで、監視対象として予め指定されているプロセス120の名称を特定する。これにより、CPU41は、プロセス120の動作の監視を開始する。   In S501, the CPU 41 specifies the name of the process 120 that is designated in advance as a monitoring target. The name of the process 120 designated in advance as the monitoring target is stored in the HDD 44 in advance, and the CPU 41 reads the name to identify the name of the process 120 designated in advance as the monitoring target. As a result, the CPU 41 starts monitoring the operation of the process 120.

S502で、CPU41は、監視対象のプロセス120が起動して稼働中であるかどうかを判定する。たとえば、CPU41は、オペレーティングシステム150が管理しているOSプロセスリスト160を参照することで、プロセス120が稼働中かどうかを判定する。CPU41は、OSプロセスリスト160に監視対象のプロセス120の識別情報が掲載されていなければプロセス120が稼働中ではないと判定する。一方で、CPU41は、OSプロセスリスト160に監視対象のプロセス120の識別情報が掲載されていればプロセス120が稼働中である判定し、S503に進む。   In S502, the CPU 41 determines whether or not the process 120 to be monitored is activated and operating. For example, the CPU 41 refers to the OS process list 160 managed by the operating system 150 to determine whether the process 120 is in operation. If the identification information of the process 120 to be monitored is not listed in the OS process list 160, the CPU 41 determines that the process 120 is not in operation. On the other hand, if the identification information of the monitoring target process 120 is listed in the OS process list 160, the CPU 41 determines that the process 120 is in operation, and proceeds to S503.

S503で、CPU41は、プロセス120が終了したかどうかを判定する。CPU41は、終了検知部111として機能することで、プロセス120の終了イベントを検知する。CPU41は、この終了イベントを検知していなければプロセス120が終了していないと判定し、終了イベントを検知したならばプロセス120が終了したと判定する。プロセス120が終了すると、CPU41は、プロセス120が終了したことを正常終了判定部112に通知し、S504に進む。   In step S503, the CPU 41 determines whether the process 120 has ended. The CPU 41 functions as the end detection unit 111 to detect an end event of the process 120. If the end event is not detected, the CPU 41 determines that the process 120 has not ended. If the end event is detected, the CPU 41 determines that the process 120 has ended. When the process 120 ends, the CPU 41 notifies the normal end determination unit 112 that the process 120 has ended, and the process proceeds to S504.

S504で、CPU41は、正常終了判定部112として機能し、関連プロセスリスト140を参照し、プロセス120に関連した関連プロセス群130の識別情報を取得する。   In step S <b> 504, the CPU 41 functions as the normal end determination unit 112, refers to the related process list 140, and acquires identification information of the related process group 130 related to the process 120.

S505で、CPU41は、正常終了判定部112として機能し、オペレーティングシステム150が管理しているOSプロセスリスト160を参照する。   In step S <b> 505, the CPU 41 functions as the normal end determination unit 112 and refers to the OS process list 160 managed by the operating system 150.

S506で、CPU41は、正常終了判定部112として機能し、監視対象のプロセス120が正常に終了したかどうかを判定する。たとえば、CPU41は、オペレーティングシステム150が管理しているOSプロセスリスト160に関連プロセス群130の識別情報が掲載されているかどうかに基づいて、監視対象のプロセス120が正常に終了したかどうかを判定してもよい。オペレーティングシステム150が管理しているOSプロセスリスト160に関連プロセス群130の識別情報が掲載されていれば、関連プロセス群130が稼働していることを意味する。オペレーティングシステム150が管理しているOSプロセスリスト160に関連プロセス群130の識別情報が掲載されており、関連プロセス群130が稼働していれば、監視対象のプロセス120が正常に終了したことを意味する。そのため、S502に戻り、プロセス120の監視を継続する。一方で、オペレーティングシステム150が管理しているOSプロセスリスト160に関連プロセス群130の識別情報が掲載されておらず、関連プロセス群130が稼働していなければ、監視対象のプロセス120が正常に終了していない(異常終了した)ため、S507に進む。CPU41は、通知部113に監視対象のプロセス120が正常に終了しなかったことを通知する。   In step S <b> 506, the CPU 41 functions as the normal end determination unit 112 and determines whether the process 120 to be monitored has ended normally. For example, the CPU 41 determines whether or not the process 120 to be monitored has ended normally based on whether or not the identification information of the related process group 130 is listed in the OS process list 160 managed by the operating system 150. May be. If the identification information of the related process group 130 is listed in the OS process list 160 managed by the operating system 150, it means that the related process group 130 is operating. If the identification information of the related process group 130 is listed in the OS process list 160 managed by the operating system 150, and the related process group 130 is operating, it means that the process 120 to be monitored has ended normally. To do. Therefore, the process returns to S502 and monitoring of the process 120 is continued. On the other hand, if the identification information of the related process group 130 is not posted in the OS process list 160 managed by the operating system 150 and the related process group 130 is not operating, the process 120 to be monitored ends normally. Since it has not (abnormal end), the process proceeds to S507. The CPU 41 notifies the notification unit 113 that the process 120 to be monitored has not ended normally.

S507で、CPU41は、通知部113として機能し、監視対象のプロセス120が正常に終了しなかったことを示すメッセージを表示装置46に出力させる。なお、CPU41は、通信インターフェース47を通じて、管理者や他のコンピュータに対して、当該通知を送信してもよい。また、CPU41は、コンピュータ100の全ての機能を停止してもよい。   In step S <b> 507, the CPU 41 functions as the notification unit 113 and causes the display device 46 to output a message indicating that the process 120 to be monitored has not ended normally. Note that the CPU 41 may transmit the notification to the administrator or another computer through the communication interface 47. Further, the CPU 41 may stop all functions of the computer 100.

なお、プロセス120の正常終了判定条件は、たとえば、関連プロセス群130に属する複数のプロセスのうち所定数(たとえば1個、2個またはすべて)のプロセスが稼働してないことを条件としてもよい。   Note that the normal termination determination condition of the process 120 may be, for example, a condition that a predetermined number (for example, one, two, or all) of a plurality of processes belonging to the related process group 130 are not operating.

監視対象のプロセス120は、基本的に、プロセス監視システム110が導入されているコンピュータ100に存在するが、関連プロセス群130は、コンピュータ100に存在していてもよいし、他のコンピュータ上に存在していてもよい。この場合、CPU41は、他のコンピュータに対して、関連プロセス群130が稼働しているかどうかを問い合わせることになる。   The process 120 to be monitored basically exists in the computer 100 in which the process monitoring system 110 is installed, but the related process group 130 may exist in the computer 100 or exist on another computer. You may do it. In this case, the CPU 41 inquires of another computer whether or not the related process group 130 is operating.

以上説明したように本実施形態によれば、CPU41(正常終了判定部112)は、予め指定されたプロセス120が終了したときに、プロセス120と関連した関連プロセス群130が稼働しているかどうかに基づいて、プロセス120が正常に終了したかどうかを判定する。より具体的には、CPU41は、予め指定されたプロセス120が終了したときに、関連プロセスリスト140に記憶されている関連プロセス群130が起動していればプロセス120が正常に終了したと判定し、関連プロセス群130が起動していなければプロセス120が正常に終了しなかったと判定する。これは、予め指定されたプロセス120が正常に終了するときは、関連プロセス群130が常に稼働しているというプロセス間の相互関係を利用した判定方法である。たとえば、CPU41の処理を軽減するために、関連プロセス群130から強制的にプロセス120が停止されることがある。つまり、関連プロセス群130は予め指定されたプロセス120を終了させるプロセスであり、プロセス120の終了には関連プロセス群130が深く関与していることがある。このようなプロセス間の相互関係を利用することで、本発明は、プロセスが正常に終了したかどうかを従来よりも正確に判定できるようになる。たとえば、監視対象のプロセス120が、悪意あるユーザーによって意図的に停止されたときは、関連プロセス群130が稼働していない可能性がある。よって、プロセス間の相互関係を利用すれば、悪意あるユーザーによってプロセス120が停止されたのか、CPU41の処理を軽減するために、関連プロセス群130から強制的にプロセス120が停止されたのかを区別できるようになろう。   As described above, according to the present embodiment, the CPU 41 (normal end determination unit 112) determines whether the related process group 130 related to the process 120 is operating when the process 120 designated in advance is ended. Based on this, it is determined whether the process 120 has ended normally. More specifically, the CPU 41 determines that the process 120 has ended normally if the related process group 130 stored in the related process list 140 is activated when the process 120 specified in advance ends. If the related process group 130 is not activated, it is determined that the process 120 has not ended normally. This is a determination method using the interrelationship between processes that the related process group 130 is always operating when the process 120 designated in advance is normally terminated. For example, the process 120 may be forcibly stopped from the related process group 130 in order to reduce the processing of the CPU 41. That is, the related process group 130 is a process for ending the process 120 designated in advance, and the related process group 130 may be deeply involved in the end of the process 120. By utilizing such interrelationships between processes, the present invention can more accurately determine whether or not a process has been normally completed. For example, when the monitored process 120 is intentionally stopped by a malicious user, the related process group 130 may not be operating. Therefore, if the interrelationship between processes is used, whether the process 120 is stopped by a malicious user or whether the process 120 is forcibly stopped from the related process group 130 to reduce the processing of the CPU 41 is distinguished. I will be able to do it.

また、本実施形態では、リターンコードを用いずにプロセス120が正常に終了したかどうかを判定できるため、リターンコードに頼った判定手法よりも誤判定が少なくなる。コンピュータ100には多数のプロセスが動作しており、その中にはリターンコードを返さないプロセスや定義不明のリターンコードを返すプロセスも存在する。よって、リターンコードに頼った判定手法では、このようなプロセスについて正常に終了したかどうかを正確に判定できない。一方で、本実施形態では、リターンコードを用いずにプロセス120が正常に終了したかどうかを判定できるため、従来よりも正確に判定できるといえよう。   Further, in the present embodiment, it is possible to determine whether or not the process 120 has ended normally without using a return code, so that erroneous determination is less than a determination method that relies on a return code. A large number of processes are operating in the computer 100, and there are processes that do not return a return code and processes that return a return code whose definition is unknown. Therefore, a determination method that relies on a return code cannot accurately determine whether or not such a process has ended normally. On the other hand, in the present embodiment, it can be determined whether or not the process 120 has ended normally without using a return code, and therefore it can be said that the determination can be made more accurately than in the past.

CPU41は、関連プロセスリスト140を使用して正常終了判定を実行してもよい。CPU41は、関連プロセスリスト140から関連プロセス群130のプロセス名を取得し、取得したプロセス名が、コンピュータ100のオペレーティングシステム150が管理しているOSプロセスリスト160に掲載されているかどうかを判定することで、予め指定されたプロセス120が正常に終了したかどうかを判定してもよい。OSは、稼働しているすべてのサービスやプロセスを管理するためにOSプロセスリスト160を作成して保持しているため、CPU41は、これを利用することで簡単に関連プロセス群130が稼働しているかどうかを判定できる。   The CPU 41 may perform normal termination determination using the related process list 140. The CPU 41 acquires the process name of the related process group 130 from the related process list 140 and determines whether the acquired process name is listed in the OS process list 160 managed by the operating system 150 of the computer 100. Thus, it may be determined whether or not the process 120 designated in advance has ended normally. Since the OS creates and holds an OS process list 160 in order to manage all the services and processes that are running, the CPU 41 can easily use the related process group 130 to operate. Can be determined.

なお、CPU41は、関連プロセスリスト140に記憶されているすべての関連プロセスが起動していればプロセス120が正常に終了したと判定し、関連プロセスリスト140に記憶されているすべての関連プロセスが起動していなければ予め指定されたプロセス120が正常に終了しなかったと判定してもよい。あるいは、CPU41は、関連プロセスリスト140に記憶されている複数の関連プロセスのうち少なくとも1つの関連プロセスが起動していれば予め指定されたプロセス120が正常に終了したと判定し、関連プロセスリスト140に記憶されている複数の関連プロセスのすべてが起動していなければプロセス120が正常に終了しなかったと判定してもよい。このように、プロセス120と関連プロセス群130との相互関係の特徴に応じて、正常終了の判定条件を厳格にしてもよいし、緩やかにしてもよい。   Note that the CPU 41 determines that the process 120 has ended normally if all the related processes stored in the related process list 140 are started, and starts all the related processes stored in the related process list 140. If not, it may be determined that the process 120 designated in advance has not ended normally. Alternatively, the CPU 41 determines that the process 120 designated in advance has ended normally if at least one related process of a plurality of related processes stored in the related process list 140 is activated, and the related process list 140 It may be determined that the process 120 has not ended normally unless all of the plurality of related processes stored in the process are activated. As described above, the normal termination determination condition may be stricter or gentler according to the feature of the mutual relationship between the process 120 and the related process group 130.

CPU41は、予め指定されたプロセス120が正常に終了しなかったと判定すると、プロセスの異常終了を通知する通知する通知手段として表示装置46や通信インターフェース47を機能させてもよい。これによりユーザーや管理者はプロセス120が正常に終了しなかったことを早期に把握することが可能となる。   If the CPU 41 determines that the process 120 designated in advance has not ended normally, the CPU 41 may cause the display device 46 and the communication interface 47 to function as notification means for notifying the abnormal end of the process. As a result, the user or the administrator can quickly grasp that the process 120 has not ended normally.

なお、本実施形態では、関連プロセス群130が複数の関連プロセスを含むものとして説明してきたが、もちろん、関連プロセス群130に含まれる関連プロセスは1つであってもよい。関連プロセス群130という名称は、単なる説明の便宜上の呼称にすぎない。   In the present embodiment, the related process group 130 has been described as including a plurality of related processes. However, of course, the related process group 130 may include one related process. The name of the related process group 130 is merely a name for convenience of explanation.

Claims (9)

予め指定されたプロセスが終了したときに、当該予め指定されたプロセスと関連した関連プロセスが稼働しているかどうかに基づいて、当該予め指定されたプロセスが正常に終了したかどうかを判定することを特徴とする情報処理装置。   Determining whether or not the predesignated process has terminated normally based on whether or not an associated process associated with the predesignated process is running when the predesignated process is terminated A characteristic information processing apparatus. 予め指定されたプロセスを監視するプロセス監視手段と、
前記予め指定されたプロセスと関連した関連プロセスを登録した関連リストを記憶する記憶手段と、
前記予め指定されたプロセスが終了したときに、前記関連リストに記憶されている前記関連プロセスが起動していれば前記予め指定されたプロセスが正常に終了したと判定し、前記関連リストに記憶されている前記関連プロセスが起動していなければ前記予め指定されたプロセスが正常に終了しなかったと判定する判定手段と
を有することを特徴とする情報処理装置。
A process monitoring means for monitoring a predesignated process;
Storage means for storing a related list in which related processes related to the predesignated process are registered;
If the related process stored in the related list is activated when the pre-designated process ends, it is determined that the pre-designated process has ended normally, and is stored in the related list. An information processing apparatus comprising: a determination unit that determines that the predetermined process has not ended normally if the related process is not activated.
前記関連プロセスは、前記予め指定されたプロセスを終了させるプロセスであることを特徴とする請求項2に記載の情報処理装置。   The information processing apparatus according to claim 2, wherein the related process is a process for terminating the predesignated process. 前記判定手段は、前記関連リストから前記関連プロセスのプロセス名を取得し、取得した当該プロセス名が、前記情報処理装置のオペレーティングシステムが管理しているプロセスリストに掲載されているかどうかを判定することで、前記予め指定されたプロセスが正常に終了したかどうかを判定することを特徴とする請求項2または3に記載の情報処理装置。   The determination unit acquires a process name of the related process from the related list, and determines whether the acquired process name is listed in a process list managed by an operating system of the information processing apparatus. The information processing apparatus according to claim 2, wherein the information processing apparatus determines whether or not the predesignated process has been normally completed. 前記判定手段は、前記関連リストに記憶されているすべての関連プロセスが起動していれば前記予め指定されたプロセスが正常に終了したと判定し、前記関連リストに記憶されているすべての関連プロセスが起動していなければ前記予め指定されたプロセスが正常に終了しなかったと判定することを特徴とする請求項2ないし4のいずれか1項に記載の情報処理装置。   If all the related processes stored in the related list are activated, the determination unit determines that the predesignated process has ended normally, and all the related processes stored in the related list 5. The information processing apparatus according to claim 2, wherein the information processing apparatus determines that the process designated in advance is not completed normally if the process is not started. 6. 前記判定手段は、前記関連リストに記憶されている複数の関連プロセスのうち少なくとも1つの関連プロセスが起動していれば前記予め指定されたプロセスが正常に終了したと判定し、前記関連リストに記憶されている複数の関連プロセスのすべてが起動していなければ前記予め指定されたプロセスが正常に終了しなかったと判定することを特徴とする請求項2ないし4のいずれか1項に記載の情報処理装置。   The determination means determines that the predesignated process has ended normally if at least one related process of a plurality of related processes stored in the related list is activated, and stores the process in the related list. 5. The information processing according to claim 2, wherein if all of the plurality of related processes that have been started are not activated, it is determined that the previously designated process has not ended normally. 6. apparatus. 前記判定手段が前記予め指定されたプロセスが正常に終了しなかったと判定すると、プロセスの異常終了を通知する通知する通知手段をさらに有することを特徴とする請求項2ないし6のいずれか1項に記載の情報処理装置。   The notification means according to any one of claims 2 to 6, further comprising a notification means for notifying the abnormal end of the process when the determination means determines that the predesignated process has not ended normally. The information processing apparatus described. 予め指定されたプロセスを監視するプロセス監視するステップと、
前記予め指定されたプロセスが終了したときに、前記予め指定されたプロセスと関連した関連プロセスを登録した関連リストを使用し、前記関連リストに記憶されている前記関連プロセスが起動していれば前記予め指定されたプロセスが正常に終了したと判定し、前記関連リストに記憶されている前記関連プロセスが起動していなければ前記予め指定されたプロセスが正常に終了しなかったと判定するステップと
を有することを特徴とするプロセスの正常終了判定方法。
A process monitoring step for monitoring a pre-designated process;
When the pre-designated process ends, the related list in which the related process related to the pre-designated process is registered is used, and the related process stored in the related list is activated. Determining that a predesignated process has ended normally, and determining that the predesignated process has not terminated normally if the related process stored in the related list is not active. A method for determining normal termination of a process, characterized in that:
予め指定されたプロセスを監視するプロセス監視手段と、
当該予め指定されたプロセスと関連した関連プロセスを登録した関連リストを記憶する記憶手段と、
前記予め指定されたプロセスが終了したときに、前記関連リストに記憶されている前記関連プロセスが起動していれば前記予め指定されたプロセスが正常に終了したと判定し、前記関連リストに記憶されている前記関連プロセスが起動していなければ前記予め指定されたプロセスが正常に終了しなかったと判定する判定手段と
して、コンピュータを機能させることを特徴とするプログラム。
A process monitoring means for monitoring a predesignated process;
Storage means for storing a related list in which related processes related to the predetermined process are registered;
If the related process stored in the related list is activated when the pre-designated process ends, it is determined that the pre-designated process has ended normally, and is stored in the related list. A program that causes a computer to function as a determination unit that determines that the previously designated process has not ended normally if the related process is not activated.
JP2012239396A 2012-10-30 2012-10-30 Information processing apparatus, process normal end determination method, and program Active JP5997005B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012239396A JP5997005B2 (en) 2012-10-30 2012-10-30 Information processing apparatus, process normal end determination method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012239396A JP5997005B2 (en) 2012-10-30 2012-10-30 Information processing apparatus, process normal end determination method, and program

Publications (2)

Publication Number Publication Date
JP2014089603A JP2014089603A (en) 2014-05-15
JP5997005B2 true JP5997005B2 (en) 2016-09-21

Family

ID=50791456

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012239396A Active JP5997005B2 (en) 2012-10-30 2012-10-30 Information processing apparatus, process normal end determination method, and program

Country Status (1)

Country Link
JP (1) JP5997005B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6938912B2 (en) * 2016-12-29 2021-09-22 富士フイルムビジネスイノベーション株式会社 Information processing equipment and programs

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1021096A (en) * 1996-07-03 1998-01-23 Oki Electric Ind Co Ltd Abnormal end detecting method for process
JP2004164271A (en) * 2002-11-13 2004-06-10 Nec System Technologies Ltd Job execution monitoring method and program

Also Published As

Publication number Publication date
JP2014089603A (en) 2014-05-15

Similar Documents

Publication Publication Date Title
EP2733611B1 (en) Internal fault handling method, device and system for virtual machine
JP5440273B2 (en) Snapshot management method, snapshot management device, and program
JP5579650B2 (en) Apparatus and method for executing monitored process
JP4746455B2 (en) Computer apparatus, start control method, and start control program
TW201843615A (en) Information processing device, information processing method and computer-readable storage medium
JP5014179B2 (en) OS priority changing device and OS priority changing program
JP5997005B2 (en) Information processing apparatus, process normal end determination method, and program
JP4905165B2 (en) Monitoring support program, monitoring method and monitoring system
JP2009151456A (en) Monitoring system, network monitoring apparatus and service execution environment monitoring method
JP5585303B2 (en) Library execution management system, library execution management method and program
JP2010134705A (en) Apparatus, log recording control method, and program
CN111710403A (en) Medical equipment supervision method, equipment and readable storage medium
JP5613570B2 (en) Batch job delay warning automatic alert system, automatic alert method, and program therefor
JP4883492B2 (en) Virtual machine management system, computer, and program
US20080141262A1 (en) System, apparatus, and method for managing a service
JP2009282601A (en) Operation monitoring program, monitoring system, and monitoring method
JP2001022717A (en) Method for deciding misoperation regarding operation management system in decentralization environment
JP2010003132A (en) Information processor, and fault detection method of input/output device thereof, and program thereof
US9723167B2 (en) Managing the activation of an application in an information processing apparatus on which a plurality of applications operate
WO2021028963A1 (en) Abnormality detection device, control method, and program
JP2015138512A (en) State monitoring device, state monitoring method, and state monitoring program
JP5978804B2 (en) Program, method and information processing apparatus for managing system
JP4611659B2 (en) Unauthorized access detection device, unauthorized access detection method, program
JP2008269383A (en) Application program monitoring control system
JP2006201890A (en) Device for taking countermeasures against program abnormality

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20151026

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160727

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160805

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160825

R150 Certificate of patent or registration of utility model

Ref document number: 5997005

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250