JP2012247937A - Information processing unit, log storage control program, and log storage control method - Google Patents

Information processing unit, log storage control program, and log storage control method Download PDF

Info

Publication number
JP2012247937A
JP2012247937A JP2011118336A JP2011118336A JP2012247937A JP 2012247937 A JP2012247937 A JP 2012247937A JP 2011118336 A JP2011118336 A JP 2011118336A JP 2011118336 A JP2011118336 A JP 2011118336A JP 2012247937 A JP2012247937 A JP 2012247937A
Authority
JP
Japan
Prior art keywords
log
storage unit
load
load state
type
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.)
Granted
Application number
JP2011118336A
Other languages
Japanese (ja)
Other versions
JP5768503B2 (en
Inventor
Tadashi Nakano
忠士 中野
Katsunori Motai
勝典 馬渡
Tetsuya Inoue
徹也 井上
Hideo Okawa
秀夫 大川
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2011118336A priority Critical patent/JP5768503B2/en
Publication of JP2012247937A publication Critical patent/JP2012247937A/en
Application granted granted Critical
Publication of JP5768503B2 publication Critical patent/JP5768503B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To store a log which is effective for a cause analysis of a trouble event.SOLUTION: A detection portion 21 detects a load state of software. When a log of the software occurs, a determination portion 22 determines, in accordance with a type of the log and the load state detected by the detection portion 21, to store, in a first load state, the log regarding a first type into a nonvolatile storage portion 25 and the log regarding a second type into a volatile storage portion 24, and to store, in a second load state in which the load is heavier than in the first load state, the log regarding the first type and the log regarding the second type into the nonvolatile storage portion 25.

Description

本発明は、情報処理装置、ログ記憶制御プログラムおよびログ記憶制御方法に関する。   The present invention relates to an information processing apparatus, a log storage control program, and a log storage control method.

コンピュータや通信装置などの情報処理装置では、各種のアプリケーションやファームウェアなどのソフトウェアが搭載される。また、情報処理装置では、不具合事象が発生した際の原因解析などのために、ソフトウェアの動作状態やエラーの発生状況などの各種情報をログとして保存することが行われる。例えば、ログを保存する技術として、ログの内容や重要度に応じて、不揮発性メモリへ保存するログと、揮発性メモリへ保存するログを固定的に分ける技術がある。   Information processing apparatuses such as computers and communication apparatuses are equipped with various applications and software such as firmware. Also, in the information processing apparatus, various information such as software operation status and error occurrence status is stored as a log for cause analysis when a malfunction event occurs. For example, as a technique for storing a log, there is a technique for fixing a log to be stored in a nonvolatile memory and a log to be stored in a volatile memory in accordance with the content and importance of the log.

また、プログラムが異常終了して再起動した際に、異常終了する直前の状態にまでプログラムの状態を復旧できるようにする技術がある。この技術では、CPU(Central Processing Unit)の利用率が低くなった場合に、プログラムの利用する揮発性メモリ内の情報を不揮発性メモリにメモリコピー情報としてコピーする。   In addition, there is a technique that enables a program state to be restored to a state just before the abnormal termination when the program is abnormally terminated and restarted. In this technique, when the utilization rate of a CPU (Central Processing Unit) becomes low, information in a volatile memory used by a program is copied to a nonvolatile memory as memory copy information.

また、CPUが暴走または停止しても、原因特定のための有用な情報を効率よく蓄積可能にする技術がある。この技術では、CPUの処理に支障を来たすであろう所定の状態を検出した場合に、CPUが周辺回路との間でやり取りする所定の信号を取得して不揮発性メモリに記録する。   Also, there is a technology that enables efficient accumulation of useful information for specifying the cause even if the CPU runs away or stops. In this technique, when a predetermined state that would interfere with the processing of the CPU is detected, a predetermined signal that the CPU exchanges with the peripheral circuit is acquired and recorded in the nonvolatile memory.

特開2007−122357号公報JP 2007-122357 A 特開2004−185318号公報JP 2004-185318 A

ところで、情報処理装置で不具合事象が発生した場合、その後、装置が再起動している場合が多く、このような場合には、不揮発性メモリに記憶されたログしか入手することができない。不具合事象の原因解析には、揮発性メモリに保存されていたログが必要な場合も多く、従来のログを保存する技術では、不具合事象の原因解析に有効なログを保存することができない。   By the way, when a malfunction event occurs in the information processing apparatus, the apparatus is often restarted after that, and in such a case, only the log stored in the nonvolatile memory can be obtained. In many cases, the cause analysis of the failure event requires a log stored in the volatile memory, and the conventional technology for saving the log cannot save a log effective for the cause analysis of the failure event.

なお、全てのログを不揮発性メモリに保存する手法も考えられるが、物理的容量の問題や処理能力の問題などがあり、現実的な解決策ではない。また、CPUの利用率が低くなった場合に、揮発性メモリ内の情報を不揮発性メモリにコピーする技術では、CPUの負荷状態が高い状態で装置の電源が突然オフとなった場合、揮発性メモリ内の情報を不揮発性メモリに保存できない。また、この技術では、揮発性メモリ内の情報が全て不揮発性メモリにコピーされるため、解析に有効なログを集中的に保存できない。また、CPUの処理に支障を来たす所定の状態を検出した場合に、CPUが周辺回路との間でやり取りする所定の信号を不揮発性メモリに記録する技術では、所定の状態以外で装置の電源が突然オフとなった場合、ログを保存できない。また、この技術では、所定の信号に関するログのみしか保存できない。   Although a method of storing all logs in a nonvolatile memory is also conceivable, there are physical capacity problems and processing capacity problems, which are not realistic solutions. Also, in the technology of copying information in the volatile memory to the non-volatile memory when the CPU usage rate becomes low, if the power of the device is suddenly turned off while the CPU load is high, the technology is volatile. Information in memory cannot be stored in non-volatile memory. Also, with this technology, all the information in the volatile memory is copied to the nonvolatile memory, so that logs effective for analysis cannot be centrally stored. In addition, when a predetermined state that hinders the processing of the CPU is detected, the technology for recording a predetermined signal that the CPU exchanges with the peripheral circuit in the nonvolatile memory is such that the power supply of the apparatus is turned on in a state other than the predetermined state. If it turns off suddenly, the log cannot be saved. Also, with this technique, only a log relating to a predetermined signal can be saved.

開示の技術は、上記に鑑みてなされたものであって、不具合事象の原因解析に有効なログを保存できる情報処理装置、ログ記憶制御プログラムおよびログ記憶制御方法を提供することを目的とする。   The disclosed technology has been made in view of the above, and an object thereof is to provide an information processing apparatus, a log storage control program, and a log storage control method capable of storing a log effective for cause analysis of a failure event.

本願の開示する情報処理装置は、一つの態様において、揮発性記憶部と、不揮発性記憶部と、検出部と、判定部と、格納部とを有する。検出部は、ソフトウェアの負荷状態を検出する。判定部は、ソフトウェアのログが発生した場合に、当該ログの種別および検出部によって検出された負荷状態に応じて、第一の負荷状態では、第一の種別に係るログは不揮発性記憶部に格納し、第二の種別に係るログは揮発性記憶部に格納する旨を判定する。また、判定部は、第一の負荷状態よりも負荷が高い第二の負荷状態では、第一の種別に係るログおよび第二の種別に係るログを不揮発性記憶部に格納する旨を判定する。格納部は、判定部の判定結果に応じて、ログを揮発性記憶部または不揮発性記憶部のいずれかに格納する。   In one aspect, an information processing apparatus disclosed in the present application includes a volatile storage unit, a nonvolatile storage unit, a detection unit, a determination unit, and a storage unit. The detection unit detects a load state of the software. When a software log is generated, the determination unit determines whether the log according to the first type is stored in the nonvolatile storage unit in the first load state according to the type of the log and the load state detected by the detection unit. It is determined that the log relating to the second type is stored in the volatile storage unit. Further, the determination unit determines that the log according to the first type and the log according to the second type are stored in the nonvolatile storage unit in the second load state where the load is higher than the first load state. . The storage unit stores the log in either the volatile storage unit or the nonvolatile storage unit according to the determination result of the determination unit.

本願の開示するログ記憶制御方法の一つの態様によれば、不具合事象の原因解析に有効なログを保存できる。   According to one aspect of the log storage control method disclosed in the present application, it is possible to save a log effective for cause analysis of a failure event.

図1は、情報処理装置の構成の一例を示す図である。FIG. 1 is a diagram illustrating an example of the configuration of the information processing apparatus. 図2は、画像配信システムの構成の一例を示す図である。FIG. 2 is a diagram illustrating an example of the configuration of the image distribution system. 図3は、CPUユニットの構成の一例を示す図である。FIG. 3 is a diagram illustrating an example of the configuration of the CPU unit. 図4は、ログ格納先情報のデータ構成の一例を示す図である。FIG. 4 is a diagram illustrating an example of a data configuration of log storage destination information. 図5は、ログ記憶制御プログラムを実行したCPUの機能的な構成の一例を示す図である。FIG. 5 is a diagram illustrating an example of a functional configuration of a CPU that executes a log storage control program. 図6は、プログラムの処理待ちメッセージ数と負荷状態との関係の一例を示す図である。FIG. 6 is a diagram illustrating an example of the relationship between the number of messages waiting to be processed by a program and the load state. 図7は、ログ記憶制御処理の手順を示す図である。FIG. 7 is a diagram illustrating a procedure of log storage control processing. 図8は、CPU負荷とソフトウェアの負荷状態との関係の一例を示す図である。FIG. 8 is a diagram illustrating an example of the relationship between the CPU load and the software load state. 図9は、CPUの負荷率とログの格納先との関係の一例を示す図である。FIG. 9 is a diagram illustrating an example of a relationship between a CPU load factor and a log storage destination. 図10は、メモリ使用率とソフトウェアの負荷状態との関係の一例を示す図である。FIG. 10 is a diagram illustrating an example of the relationship between the memory usage rate and the software load state. 図11は、所定期間の間に発生するログ数とソフトウェアの負荷状態との関係の一例を示す図である。FIG. 11 is a diagram illustrating an example of the relationship between the number of logs generated during a predetermined period and the software load state. 図12は、CPU負荷の変化と負荷の増加率との関係の一例を示す図である。FIG. 12 is a diagram illustrating an example of a relationship between a change in CPU load and an increase rate of the load. 図13は、温度センサを設けたCPUユニットの一例を示す図である。FIG. 13 is a diagram illustrating an example of a CPU unit provided with a temperature sensor. 図14は、ログ記憶制御プログラムを実行するコンピュータを示す図である。FIG. 14 is a diagram illustrating a computer that executes a log storage control program.

以下に、本願の開示する情報処理装置、ログ記憶制御プログラムおよびログ記憶制御方法の各実施例を図面に基づいて詳細に説明する。なお、各実施例は開示の技術を限定するものではない。   Hereinafter, embodiments of an information processing apparatus, a log storage control program, and a log storage control method disclosed in the present application will be described in detail with reference to the drawings. Each embodiment does not limit the disclosed technology.

実施例1に係る情報処理装置について説明する。図1は、情報処理装置の構成の一例を示す図である。図1に示すように、情報処理装置10は、検出部21と、判定部22と、格納部23と、揮発性記憶部24と、不揮発性記憶部25とを有する。情報処理装置10は、少なくともソフトウェアが搭載された機器であり、例えば、コンピュータ、通信装置などである。揮発性記憶部24は、フラッシュメモリやNVSRAM(Non Volatile Static Random Access Memory)などのデータを書き換え可能な不揮発性の半導体メモリである。不揮発性記憶部25は、例えば、フラッシュメモリやNVSRAMなどのデータを書き換え可能な不揮発性の半導体メモリである。   An information processing apparatus according to the first embodiment will be described. FIG. 1 is a diagram illustrating an example of the configuration of the information processing apparatus. As illustrated in FIG. 1, the information processing apparatus 10 includes a detection unit 21, a determination unit 22, a storage unit 23, a volatile storage unit 24, and a nonvolatile storage unit 25. The information processing device 10 is a device on which at least software is installed, and is, for example, a computer, a communication device, or the like. The volatile storage unit 24 is a non-volatile semiconductor memory that can rewrite data, such as a flash memory or a non-volatile static random access memory (NVSRAM). The nonvolatile storage unit 25 is, for example, a nonvolatile semiconductor memory that can rewrite data, such as a flash memory or an NVSRAM.

検出部21は、情報処理装置10において実行されているソフトウェア26の負荷状態を検出する。ソフトウェア26は、例えば、情報処理装置10が有するCPU(Central Processing Unit)によって実行されるアプリケーションやファームウェアなどのプログラムである。また、ソフトウェア26は、動作状態やエラーの発生状況などの各種情報をログとして生成する。この負荷状態とは、例えば、ソフトウェアの処理が想定範囲内で定常的に動作している定常状態や、想定範囲を超えて動作している過負荷状態、想定範囲を大きく超えて処理の一時的な停止や制御不能な完全な停止状態となる異常状態などがある。検出部21は、ソフトウェア26の実行に用いる演算部の負荷、当該負荷の増加率、ソフトウェア26による処理待ちのメッセージのキュー数、所定期間内に発生するログ数、ソフトウェア26の実行に用いるメモリ使用率、メモリ温度などに基づいて負荷状態を検出する。   The detection unit 21 detects the load state of the software 26 being executed in the information processing apparatus 10. The software 26 is, for example, a program such as an application or firmware executed by a CPU (Central Processing Unit) included in the information processing apparatus 10. Further, the software 26 generates various information such as an operation state and an error occurrence state as a log. This load state is, for example, a steady state in which software processing is steadily operating within an assumed range, an overload state in which the software process is operating beyond the assumed range, or a temporary process that greatly exceeds the assumed range. There is an abnormal condition that causes a complete stop or an uncontrollable complete stop. The detection unit 21 loads the arithmetic unit used for executing the software 26, the rate of increase of the load, the number of queued messages waiting for processing by the software 26, the number of logs generated within a predetermined period, and the use of the memory used for executing the software 26 The load state is detected based on the rate, the memory temperature, and the like.

判定部22は、ソフトウェア26のログが発生した場合に、当該ログの種別および検出部21によって検出された負荷状態に応じて、ログの格納先を判定する。判定部22は、第一の負荷状態では、第一の種別に係るログは不揮発性記憶部25に格納し、第二の種別に係るログは揮発性記憶部24に格納する旨を判定する。また、判定部22は、第一の負荷状態よりも負荷が高い第二の負荷状態では、第一の種別に係るログおよび第二の種別に係るログを不揮発性記憶部25に格納する旨を判定する。例えば、判定部22は、定常状態では、メモリ保護違反ログなどエラーに関するログは不揮発性記憶部25を格納先と判定し、トレースログなど処理履歴のログは揮発性記憶部24に格納先と判定する。また、判定部22は、過渡状態や異常状態では、エラーに関するログも処理履歴のログも不揮発性記憶部25に格納先と判定する。格納部23は、判定部22の判定結果に応じて、ログを揮発性記憶部24または不揮発性記憶部25のいずれかに格納する。   When a log of the software 26 is generated, the determination unit 22 determines a log storage destination according to the type of the log and the load state detected by the detection unit 21. The determination unit 22 determines that, in the first load state, the log related to the first type is stored in the nonvolatile storage unit 25 and the log related to the second type is stored in the volatile storage unit 24. In addition, in the second load state where the load is higher than the first load state, the determination unit 22 indicates that the log related to the first type and the log related to the second type are stored in the nonvolatile storage unit 25. judge. For example, in the steady state, the determination unit 22 determines that a log related to an error such as a memory protection violation log is the storage destination of the nonvolatile storage unit 25, and determines that a processing history log such as a trace log is a storage destination in the volatile storage unit 24. To do. Further, the determination unit 22 determines that the log relating to the error and the log of the processing history are stored in the nonvolatile storage unit 25 in the transient state or the abnormal state. The storage unit 23 stores the log in either the volatile storage unit 24 or the nonvolatile storage unit 25 according to the determination result of the determination unit 22.

上述してきたように、情報処理装置10は、第一の負荷状態では、第一の種別に係るログは不揮発性記憶部25に格納し、第二の種別に係るログは揮発性記憶部24に格納する。また、情報処理装置10は、第一の負荷状態よりも負荷が高い第二の負荷状態では、第一の種別に係るログおよび第二の種別に係るログを不揮発性記憶部25に格納する。すなわち、情報処理装置10は、負荷が高い場合に、不揮発性記憶部25に多くの種別のログを格納する。したがって、本実施例に係る情報処理装置10によれば、不具合事象の原因解析に有効なログを保存できる。つまり、仮に情報処理装置10が定常状態から過渡状態、異常状態と移行して電源が切断された場合、揮発性記憶部24に格納されたログは消去する。一方、不揮発性記憶部25に格納されたログは保存される。例えば、エラーに関するログに加えて、過負荷状態や異常状態における処理履歴のログは保存される。これにより、不具合事象の原因解析が行い易くなる。   As described above, in the first load state, the information processing apparatus 10 stores the log according to the first type in the nonvolatile storage unit 25 and the log according to the second type in the volatile storage unit 24. Store. Further, the information processing apparatus 10 stores the log related to the first type and the log related to the second type in the nonvolatile storage unit 25 in the second load state where the load is higher than the first load state. That is, the information processing apparatus 10 stores many types of logs in the nonvolatile storage unit 25 when the load is high. Therefore, according to the information processing apparatus 10 according to the present embodiment, it is possible to save a log effective for the cause analysis of the failure event. That is, if the information processing apparatus 10 transitions from a steady state to a transient state or an abnormal state and the power is turned off, the log stored in the volatile storage unit 24 is deleted. On the other hand, the log stored in the nonvolatile storage unit 25 is saved. For example, in addition to a log relating to an error, a log of a processing history in an overload state or an abnormal state is stored. This facilitates the cause analysis of the failure event.

次に、実施例2について説明する。実施例2では、ネットワークなどの通信回線を介して動画などを配信する画像配信システム30を説明する。図2は、画像配信システムの構成の一例を示す図である。画像配信システム30は、搭載する機能に応じて各種のユニット33を搭載可能なインターフェーススロット31を有する。また、画像配信システム30は、インターフェーススロット31の下部に電源部32を有する。電源部32は、インターフェーススロット31に搭載された各ユニットに電力を供給する。   Next, Example 2 will be described. In the second embodiment, an image distribution system 30 that distributes moving images and the like via a communication line such as a network will be described. FIG. 2 is a diagram illustrating an example of the configuration of the image distribution system. The image distribution system 30 has an interface slot 31 in which various units 33 can be mounted according to the functions to be mounted. The image distribution system 30 also has a power supply unit 32 below the interface slot 31. The power supply unit 32 supplies power to each unit mounted in the interface slot 31.

画像配信システム30は、各種のユニット33として、2つのCPUユニット33aと、1つのクロックユニット33bと、3つの画像ユニット33cとが搭載される。CPUユニット33aは、装置全体を制御する。クロックユニット33bは、各ユニット33の動作タイミングを示すクロックを提供する。画像ユニット33cは、配信する動画の画像伝送処理を行う。各ユニット33は、実施例1で説明した情報処理装置10の一例である。   In the image distribution system 30, as various units 33, two CPU units 33a, one clock unit 33b, and three image units 33c are mounted. The CPU unit 33a controls the entire apparatus. The clock unit 33 b provides a clock indicating the operation timing of each unit 33. The image unit 33c performs image transmission processing of a moving image to be distributed. Each unit 33 is an example of the information processing apparatus 10 described in the first embodiment.

ここで、CPUユニット33aの構成について説明する。図3は、CPUユニットの構成の一例を示す図である。CPUユニット33aは、プログラム格納メモリ40と、不揮発性メモリ41と、揮発性メモリ42と、格納先情報格納メモリ43と、CPU44と、RAM45と、シリアルポート46と、LAN(Local Area Network)ポート47とを有する。プログラム格納メモリ40、不揮発性メモリ41、揮発性メモリ42、格納先情報格納メモリ43と、CPU44、RAM45、シリアルポート46、およびLANポート47は、バス48で接続され、バス48を介して各種の情報をやり取りする。   Here, the configuration of the CPU unit 33a will be described. FIG. 3 is a diagram illustrating an example of the configuration of the CPU unit. The CPU unit 33a includes a program storage memory 40, a nonvolatile memory 41, a volatile memory 42, a storage location information storage memory 43, a CPU 44, a RAM 45, a serial port 46, and a LAN (Local Area Network) port 47. And have. The program storage memory 40, the nonvolatile memory 41, the volatile memory 42, the storage location information storage memory 43, the CPU 44, the RAM 45, the serial port 46, and the LAN port 47 are connected by a bus 48. Exchange information.

プログラム格納メモリ40は、例えば、ROM(Read Only Memory)、フラッシュメモリなどの不揮発性の半導体メモリ素子である。なお、プログラム格納メモリ40に代えて、ハードディスクなどの不揮発性の記憶装置を用いてもよい。プログラム格納メモリ40には、OS(オペレーティングシステム)やファームウェアなどの各種ソフトウェアのプログラム60が記憶されている。この各種ソフトウェアのプログラム60は、CPU44において実行された際に、不具合事象が発生した際の原因解析などのために、ソフトウェアの動作状態やエラーの発生状況などの各種情報をログとして生成する。この生成されるログには、動作状態を示すコードやエラーコードなどログの種別を示す種別情報が含まれている。また、プログラム格納メモリ40には、ソフトウェアのログの格納先を制御するログ記憶制御プログラム61が記憶されている。   The program storage memory 40 is a non-volatile semiconductor memory element such as a ROM (Read Only Memory) or a flash memory. Instead of the program storage memory 40, a nonvolatile storage device such as a hard disk may be used. The program storage memory 40 stores various software programs 60 such as an OS (operating system) and firmware. The various software programs 60, when executed by the CPU 44, generate various information such as software operating states and error occurrence statuses as logs in order to analyze the cause when a malfunction event occurs. The generated log includes type information indicating a log type such as a code indicating an operation state and an error code. The program storage memory 40 stores a log storage control program 61 that controls the storage location of the software log.

不揮発性メモリ41は、例えば、フラッシュメモリやNVSRAMなどのデータを書き換え可能な不揮発性の半導体メモリである。なお、不揮発性メモリ41に代えて、ハードディスク、光ディスクなどのデータを書き換え可能な不揮発性の記憶装置を用いてもよい。不揮発性メモリ41は、画像配信システム30の電源がオフした場合でも保持する必要があるログの記憶領域として用いられ、格納されたログを保持する。   The non-volatile memory 41 is a non-volatile semiconductor memory capable of rewriting data, such as a flash memory or NVSRAM. Instead of the nonvolatile memory 41, a nonvolatile storage device that can rewrite data, such as a hard disk or an optical disk, may be used. The non-volatile memory 41 is used as a storage area for logs that need to be retained even when the image distribution system 30 is powered off, and retains the stored logs.

揮発性メモリ42は、例えば、RAM(Random Access Memory)などのデータを書き換え可能な揮発性の半導体メモリである。不揮発性メモリ41は、ログを一時的に記憶する記憶領域として用いられ、ログを一時的に保持する。   The volatile memory 42 is a volatile semiconductor memory capable of rewriting data such as a RAM (Random Access Memory). The nonvolatile memory 41 is used as a storage area for temporarily storing a log, and temporarily holds the log.

格納先情報格納メモリ43は、例えば、フラッシュメモリやNVSRAMなどのデータを書き換え可能な不揮発性の半導体メモリである。なお、不揮発性メモリに代えて、ハードディスク、光ディスクなどのデータを書き換え可能な不揮発性の記憶装置を用いてもよい。格納先情報格納メモリ43には、ソフトウェア毎に、当該ソフトウェアで発生したログを揮発性メモリ42または不揮発性メモリ41のいずれかに格納するかを示す情報(以下、「ログ格納先情報」ともいう。)が記憶されている。このログ格納先情報には、ソフトウェアのログの種別ごと並びにソフトウェアの負荷状態ごとに、揮発性メモリ42または不揮発性メモリ41のいずれかにログを格納するかが記憶されている。   The storage destination information storage memory 43 is a non-volatile semiconductor memory capable of rewriting data, such as a flash memory or NVSRAM. Instead of the nonvolatile memory, a nonvolatile storage device that can rewrite data such as a hard disk or an optical disk may be used. In the storage location information storage memory 43, for each software, information indicating whether the log generated by the software is stored in either the volatile memory 42 or the nonvolatile memory 41 (hereinafter also referred to as “log storage location information”). .) Is stored. This log storage location information stores whether the log is stored in either the volatile memory 42 or the nonvolatile memory 41 for each type of software log and each software load state.

図4は、ログ格納先情報のデータ構成の一例を示す図である。ログ格納先情報には、ログ種別毎に、ソフトウェアの負荷状態が「通常状態」、「過渡状態」、「異常状態」のそれぞれの状態において揮発性メモリ42または不揮発性メモリ41のいずれを格納先とするかが記憶されている。この「通常状態」とは、例えば、想定された範囲内で装置が運用されている状態である。「異常状態」とは、例えば、装置に問題があり、運用に支障をきたしており、装置のダウンやリブートになる可能性が多い状態である。「過度状態」とは、例えば、異常状態とまではいかないが、想定された範囲を超えて運用されている状態である。   FIG. 4 is a diagram illustrating an example of a data configuration of log storage destination information. In the log storage destination information, for each log type, either the volatile memory 42 or the non-volatile memory 41 is stored in each of the software load states of “normal state”, “transient state”, and “abnormal state”. Is memorized. The “normal state” is a state in which the apparatus is operated within an assumed range, for example. The “abnormal state” is, for example, a state in which there is a problem with the device, the operation is hindered, and there is a high possibility of the device being down or rebooted. The “excessive state” is, for example, a state that does not reach an abnormal state but is operated beyond an assumed range.

ところで、ログは、種別によって不具合事象の原因解析に対する有効度が異なる。そこで、本実施例では、ログの種別ごとに原因解析にどの程度有効であるかという重要度を「高」「中」「低」の3段階のログランクとして定めている。例えば、致命的なエラーのログは、ログランクを「高」と定める。特定の状況についての原因解析に有効なログは、ログランクを「中」と定める。デバッグ用のトレースや履歴のログは、ログランクを「低」と定める。本実施例に係るログ格納先情報では、ログランクの高い種別のログは負荷状態が何れの場合も不揮発性メモリ41に記憶されるように格納先が設定される。また、ログ格納先情報には、ログランクの低い種別のログは負荷状態が低い場合、揮発性メモリ42に記憶され、負荷状態が高くなると不揮発性メモリ41に記憶されるように格納先が設定される。   By the way, the log has different effectiveness for the cause analysis of the failure event depending on the type. Therefore, in this embodiment, the importance of how effective the cause analysis is for each type of log is defined as a three-level log rank of “high”, “medium”, and “low”. For example, a fatal error log defines the log rank as “high”. A log effective for cause analysis of a specific situation has a log rank of “medium”. The trace and history log for debugging defines the log rank as “low”. In the log storage location information according to the present embodiment, the storage location is set so that the type of log with a high log rank is stored in the nonvolatile memory 41 in any load state. Further, the log storage destination information is set such that a log of a low log rank is stored in the volatile memory 42 when the load state is low, and is stored in the nonvolatile memory 41 when the load state is high. Is done.

図4の例では、メモリ保護違反ログは、ログランクが「高」とされ、通常状態、過度状態、異常状態のいずれにおいても不揮発性メモリ41が格納先と設定される。また、図4の例では、プロセスキュー情報やプロセス情報は、ログランクが「中」とされ、通常状態において揮発性メモリ42が格納先と設定され、過度状態および異常状態において不揮発性メモリ41が格納先と設定される。図4の例では、プログラムの処理のトレースログは、ログランクが「低」とされ、通常状態および過度状態において揮発性メモリ42が格納先と設定され、異常状態において不揮発性メモリ41が格納先と設定される。   In the example of FIG. 4, the log rank of the memory protection violation log is “high”, and the nonvolatile memory 41 is set as the storage destination in any of the normal state, the excessive state, and the abnormal state. In the example of FIG. 4, the process queue information and process information have a log rank of “medium”, the volatile memory 42 is set as the storage destination in the normal state, and the nonvolatile memory 41 in the excessive state and abnormal state. Set as storage location. In the example of FIG. 4, the log rank of the program processing trace log is “low”, the volatile memory 42 is set as the storage destination in the normal state and the excessive state, and the nonvolatile memory 41 is stored in the abnormal state. Is set.

図3の説明に戻り、RAM45は、データを書き換え可能な揮発性の半導体メモリである。RAM45は、CPU44が各種プログラムを実行する際のワークエリアとして用いられる。   Returning to the description of FIG. 3, the RAM 45 is a volatile semiconductor memory capable of rewriting data. The RAM 45 is used as a work area when the CPU 44 executes various programs.

CPU44は、プログラム格納メモリ40に格納された各種のプログラム60やログ記憶制御プログラム61を読み出して実行する。プログラム60は、実行されると動作状態やエラーの発生状況などのログを発生する。ログ記憶制御プログラム61は、プログラム60で発生したログの種別および負荷状態に応じてログを揮発性メモリ42または不揮発性メモリ41のいずれかに格納するかを制御する。   The CPU 44 reads and executes various programs 60 and a log storage control program 61 stored in the program storage memory 40. When the program 60 is executed, it generates a log such as an operation state and an error occurrence state. The log storage control program 61 controls whether the log is stored in the volatile memory 42 or the nonvolatile memory 41 in accordance with the type of log generated by the program 60 and the load state.

シリアルポート46およびLANポート47は、通信ケーブル49を介してパーソナルコンピュータなどの端末装置50と接続される。例えば、画像配信システム30の管理者は、不具合事象の原因解析などを行う場合、シリアルポート46またはLANポート47に接続された端末装置50からログ収集コマンドを送信する。CPU44は、ログ収集コマンドを受信すると揮発性メモリ42および不揮発性メモリ41に記憶されたログをファイル化し、端末装置50へ転送する。管理者は、転送されたログファイルの解析を行うことにより、不具合事象の原因解析を行う。なお、他のユニット33b、cもユニット33aと同様の構成を有する。   The serial port 46 and the LAN port 47 are connected to a terminal device 50 such as a personal computer via a communication cable 49. For example, the administrator of the image distribution system 30 transmits a log collection command from the terminal device 50 connected to the serial port 46 or the LAN port 47 when performing the cause analysis of the malfunction event. When the CPU 44 receives the log collection command, the log stored in the volatile memory 42 and the nonvolatile memory 41 is filed and transferred to the terminal device 50. The administrator analyzes the cause of the failure event by analyzing the transferred log file. The other units 33b and c have the same configuration as the unit 33a.

次に、図5を用いて、ログ記憶制御プログラム61を実行された際の機能的な構成を説明する。図5は、ログ記憶制御プログラムを実行したCPUの機能的な構成の一例を示す図である。また、図5の例では、ログ記憶制御プログラム61の他に、プログラム60として、障害検知用のプログラム60aや、各種サービル用のプログラム60b、画像処理のプログラム60c、OSなどの制御プログラム60dがCPU44により実行されている。プログラム60a、60b、60cは、プロセス間通信によりメッセージをやりとりする。制御プログラム60dは、プログラム60a、60b、60cの間のプロセス間通信を管理する。RAM45には、プログラム60a、60b、60c毎に送信されたメッセージを格納し、処理待ちのメッセージをFIFO(First In First Out)形式で管理するメッセージキュー領域が設けられている。   Next, a functional configuration when the log storage control program 61 is executed will be described with reference to FIG. FIG. 5 is a diagram illustrating an example of a functional configuration of a CPU that executes a log storage control program. In the example of FIG. 5, in addition to the log storage control program 61, as the program 60, a fault detection program 60 a, various service programs 60 b, an image processing program 60 c, and a control program 60 d such as an OS are CPU 44. Has been executed by. The programs 60a, 60b, and 60c exchange messages by inter-process communication. The control program 60d manages interprocess communication between the programs 60a, 60b, and 60c. The RAM 45 is provided with a message queue area that stores messages transmitted for each of the programs 60a, 60b, and 60c, and manages messages waiting to be processed in a FIFO (First In First Out) format.

ログ記憶制御プログラム61は、監視部70と、判定部71と、格納部72とを有する。   The log storage control program 61 includes a monitoring unit 70, a determination unit 71, and a storage unit 72.

監視部70は、各ソフトウェアの負荷状態として、プログラム60a、60b、60c毎に処理待ちのメッセージ数を監視する。例えば、監視部70は、制御プログラム60dが提供するAPI(Application Programming Interface)などのメッセージ管理用のインタフェースを用いてプログラム60a、60b、60c毎に処理待ちのメッセージ数を監視する。   The monitoring unit 70 monitors the number of messages waiting to be processed for each of the programs 60a, 60b, and 60c as the load state of each software. For example, the monitoring unit 70 monitors the number of messages waiting to be processed for each of the programs 60a, 60b, and 60c using a message management interface such as an API (Application Programming Interface) provided by the control program 60d.

判定部71には、プログラム60a、60b、60cで発生したログが送信される。判定部71は、ログが送信された場合、監視部70に監視されたプログラム60a、60b、60c毎に処理待ちのメッセージ数を参照し、処理待ちのメッセージ数が多いほど負荷状態が高いものとして負荷状態を特定する。例えば、判定部71は、何れのプログラム60の処理待ちのメッセージ数も所定の許容範囲以内の場合、負荷状態が通常状態であると特定する。また、判定部71は、何れかのプログラム60の処理待ちのメッセージ数が上記許容範囲よりも大きく、上記許容範囲よりも大きい所定の閾値以内の場合、負荷状態が過渡状態であると特定する。また、判定部71は、何れかのプログラム60の処理待ちの処理待ちのメッセージ数が上記閾値よりも大きい場合、負荷状態が異常状態であると特定する。図6は、プログラムの処理待ちのメッセージ数と負荷状態との関係の一例を示す図である。図6の例では、処理待ちのメッセージ数が4つまでを許容範囲としている。図6に示すように、プログラム60a、60cの処理待ちのメッセージ数が2つであり、プログラム60bの処理待ちのメッセージ数が3つの場合は、負荷状態が通常状態と特定される。また、プログラム60a、60cの処理待ちのメッセージ数が2つであり、プログラム60bの処理待ちのメッセージ数が6つに増加した場合は、負荷状態が過度状態と特定される。さらに、プログラム60a、60cの処理待ちのメッセージ数が2つであり、プログラム60bの処理待ちのメッセージ数が閾値よりも大きくなった場合は、負荷状態が異常状態と特定される。なお、閾値は、例えば、許容範囲の2倍などと許容範囲を基準に定めてよい。また、処理待ちのメッセージ数がメッセージキュー領域のバッファ溢れとなった場合に負荷状態が異常状態と特定してもよい。   Logs generated by the programs 60a, 60b, and 60c are transmitted to the determination unit 71. When the log is transmitted, the determination unit 71 refers to the number of messages waiting for processing for each of the programs 60a, 60b, and 60c monitored by the monitoring unit 70, and assumes that the load state increases as the number of messages waiting for processing increases. Identify load conditions. For example, when the number of messages waiting to be processed by any program 60 is within a predetermined allowable range, the determination unit 71 specifies that the load state is the normal state. In addition, the determination unit 71 specifies that the load state is a transient state when the number of messages waiting to be processed by any one of the programs 60 is greater than the allowable range and within a predetermined threshold value that is greater than the allowable range. Further, the determination unit 71 specifies that the load state is an abnormal state when the number of messages waiting to be processed by any program 60 is greater than the threshold value. FIG. 6 is a diagram illustrating an example of the relationship between the number of messages waiting to be processed by a program and the load state. In the example of FIG. 6, the allowable range is up to four messages waiting to be processed. As shown in FIG. 6, when the number of messages waiting for processing of the programs 60a and 60c is two and the number of messages waiting for processing of the program 60b is three, the load state is specified as the normal state. In addition, when the number of messages waiting for processing of the programs 60a and 60c is two and the number of messages waiting for processing of the program 60b is increased to six, the load state is identified as an excessive state. Furthermore, when the number of messages waiting for processing of the programs 60a and 60c is two and the number of messages waiting for processing of the program 60b is larger than the threshold value, the load state is identified as an abnormal state. The threshold value may be determined based on the allowable range, for example, twice the allowable range. Further, the load state may be specified as an abnormal state when the number of messages waiting to be processed overflows the buffer of the message queue area.

判定部71は、不揮発性メモリ41に記憶された各プログラムのログ格納先情報のうち、ログを発生したプログラムのログ格納先情報を参照し、入力されたログを揮発性メモリ42または不揮発性メモリ41のいずれかに格納するかを判定する。例えば、判定部71は、ログ格納先情報から入力されたログに含まれる種別情報により示される種別および特定した負荷状態に対応した格納先を読み出すことにより、入力されたログの格納先を判定する。   The determination unit 71 refers to the log storage destination information of the program that generated the log among the log storage destination information of each program stored in the nonvolatile memory 41, and the input log is stored in the volatile memory 42 or the nonvolatile memory. 41 to determine whether to store the data. For example, the determination unit 71 determines the storage location of the input log by reading the storage location corresponding to the type indicated by the type information included in the log input from the log storage location information and the specified load state. .

これにより、例えば、ログを発生したプログラムのログ格納先情報が図4に示す内容である場合、メモリ保護違反ログは、通常状態、過度状態、異常状態のいずれにおいても不揮発性メモリ41が格納先と判定される。また、プロセスキュー情報やプロセス情報は、通常状態において揮発性メモリ42が格納先と判定され、過度状態および異常状態において不揮発性メモリ41が格納先と判定される。また、プログラムの処理のトレースログは、通常状態および過度状態において揮発性メモリ42が格納先と判定され、異常状態において不揮発性メモリ41が格納先と判定される。   Thereby, for example, when the log storage destination information of the program that generated the log has the contents shown in FIG. 4, the memory protection violation log is stored in the nonvolatile memory 41 in any of the normal state, the excessive state, and the abnormal state. It is determined. Further, the process queue information and the process information are determined as the storage destination in the volatile memory 42 in the normal state, and the nonvolatile memory 41 is determined as the storage destination in the excessive state and the abnormal state. In the trace log of the program processing, the volatile memory 42 is determined as the storage destination in the normal state and the excessive state, and the nonvolatile memory 41 is determined as the storage destination in the abnormal state.

格納部72は、判定部71の判定結果に応じて、送信されたログを揮発性メモリ42または不揮発性メモリ41のいずれかに格納する。なお、格納部72は、揮発性メモリ42および不揮発性メモリ41に記憶されたログの記憶領域がそれぞれ所定量となった場合、最も古いログに上書きして新しいログを格納する格納する。これにより、ログの容量が揮発性メモリ42および不揮発性メモリ41の容量を超えてしまい、ログが記憶できなくなることを防止できる。   The storage unit 72 stores the transmitted log in either the volatile memory 42 or the nonvolatile memory 41 in accordance with the determination result of the determination unit 71. The storage unit 72 stores the new log by overwriting the oldest log when the storage areas of the logs stored in the volatile memory 42 and the non-volatile memory 41 respectively reach predetermined amounts. Accordingly, it is possible to prevent the log capacity from exceeding the capacity of the volatile memory 42 and the non-volatile memory 41 and the log cannot be stored.

このように、負荷状態が高い場合、不揮発性メモリ41に多くの種別のログを格納することにより、不具合事象の原因解析に有効なログを保存できる。   As described above, when the load state is high, by storing many types of logs in the nonvolatile memory 41, it is possible to save logs effective for the cause analysis of the failure event.

また、負荷状態が低い場合は、ログランクの高いログを不揮発性メモリ41に格納し、ログランクの低いログを揮発性メモリ42に格納することにより、重要度の高いログのみが不揮発性メモリ41に記憶される。これにより、不揮発性メモリ41は、ログランクの高いログのみが格納されるため、ログランクの高いログを多く保存できる。また、画像配信システム30がフリーズや再起動していない場合、不揮発性メモリ41および揮発性メモリ42からログを読み出すことにより、ログランクの高いログから低いログまで取得できる。   When the load state is low, a log with a high log rank is stored in the non-volatile memory 41, and a log with a low log rank is stored in the volatile memory 42, so that only the log with high importance is stored in the non-volatile memory 41. Is remembered. Thereby, since only the log with a high log rank is stored, the non-volatile memory 41 can save many logs with a high log rank. Further, when the image distribution system 30 is not frozen or restarted, it is possible to acquire logs from a high log rank to a low log by reading the logs from the nonvolatile memory 41 and the volatile memory 42.

次に、本実施例に係るCPUユニット33aの処理の流れを説明する。図7は、ログ記憶制御処理の手順を示すフローチャートである。このログ記憶制御処理は、CPUユニット33aが起動した後、常時実行される。   Next, the flow of processing of the CPU unit 33a according to the present embodiment will be described. FIG. 7 is a flowchart showing the procedure of the log storage control process. This log storage control process is always executed after the CPU unit 33a is activated.

図7に示すように、判定部71は、ログを受信したか否かを判定する(ステップS101)。判定部71は、ログが未受信の場合(ステップS101否定)、OSなどから処理終了が指示されたか否かを判定する(ステップS102)。判定部71は、処理終了が指示された場合(ステップS102肯定)、処理を終了する。一方、判定部71は、処理終了が指示されていない場合(ステップS102否定)、ステップS101へ移行する。   As illustrated in FIG. 7, the determination unit 71 determines whether or not a log has been received (step S101). If the log has not been received (No at Step S101), the determination unit 71 determines whether an end of processing has been instructed from the OS or the like (Step S102). When the process end is instructed (Yes in step S102), the determination unit 71 ends the process. On the other hand, when the process end is not instructed (No at Step S102), the determination unit 71 proceeds to Step S101.

判定部71は、ログを受信した場合(ステップS101肯定)、監視部70に監視されたプログラム60a、60b、60c毎に処理待ちのメッセージ数を参照して負荷状態を特定する(ステップS103)。そして、判定部71は、ログ格納先情報から入力されたログの種別および特定した負荷状態に応じたログの格納先を読み出ことにより、ログの格納先を判定する(ステップS104)。格納部72は、ログの格納先が不揮発性メモリ41であるか否かを判定する(ステップS105)。格納部72は、ログの格納先が不揮発性メモリ41である場合(ステップS105肯定)、ログを不揮発性メモリ41に記憶させ(ステップS106)、その後、ステップS101へ移行する。一方、格納部72は、ログの格納先が不揮発性メモリ41ではない場合(ステップS105否定)、ログを揮発性メモリ42に記憶させ(ステップS107)、その後、ステップS101へ移行する。   When receiving the log (Yes at Step S101), the determination unit 71 identifies the load state with reference to the number of messages waiting for processing for each of the programs 60a, 60b, and 60c monitored by the monitoring unit 70 (Step S103). Then, the determination unit 71 determines the log storage destination by reading the log storage destination according to the type of log input from the log storage destination information and the specified load state (step S104). The storage unit 72 determines whether or not the log storage destination is the nonvolatile memory 41 (step S105). When the storage destination of the log is the nonvolatile memory 41 (Yes at Step S105), the storage unit 72 stores the log in the nonvolatile memory 41 (Step S106), and then proceeds to Step S101. On the other hand, if the storage location of the log is not the nonvolatile memory 41 (No at Step S105), the storage unit 72 stores the log in the volatile memory 42 (Step S107), and then proceeds to Step S101.

これにより、例えば、メモリ保護違反ログが検出された際に、負荷状態が通常状態、過度状態、異常状態のいずれにおいても、メモリ保護違反ログは不揮発性メモリ41に記憶される。一方、プロセスキュー情報やプロセス情報のログが検出された際に、負荷状態が通常状態である場合には、プロセスキュー情報やプロセス情報のログは揮発性メモリ42に記憶される。また、負荷状態が過度状態および異常状態である場合には、プロセスキュー情報やプロセス情報のログは不揮発性メモリ41に記憶される。一方、トレースログが検出された際に、負荷状態が通常状態および過度状態である場合には、トレースログは揮発性メモリ42に記憶される。また、負荷状態が異常状態である場合には、トレースログは不揮発性メモリ41に記憶される。   Thus, for example, when a memory protection violation log is detected, the memory protection violation log is stored in the nonvolatile memory 41 regardless of whether the load state is a normal state, an excessive state, or an abnormal state. On the other hand, when the process queue information and the process information log are detected and the load state is the normal state, the process queue information and the process information log are stored in the volatile memory 42. Further, when the load state is an excessive state or an abnormal state, the process queue information and the process information log are stored in the nonvolatile memory 41. On the other hand, when the load state is a normal state and an excessive state when the trace log is detected, the trace log is stored in the volatile memory 42. When the load state is an abnormal state, the trace log is stored in the nonvolatile memory 41.

上述してきたように、本実施例に係るCPUユニット33aは、ソフトウェアの負荷状態を検出する。そして、本実施例に係るCPUユニット33aは、負荷状態が通常状態の場合にはメモリ保護違反ログは不揮発性メモリ41に格納し、プロセスキュー情報やプロセス情報のログ、トレースログは揮発性メモリ42に格納する旨を判定する。また、本実施例に係るCPUユニット33aは、負荷状態が過度状態の場合にはプロセスキュー情報やプロセス情報のログ、メモリ保護違反ログは不揮発性メモリ41に格納し、トレースログは揮発性メモリ42に格納する旨を判定する。また、本実施例に係るCPUユニット33aは、負荷状態が異常状態の場合にはプロセスキュー情報やプロセス情報のログ、メモリ保護違反ログ、トレースログは不揮発性メモリ41に格納する旨を判定する。そして、本実施例に係るCPUユニット33aは、判定結果に応じて、ログを揮発性メモリ42または不揮発性メモリ41のいずれかに格納する。このように、負荷状態が高い通常状態の場合、ログランクの高いメモリ保護違反ログを不揮発性メモリ41に記憶させることにより、不揮発性メモリ41にログランクの高いログを多く保存できる。また、CPUユニット33aがフリーズや再起動していない場合、不揮発性メモリ41および揮発性メモリ42からログを読み出すことにより、ログランクの高いログから低いログまで取得できる。また、負荷状態が高くなるほど、ログランクの低いログも不揮発性メモリ41に記憶させることにより、CPUユニット33aがフリーズや再起動した場合でも、多くの種別のログを保存できるため、不具合事象の原因解析が行い易くなる。特に、不具合事象は、負荷状態が高い状態で発生しやすい。このため、負荷状態が高い場合に多くの種別のログを不揮発性メモリ41に格納するログの種別を増やして多くの種別のログを保存することにより、不具合事象の原因解析が行い易くなる。   As described above, the CPU unit 33a according to the present embodiment detects a software load state. When the load state is the normal state, the CPU unit 33a according to the present embodiment stores the memory protection violation log in the nonvolatile memory 41, and the process queue information, the process information log, and the trace log are the volatile memory 42. To store it in Further, the CPU unit 33a according to the present embodiment stores the process queue information and the process information log and the memory protection violation log in the nonvolatile memory 41 when the load state is excessive, and the trace log is stored in the volatile memory 42. To store it in Further, the CPU unit 33a according to the present embodiment determines that the process queue information, the process information log, the memory protection violation log, and the trace log are stored in the nonvolatile memory 41 when the load state is abnormal. The CPU unit 33a according to the present embodiment stores the log in either the volatile memory 42 or the nonvolatile memory 41 according to the determination result. In this way, in the normal state with a high load state, by storing the memory protection violation log with a high log rank in the nonvolatile memory 41, a large number of logs with a high log rank can be stored in the nonvolatile memory 41. Further, when the CPU unit 33a is not frozen or restarted, it is possible to acquire logs from a high log rank to a low log by reading the logs from the nonvolatile memory 41 and the volatile memory 42. Further, as the load state increases, a log with a lower log rank is stored in the nonvolatile memory 41, so that even when the CPU unit 33a is frozen or restarted, many types of logs can be saved. Analysis becomes easier. In particular, a malfunction event is likely to occur when the load state is high. For this reason, when the load state is high, the number of log types stored in the non-volatile memory 41 for many types of logs is increased, and many types of logs are saved, thereby facilitating the analysis of the cause of the failure event.

また、上述してきたように、本実施例に係るCPUユニット33aは、格納先情報格納メモリ43にログの種別ごと並びにソフトウェアの負荷状態ごとに、揮発性メモリ42または不揮発性メモリ41のいずれかにログを格納するかを示す情報を記憶する。そして、本実施例に係るCPUユニット33aは、ソフトウェアのログが発生した場合に、格納先情報格納メモリ43に記憶された情報を参照し、ログを揮発性メモリ42または不揮発性メモリ41のいずれかに格納するかを判定する。このように、ログの種別ごと並びにソフトウェアの負荷状態ごとに格納先を記憶することにより、ログの種別ごと並びにソフトウェアの負荷状態ごとにログの格納先を細かく制御できる。また、格納先情報格納メモリ43に記憶された情報を変更することにより、ログの種別ごと並びにソフトウェアの負荷状態ごとに、ログの格納先を変更できる。   Further, as described above, the CPU unit 33 a according to the present embodiment stores either the volatile memory 42 or the nonvolatile memory 41 in the storage destination information storage memory 43 for each log type and each software load state. Information indicating whether to store the log is stored. Then, when a software log is generated, the CPU unit 33a according to the present embodiment refers to information stored in the storage location information storage memory 43, and the log is stored in either the volatile memory 42 or the nonvolatile memory 41. It is determined whether or not to store. As described above, by storing the storage destination for each log type and each software load state, it is possible to finely control the log storage destination for each log type and each software load state. Further, by changing the information stored in the storage destination information storage memory 43, the log storage destination can be changed for each log type and each software load state.

さて、これまで開示の装置に関する実施例について説明したが、開示の技術は上述した実施例以外にも、種々の異なる形態にて実施されてよいものである。そこで、以下では、本発明に含まれる他の実施例を説明する。   Although the embodiments related to the disclosed apparatus have been described so far, the disclosed technology may be implemented in various different forms other than the above-described embodiments. Therefore, another embodiment included in the present invention will be described below.

例えば、上記の実施例では、監視部70が、ソフトウェアの負荷状態として、プログラム60毎に処理待ちのメッセージ数を監視し、判定部71がメッセージ数が多いほど負荷が高いと検出した場合について例示したが、開示の装置はこれに限定されない。例えば、CPU44のCPU負荷を求め、CPU負荷が高いほど負荷が高いものと検出してもよい。図8は、CPU負荷とソフトウェアの負荷状態との関係の一例を示す図である。図8の例では、横軸が時間を示し、縦軸がCPU負荷を示している。図8の例では、CPU負荷が70%未満の範囲を通常状態と定め、CPU負荷が70%以上、90%未満の範囲を過度状態と定め、CPU負荷が90%以上の範囲を異常状態と定めている。この場合、監視部70は、CPU44のCPU負荷を監視する。判定部71はCPU負荷から負荷状態を検出する。図9は、CPUの負荷率とログの格納先との関係の一例を示す図である。図9の例では、プログラムが発生するログをa〜eで示している。ログa〜eは種別が異なるものとする。図9の例では、CPU負荷が70%未満の通常状態である場合、ログa、bを不揮発性メモリ41に格納し、ログc〜eを揮発性メモリ42に格納する。また、図9の例では、CPU負荷が70%以上、90%未満の範囲の過度状態である場合、ログa〜cを不揮発性メモリ41に格納し、ログd、eを揮発性メモリ42に格納する。また、図9の例では、CPU負荷が90%以上の範囲の異常状態である場合、ログa〜eを不揮発性メモリ41に格納する。このように、負荷状態が高い場合、不揮発性メモリ41に多くの種別のログを格納することにより、不具合事象の原因解析に有効なログを保存できる。   For example, in the above embodiment, the monitoring unit 70 monitors the number of messages waiting to be processed for each program 60 as the software load state, and the determination unit 71 detects that the load is higher as the number of messages is larger. However, the disclosed apparatus is not limited to this. For example, the CPU load of the CPU 44 may be obtained, and it may be detected that the load is higher as the CPU load is higher. FIG. 8 is a diagram illustrating an example of the relationship between the CPU load and the software load state. In the example of FIG. 8, the horizontal axis indicates time, and the vertical axis indicates CPU load. In the example of FIG. 8, a range where the CPU load is less than 70% is defined as a normal state, a range where the CPU load is 70% or more and less than 90% is defined as an excessive state, and a range where the CPU load is 90% or more is defined as an abnormal state. It has established. In this case, the monitoring unit 70 monitors the CPU load of the CPU 44. The determination unit 71 detects a load state from the CPU load. FIG. 9 is a diagram illustrating an example of a relationship between a CPU load factor and a log storage destination. In the example of FIG. 9, logs generated by the programs are indicated by a to e. Logs a to e are assumed to have different types. In the example of FIG. 9, when the CPU load is in a normal state of less than 70%, the logs a and b are stored in the nonvolatile memory 41 and the logs c to e are stored in the volatile memory 42. In the example of FIG. 9, when the CPU load is in an excessive state in the range of 70% or more and less than 90%, the logs a to c are stored in the nonvolatile memory 41 and the logs d and e are stored in the volatile memory 42. Store. In the example of FIG. 9, the logs a to e are stored in the nonvolatile memory 41 when the CPU load is in an abnormal state in the range of 90% or more. As described above, when the load state is high, by storing many types of logs in the nonvolatile memory 41, it is possible to save logs effective for the cause analysis of the failure event.

また、RAM45は、メモリリーク等の不具合が発生した場合や、多くのプログラムが実行されて処理負荷が高い場合など、メモリ使用率が高くなる。そこで、ソフトウェアの負荷状態として、例えば、RAM45のメモリ使用率を求め、メモリ使用率が高いほど負荷が高いものと検出してもよい。図10は、メモリ使用率とソフトウェアの負荷状態との関係の一例を示す図である。図10の例では、メモリ使用率が50%未満の範囲を通常状態と定め、メモリ使用率が50%以上、80%未満の範囲を過度状態と定め、メモリ使用率が80%以上の範囲を異常状態と定めている。この場合、監視部70は、RAM45のメモリ使用率を監視する。判定部71はメモリ使用率から負荷状態を検出する。   In addition, the RAM 45 has a high memory usage rate when a problem such as a memory leak occurs or when many programs are executed and the processing load is high. Therefore, for example, the memory usage rate of the RAM 45 may be obtained as the software load state, and the higher the memory usage rate, the higher the load may be detected. FIG. 10 is a diagram illustrating an example of the relationship between the memory usage rate and the software load state. In the example of FIG. 10, a range where the memory usage rate is less than 50% is defined as a normal state, a range where the memory usage rate is 50% or more and less than 80% is defined as an excessive state, and a range where the memory usage rate is 80% or more. It is defined as an abnormal condition. In this case, the monitoring unit 70 monitors the memory usage rate of the RAM 45. The determination unit 71 detects the load state from the memory usage rate.

また、プログラム60は、不具合が発生した場合、発生するログの数が多くなる。そこで、ソフトウェアの負荷状態として、例えば、所定期間の間に発生するログ数を求め、ログ数が高いほど負荷が高いものと検出してもよい。図11は、所定期間の間に発生するログ数とソフトウェアの負荷状態との関係の一例を示す図である。図11の例では、横軸が時間を示し、縦軸が10分間毎の発生したログ数を示している。図11の例では、10分間に発生したログ数が50件未満の範囲を通常状態と定め、10分間に発生したログ数が50件以上、150件未満の範囲を過度状態と定め、10分間に発生したログ数が150以上の範囲を異常状態と定めている。この場合、監視部70は、所定期間の間に発生するログ数を監視する。判定部71は発生したログ数から負荷状態を検出する。   Further, the program 60 increases the number of logs generated when a problem occurs. Therefore, for example, the number of logs generated during a predetermined period may be obtained as the software load state, and it may be detected that the load is higher as the number of logs is higher. FIG. 11 is a diagram illustrating an example of the relationship between the number of logs generated during a predetermined period and the software load state. In the example of FIG. 11, the horizontal axis indicates time, and the vertical axis indicates the number of logs generated every 10 minutes. In the example of FIG. 11, a range where the number of logs generated in 10 minutes is less than 50 is defined as a normal state, and a range where the number of logs generated in 10 minutes is 50 or more and less than 150 is defined as an excessive state. A range in which the number of generated logs is 150 or more is defined as an abnormal state. In this case, the monitoring unit 70 monitors the number of logs generated during a predetermined period. The determination unit 71 detects the load state from the number of generated logs.

また、CPUユニット33aなどの情報処理装置では、負荷が高くなるとCPU44のCPU負荷が急激に増加する。そこで、ソフトウェアの負荷状態として、例えば、CPU44のCPU負荷の増加率を求め、増加率が高いほど負荷が高いものと検出してもよい。図12は、CPU負荷の変化と負荷の増加率との一例を示す図である。図12の例では、横軸が時間を示し、縦軸がCPU負荷を示している。図12の例では、CPU負荷の増加率を、所定期間Aと所定期間AでのCPU負荷の増加量Bとから、B/Aの演算を行って求める。この場合、監視部70は、所定期間毎にCPU44のCPU負荷の増加率を監視する。判定部71はCPU負荷の増加率から負荷状態を検出する。   In the information processing apparatus such as the CPU unit 33a, the CPU load of the CPU 44 increases rapidly when the load increases. Therefore, for example, an increase rate of the CPU load of the CPU 44 may be obtained as the software load state, and it may be detected that the load is higher as the increase rate is higher. FIG. 12 is a diagram illustrating an example of a change in CPU load and an increase rate of the load. In the example of FIG. 12, the horizontal axis indicates time, and the vertical axis indicates CPU load. In the example of FIG. 12, the CPU load increase rate is obtained by calculating B / A from the predetermined period A and the CPU load increase amount B during the predetermined period A. In this case, the monitoring unit 70 monitors the increase rate of the CPU load of the CPU 44 every predetermined period. The determination unit 71 detects the load state from the increasing rate of the CPU load.

また、RAM45は、内部データへのアクセスが頻繁に行われて処理負荷が高い場合など、温度が高くなる。そこで、例えば、RAM45の温度を検出する温度センサ90を設け、監視部70が、ソフトウェアの負荷状態として、RAM45の温度を監視し、判定部71が温度が高いほど負荷が高いものと検出してもよい。図13は、温度センサを設けたCPUユニットの一例を示す図である。なお、図13では、上記の実施例2のCPUユニットと同様の部分については図3と同様の符号を付し、その説明は省略することとする。図13の例では、RAM45に温度センサ90が設けられている。   Further, the RAM 45 has a high temperature when the internal data is frequently accessed and the processing load is high. Therefore, for example, a temperature sensor 90 that detects the temperature of the RAM 45 is provided, the monitoring unit 70 monitors the temperature of the RAM 45 as a software load state, and the determination unit 71 detects that the load is higher as the temperature is higher. Also good. FIG. 13 is a diagram illustrating an example of a CPU unit provided with a temperature sensor. In FIG. 13, the same parts as those of the CPU unit of the second embodiment are denoted by the same reference numerals as those in FIG. 3, and the description thereof is omitted. In the example of FIG. 13, a temperature sensor 90 is provided in the RAM 45.

また、例えば、ソフトウェアの負荷状態として、CPU44の負荷、当該負荷の増加率、ソフトウェアによる処理待ちのメッセージのキュー数、所定期間内に発生するログ数、RAM45のメモリ使用率、RAM45のメモリ温度の何れか複数を検出してもよい。この場合、検出された複数の負荷状態から全体としての負荷状態を特定すればよい。例えば、検出した複数の負荷状態のうち、最も負荷が高いものを全体の負荷状態と特定してもよい。また、例えば、最も多い負荷状態を全体の負荷状態と特定してもよい。このように、CPU44の負荷、当該負荷の増加率など様々なものから負荷状態を検出することにより、様々な不具合事象による負荷状態の変化を把握できる。   Further, for example, as the software load state, the load of the CPU 44, the increase rate of the load, the queue number of messages waiting to be processed by the software, the number of logs generated within a predetermined period, the memory usage rate of the RAM 45, the memory temperature of the RAM 45 Any one or more may be detected. In this case, the load state as a whole may be specified from the plurality of detected load states. For example, the highest load among the plurality of detected load states may be specified as the entire load state. Further, for example, the most load state may be specified as the entire load state. Thus, by detecting the load state from various things such as the load of the CPU 44 and the increase rate of the load, changes in the load state due to various trouble events can be grasped.

また、上記の実施例では、ソフトウェアの負荷状態を、「第一の負荷状態」、「第二の負荷状態」の2段階、または「通常状態」、「過渡状態」、「異常状態」の3段階に判別した場合について例示したが、開示の装置はこれに限定されない。例えば、負荷状態を4段階以上の状態に判別してもよい。   In the above-described embodiment, the software load state is divided into two stages of “first load state” and “second load state”, or “normal state”, “transient state”, and “abnormal state”. Although the case where it discriminate | determined in the stage was illustrated, the apparatus of an indication is not limited to this. For example, the load state may be discriminated into four or more stages.

また、上記の実施例2では、ログの重要度を「高」「中」「低」の3段階のログランクとした場合について例示したが、開示の装置はこれに限定されない。例えば、ログランクを2段階や4段階以上の状態に判別してもよい。   Further, in the above-described second embodiment, the case where the log importance is set to the three-level log rank of “high”, “medium”, and “low” is illustrated, but the disclosed apparatus is not limited to this. For example, the log rank may be determined in a state of two levels or four or more levels.

また、各種の負荷や使用状況などに応じて、実施例2において説明した各処理の各ステップでの処理を任意に細かくわけたり、あるいはまとめたりすることができる。また、ステップを省略することもできる。例えば、ソフトウェアの負荷状態として、CPU44の負荷、当該負荷の増加率など複数の検出を行う場合、各検出ステップおよび、それぞれの検出結果から負荷状態を判定するステップを追加する。   In addition, the processing at each step of each processing described in the second embodiment can be arbitrarily finely divided or combined according to various loads and usage conditions. Also, the steps can be omitted. For example, when a plurality of detections such as the load of the CPU 44 and the increase rate of the load are performed as the software load state, a step of determining the load state from each detection step and each detection result is added.

また、図示した各装置の各構成要素は機能概念的なものであり、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、各装置の分散・統合の具体的状態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。例えば、上記の実施例2では、ログを記憶する不揮発性記憶部とログ格納先情報を記憶する不揮発性記憶部を不揮発性メモリ41および格納先情報格納メモリ43と別々に設けた場合について例示したが、開示の装置はこれに限定されない。例えば、1つの不揮発性記憶部にログとログ格納先情報を記憶してもよい。また、上記の実施例2では、ログを記憶する揮発性記憶部とCPU44がワークエリアとして用いる揮発性記憶部を揮発性メモリ42およびRAM45と別々に設けた場合について例示したが、開示の装置はこれに限定されない。例えば、1つの揮発性記憶部をログの記憶領域およびCPU44がワークエリアとして用いてもよい。   Further, each component of each illustrated apparatus is functionally conceptual, and does not necessarily need to be physically configured as illustrated. In other words, the specific state of distribution / integration of each device is not limited to the one shown in the figure, and all or a part thereof may be functionally or physically distributed or arbitrarily distributed in arbitrary units according to various loads or usage conditions. Can be integrated and configured. For example, in the second embodiment, the case where the nonvolatile storage unit for storing the log and the nonvolatile storage unit for storing the log storage destination information are provided separately from the nonvolatile memory 41 and the storage destination information storage memory 43 are illustrated. However, the disclosed apparatus is not limited to this. For example, the log and the log storage location information may be stored in one nonvolatile storage unit. In the second embodiment, the case where the volatile storage unit that stores the log and the volatile storage unit that the CPU 44 uses as the work area is provided separately from the volatile memory 42 and the RAM 45 is described. It is not limited to this. For example, one volatile storage unit may be used as a log storage area and the CPU 44 as a work area.

[ログ記憶制御プログラム]
また、上記の実施例で説明した情報処理装置の各種の処理は、あらかじめ用意されたプログラムをパーソナルコンピュータやワークステーションなどのコンピュータシステムで実行することによって実現することもできる。そこで、以下では、図14を用いて、上記の実施例で説明した情報処理装置と同様の機能を有するログ記憶制御プログラムを実行するコンピュータの一例を説明する。図14は、ログ記憶制御プログラムを実行するコンピュータを示す図である。
[Log storage control program]
Various processes of the information processing apparatus described in the above embodiments can also be realized by executing a program prepared in advance on a computer system such as a personal computer or a workstation. In the following, an example of a computer that executes a log storage control program having the same function as that of the information processing apparatus described in the above embodiment will be described with reference to FIG. FIG. 14 is a diagram illustrating a computer that executes a log storage control program.

図14に示すように、コンピュータ300は、CPU(Central Processing Unit)310、ROM(Read Only Memory)320、HDD(Hard Disk Drive)330、RAM(Random Access Memory)340を有する。これら300〜340の各部は、バス400を介して接続される。   As illustrated in FIG. 14, the computer 300 includes a central processing unit (CPU) 310, a read only memory (ROM) 320, a hard disk drive (HDD) 330, and a random access memory (RAM) 340. These units 300 to 340 are connected via a bus 400.

ROM320には、上記の実施例1に示す検出部21と、判定部22と、格納部23と、または実施例2で示す監視部70と、判定部71と、格納部72と同様の機能を発揮するログ記憶制御プログラム320aが予め記憶される。すなわち、ROM320には、図14に示すように、ログ記憶制御プログラム320aが記憶される。なお、ログ記憶制御プログラム320aについては、適宜分離しても良い。   The ROM 320 has the same functions as those of the detection unit 21, the determination unit 22, the storage unit 23, or the monitoring unit 70, the determination unit 71, and the storage unit 72 described in the second embodiment. A log storage control program 320a to be exhibited is stored in advance. That is, the ROM 320 stores a log storage control program 320a as shown in FIG. Note that the log storage control program 320a may be separated as appropriate.

そして、CPU310が、ログ記憶制御プログラム320aをROM320から読み出して実行する。   Then, the CPU 310 reads the log storage control program 320a from the ROM 320 and executes it.

そして、HDD330には、ログ格納先情報330aが設けられる。ログ格納先情報330aは、図2に示した格納先情報格納メモリ43に記憶されたログ格納先情報に対応する。   The HDD 330 is provided with log storage location information 330a. The log storage location information 330a corresponds to the log storage location information stored in the storage location information storage memory 43 shown in FIG.

そして、CPU310は、ログ格納先情報330aを読み出してRAM340に格納する。CPU310は、RAM340に格納された紐付け情報を用いて、ログ記憶制御プログラム320aを実行する。なお、RAM340に格納される各データは、常に全てのデータがRAM340に格納される必要はなく、処理に必要なデータのみがRAM340に格納されれば良い。   Then, the CPU 310 reads the log storage location information 330a and stores it in the RAM 340. The CPU 310 executes the log storage control program 320a using the association information stored in the RAM 340. Each data stored in the RAM 340 does not always need to be stored in the RAM 340, and only the data necessary for the process may be stored in the RAM 340.

なお、上記したログ記憶制御プログラム320aについては、必ずしも最初からHDD330に記憶させておく必要はない。   Note that the log storage control program 320a is not necessarily stored in the HDD 330 from the beginning.

例えば、コンピュータ300に挿入されるフレキシブルディスク(FD)、CD−ROM、DVDディスク、光磁気ディスク、ICカードなどの「可搬用の物理媒体」にプログラムを記憶させておく。そして、コンピュータ300がこれらからプログラムを読み出して実行するようにしてもよい。   For example, the program is stored in a “portable physical medium” such as a flexible disk (FD), a CD-ROM, a DVD disk, a magneto-optical disk, or an IC card inserted into the computer 300. Then, the computer 300 may read and execute the program from these.

さらには、公衆回線、インターネット、LAN、WANなどを介してコンピュータ300に接続される「他のコンピュータ(またはサーバ)」などにプログラムを記憶させておく。そして、コンピュータ300がこれらからプログラムを読み出して実行するようにしてもよい。   Furthermore, the program is stored in “another computer (or server)” connected to the computer 300 via a public line, the Internet, a LAN, a WAN, or the like. Then, the computer 300 may read and execute the program from these.

以上説明した実施形態及びその変形例に関し、更に以下の付記を開示する。   The following supplementary notes are further disclosed regarding the embodiment described above and its modifications.

(付記1)揮発性記憶部と、
不揮発性記憶部と、
ソフトウェアの負荷状態を検出する検出部と、
前記ソフトウェアのログが発生した場合に、当該ログの種別および前記検出部によって検出された負荷状態に応じて、第一の負荷状態では、第一の種別に係るログは前記不揮発性記憶部に格納し、第二の種別に係るログは前記揮発性記憶部に格納する旨を判定し、前記第一の負荷状態よりも負荷が高い第二の負荷状態では、第一の種別に係るログおよび第二の種別に係るログを前記不揮発性記憶部に格納する旨を判定する判定部と、
前記判定部の判定結果に応じて、前記ログを前記揮発性記憶部または前記不揮発性記憶部のいずれかに格納する格納部と
を有することを特徴とする情報処理装置。
(Supplementary note 1) a volatile storage unit;
A non-volatile storage unit;
A detection unit for detecting the load state of the software;
When the log of the software is generated, the log according to the first type is stored in the nonvolatile storage unit in the first load state according to the type of the log and the load state detected by the detection unit. Then, it is determined that the log according to the second type is stored in the volatile storage unit, and in the second load state where the load is higher than the first load state, the log according to the first type and the first A determination unit that determines to store the log according to the second type in the nonvolatile storage unit;
An information processing apparatus comprising: a storage unit that stores the log in either the volatile storage unit or the non-volatile storage unit according to a determination result of the determination unit.

(付記2)前記ログの種別ごと並びに前記ソフトウェアの負荷状態ごとに、前記揮発性記憶部または前記不揮発性記憶部のいずれかにログを格納するかを示す情報を記憶した格納先情報記憶部をさらに有し、
前記判定部は、前記ソフトウェアのログが発生した場合に、前記格納先情報記憶部に記憶された情報を参照し、前記ログを前記揮発性記憶部または前記不揮発性記憶部のいずれかに格納するかを判定することを特徴とする付記1記載の情報処理装置。
(Supplementary Note 2) A storage location information storage unit storing information indicating whether to store a log in either the volatile storage unit or the nonvolatile storage unit for each type of the log and each load state of the software In addition,
When the log of the software is generated, the determination unit refers to information stored in the storage location information storage unit, and stores the log in either the volatile storage unit or the nonvolatile storage unit The information processing apparatus according to appendix 1, characterized by:

(付記3)前記検出部は、前記ソフトウェアの実行に用いる演算部の負荷、当該負荷の増加率、前記ソフトウェアによる処理待ちのメッセージのキュー数、所定期間内に発生するログ数、前記ソフトウェアの実行に用いるメモリ使用率、前記メモリ温度の何れか一つまたは複数を検出することを特徴とする付記1または2に記載の情報処理装置。 (Additional remark 3) The said detection part is the load of the calculating part used for execution of the said software, the increase rate of the said load, the queue number of the messages waiting for the process by the said software, the number of logs generated within a predetermined period, execution of the said software The information processing apparatus according to appendix 1 or 2, wherein any one or more of a memory usage rate and a memory temperature used in the processing are detected.

(付記4)コンピュータに、
ソフトウェアの負荷状態を検出し、
前記ソフトウェアのログが発生した場合に、当該ログの種別および検出された負荷状態に応じて、第一の負荷状態では、第一の種別に係るログは不揮発性記憶部に格納し、第二の種別に係るログは揮発性記憶部に格納する旨を判定し、前記第一の負荷状態よりも負荷が高い第二の負荷状態では、第一の種別に係るログおよび第二の種別に係るログを前記不揮発性記憶部に格納する旨を判定し、
判定結果に応じて、前記ログを前記揮発性記憶部または前記不揮発性記憶部のいずれかに格納する
各処理を実行させることを特徴とするログ記憶制御プログラム。
(Appendix 4)
Detects software load conditions,
When the log of the software is generated, the log according to the first type is stored in the nonvolatile storage unit in the first load state according to the type of the log and the detected load state, and the second It is determined that the log related to the type is stored in the volatile storage unit, and in the second load state where the load is higher than the first load state, the log related to the first type and the log related to the second type Is stored in the nonvolatile storage unit,
A log storage control program for executing each process of storing the log in either the volatile storage unit or the non-volatile storage unit according to a determination result.

(付記5)前記判定する処理は、前記ソフトウェアのログが発生した場合に、格納先情報記憶部に記憶された、前記ログの種別ごと並びに前記ソフトウェアの負荷状態ごとに、前記揮発性記憶部または前記不揮発性記憶部のいずれかにログを格納するかを示す情報を参照し、前記ログを前記揮発性記憶部または前記不揮発性記憶部のいずれかに格納するかを判定することを特徴とする付記4記載のログ記憶制御プログラム。 (Additional remark 5) When the said log of software generate | occur | produces, the said determination process stores the said volatile memory | storage part or each for every kind of said log memorize | stored in the storage location information memory | storage part and the said software load state, or It is determined whether to store the log in either the volatile storage unit or the non-volatile storage unit with reference to information indicating whether the log is stored in any of the non-volatile storage unit The log storage control program according to appendix 4.

(付記6)前記検出する処理は、前記ソフトウェアの実行に用いる演算部の負荷、当該負荷の増加率、前記ソフトウェアによる処理待ちのメッセージのキュー数、所定期間内に発生するログ数、前記ソフトウェアの実行に用いるメモリ使用率、前記メモリ温度の何れか一つまたは複数を検出することを特徴とする付記4または5に記載のログ記憶制御プログラム。 (Supplementary Note 6) The processing to be detected includes the load of the arithmetic unit used for executing the software, the rate of increase of the load, the number of queued messages waiting to be processed by the software, the number of logs generated within a predetermined period, 6. The log storage control program according to appendix 4 or 5, wherein one or more of a memory usage rate used for execution and the memory temperature are detected.

(付記7)コンピュータが、
ソフトウェアの負荷状態を検出し、
前記ソフトウェアのログが発生した場合に、当該ログの種別および検出された負荷状態に応じて、第一の負荷状態では、第一の種別に係るログは不揮発性記憶部に格納し、第二の種別に係るログは揮発性記憶部に格納する旨を判定し、前記第一の負荷状態よりも負荷が高い第二の負荷状態では、第一の種別に係るログおよび第二の種別に係るログを前記不揮発性記憶部に格納する旨を判定し、
判定結果に応じて、前記ログを前記揮発性記憶部または前記不揮発性記憶部のいずれかに格納する
各処理を実行することを特徴とするログ記憶制御方法。
(Appendix 7) The computer
Detects software load conditions,
When the log of the software is generated, the log according to the first type is stored in the nonvolatile storage unit in the first load state according to the type of the log and the detected load state, and the second It is determined that the log related to the type is stored in the volatile storage unit, and in the second load state where the load is higher than the first load state, the log related to the first type and the log related to the second type Is stored in the nonvolatile storage unit,
A log storage control method comprising: executing each process of storing the log in either the volatile storage unit or the non-volatile storage unit according to a determination result.

(付記8)前記判定する処理は、前記ソフトウェアのログが発生した場合に、格納先情報記憶部に記憶された、前記ログの種別ごと並びに前記ソフトウェアの負荷状態ごとに、前記揮発性記憶部または前記不揮発性記憶部のいずれかにログを格納するかを示す情報を参照し、前記ログを前記揮発性記憶部または前記不揮発性記憶部のいずれかに格納するかを判定することを特徴とする付記7記載のログ記憶制御方法。 (Supplementary Note 8) When the software log is generated, the determination process is performed for each type of log and each load state of the software stored in the storage location information storage unit. It is determined whether to store the log in either the volatile storage unit or the non-volatile storage unit with reference to information indicating whether the log is stored in any of the non-volatile storage unit The log storage control method according to appendix 7.

(付記9)前記検出する処理は、前記ソフトウェアの実行に用いる演算部の負荷、当該負荷の増加率、前記ソフトウェアによる処理待ちのメッセージのキュー数、所定期間内に発生するログ数、前記ソフトウェアの実行に用いるメモリ使用率、前記メモリ温度の何れか一つまたは複数を検出することを特徴とする付記7または8に記載のログ記憶制御方法。 (Supplementary note 9) The processing to be detected includes the load of the arithmetic unit used for executing the software, the rate of increase of the load, the number of queued messages waiting to be processed by the software, the number of logs generated within a predetermined period, 9. The log storage control method according to appendix 7 or 8, wherein any one or more of a memory usage rate used for execution and the memory temperature are detected.

10 情報処理装置
21 検出部
22 判定部
23 格納部
24 揮発性記憶部
25 不揮発性記憶部
26 ソフトウェア
30 画像配信システム
33a CPUユニット
40 プログラム格納メモリ
41 不揮発性メモリ
42 揮発性メモリ
43 格納先情報格納メモリ
61 ログ記憶制御プログラム
70 監視部
71 判定部
72 格納部
90 温度センサ
DESCRIPTION OF SYMBOLS 10 Information processing apparatus 21 Detection part 22 Judgment part 23 Storage part 24 Volatile memory part 25 Nonvolatile memory part 26 Software 30 Image distribution system 33a CPU unit 40 Program storage memory 41 Nonvolatile memory 42 Volatile memory 43 Storage location information storage memory 61 log storage control program 70 monitoring unit 71 determination unit 72 storage unit 90 temperature sensor

Claims (5)

揮発性記憶部と、
不揮発性記憶部と、
ソフトウェアの負荷状態を検出する検出部と、
前記ソフトウェアのログが発生した場合に、当該ログの種別および前記検出部によって検出された負荷状態に応じて、第一の負荷状態では、第一の種別に係るログは前記不揮発性記憶部に格納し、第二の種別に係るログは前記揮発性記憶部に格納する旨を判定し、前記第一の負荷状態よりも負荷が高い第二の負荷状態では、第一の種別に係るログおよび第二の種別に係るログを前記不揮発性記憶部に格納する旨を判定する判定部と、
前記判定部の判定結果に応じて、前記ログを前記揮発性記憶部または前記不揮発性記憶部のいずれかに格納する格納部と
を有することを特徴とする情報処理装置。
A volatile storage unit;
A non-volatile storage unit;
A detection unit for detecting the load state of the software;
When the log of the software is generated, the log according to the first type is stored in the nonvolatile storage unit in the first load state according to the type of the log and the load state detected by the detection unit. Then, it is determined that the log according to the second type is stored in the volatile storage unit, and in the second load state where the load is higher than the first load state, the log according to the first type and the first A determination unit that determines to store the log according to the second type in the nonvolatile storage unit;
An information processing apparatus comprising: a storage unit that stores the log in either the volatile storage unit or the non-volatile storage unit according to a determination result of the determination unit.
前記ログの種別ごと並びに前記ソフトウェアの負荷状態ごとに、前記揮発性記憶部または前記不揮発性記憶部のいずれかにログを格納するかを示す情報を記憶した格納先情報記憶部をさらに有し、
前記判定部は、前記ソフトウェアのログが発生した場合に、前記格納先情報記憶部に記憶された情報を参照し、前記ログを前記揮発性記憶部または前記不揮発性記憶部のいずれかに格納するかを判定することを特徴とする請求項1記載の情報処理装置。
A storage location information storage unit that stores information indicating whether to store the log in the volatile storage unit or the non-volatile storage unit for each type of log and for each load state of the software;
When the log of the software is generated, the determination unit refers to information stored in the storage location information storage unit, and stores the log in either the volatile storage unit or the nonvolatile storage unit The information processing apparatus according to claim 1, further comprising:
前記検出部は、前記ソフトウェアの実行に用いる演算部の負荷、当該負荷の増加率、前記ソフトウェアによる処理待ちのメッセージのキュー数、所定期間内に発生するログ数、前記ソフトウェアの実行に用いるメモリ使用率、前記メモリ温度の何れか一つまたは複数を検出することを特徴とする請求項1または2に記載の情報処理装置。   The detection unit includes a load on the arithmetic unit used for executing the software, an increase rate of the load, a queue number of messages waiting to be processed by the software, a number of logs generated within a predetermined period, and a memory used for executing the software The information processing apparatus according to claim 1, wherein one or more of a rate and a memory temperature are detected. コンピュータに、
ソフトウェアの負荷状態を検出し、
前記ソフトウェアのログが発生した場合に、当該ログの種別および検出された負荷状態に応じて、第一の負荷状態では、第一の種別に係るログは不揮発性記憶部に格納し、第二の種別に係るログは揮発性記憶部に格納する旨を判定し、前記第一の負荷状態よりも負荷が高い第二の負荷状態では、第一の種別に係るログおよび第二の種別に係るログを前記不揮発性記憶部に格納する旨を判定し、
判定結果に応じて、前記ログを前記揮発性記憶部または前記不揮発性記憶部のいずれかに格納する
各処理を実行させることを特徴とするログ記憶制御プログラム。
On the computer,
Detects software load conditions,
When the log of the software is generated, the log according to the first type is stored in the nonvolatile storage unit in the first load state according to the type of the log and the detected load state, and the second It is determined that the log related to the type is stored in the volatile storage unit, and in the second load state where the load is higher than the first load state, the log related to the first type and the log related to the second type Is stored in the nonvolatile storage unit,
A log storage control program for executing each process of storing the log in either the volatile storage unit or the non-volatile storage unit according to a determination result.
コンピュータが、
ソフトウェアの負荷状態を検出し、
前記ソフトウェアのログが発生した場合に、当該ログの種別および検出された負荷状態に応じて、第一の負荷状態では、第一の種別に係るログは不揮発性記憶部に格納し、第二の種別に係るログは揮発性記憶部に格納する旨を判定し、前記第一の負荷状態よりも負荷が高い第二の負荷状態では、第一の種別に係るログおよび第二の種別に係るログを前記不揮発性記憶部に格納する旨を判定し、
判定結果に応じて、前記ログを前記揮発性記憶部または前記不揮発性記憶部のいずれかに格納する
各処理を実行することを特徴とするログ記憶制御方法。
Computer
Detects software load conditions,
When the log of the software is generated, the log according to the first type is stored in the nonvolatile storage unit in the first load state according to the type of the log and the detected load state, and the second It is determined that the log related to the type is stored in the volatile storage unit, and in the second load state where the load is higher than the first load state, the log related to the first type and the log related to the second type Is stored in the nonvolatile storage unit,
A log storage control method comprising: executing each process of storing the log in either the volatile storage unit or the non-volatile storage unit according to a determination result.
JP2011118336A 2011-05-26 2011-05-26 Information processing apparatus, log storage control program, and log storage control method Expired - Fee Related JP5768503B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011118336A JP5768503B2 (en) 2011-05-26 2011-05-26 Information processing apparatus, log storage control program, and log storage control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011118336A JP5768503B2 (en) 2011-05-26 2011-05-26 Information processing apparatus, log storage control program, and log storage control method

Publications (2)

Publication Number Publication Date
JP2012247937A true JP2012247937A (en) 2012-12-13
JP5768503B2 JP5768503B2 (en) 2015-08-26

Family

ID=47468336

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011118336A Expired - Fee Related JP5768503B2 (en) 2011-05-26 2011-05-26 Information processing apparatus, log storage control program, and log storage control method

Country Status (1)

Country Link
JP (1) JP5768503B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014118874A1 (en) * 2013-01-29 2014-08-07 株式会社 日立製作所 Storage system
JP2018049831A (en) * 2011-11-09 2018-03-29 ヘレウス ドイチェラント ゲーエムベーハー ウント カンパニー カーゲー Thick film conductive composition and use thereof
JP2019153251A (en) * 2018-03-06 2019-09-12 富士ゼロックス株式会社 Information processing device and information processing program
CN111527478A (en) * 2017-10-13 2020-08-11 华为技术有限公司 System and method for detecting abnormal user experience and performance in cooperation with cloud equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004152024A (en) * 2002-10-30 2004-05-27 Fujitsu Fip Corp Log management method and computer program using the method
JP2009110156A (en) * 2007-10-29 2009-05-21 Sharp Corp Log output device and log output program
JP2011059874A (en) * 2009-09-08 2011-03-24 Ricoh Co Ltd Information processing apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004152024A (en) * 2002-10-30 2004-05-27 Fujitsu Fip Corp Log management method and computer program using the method
JP2009110156A (en) * 2007-10-29 2009-05-21 Sharp Corp Log output device and log output program
JP2011059874A (en) * 2009-09-08 2011-03-24 Ricoh Co Ltd Information processing apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018049831A (en) * 2011-11-09 2018-03-29 ヘレウス ドイチェラント ゲーエムベーハー ウント カンパニー カーゲー Thick film conductive composition and use thereof
WO2014118874A1 (en) * 2013-01-29 2014-08-07 株式会社 日立製作所 Storage system
US8886888B2 (en) 2013-01-29 2014-11-11 Hitachi, Ltd. Storage system
CN111527478A (en) * 2017-10-13 2020-08-11 华为技术有限公司 System and method for detecting abnormal user experience and performance in cooperation with cloud equipment
JP2020537215A (en) * 2017-10-13 2020-12-17 ホアウェイ・テクノロジーズ・カンパニー・リミテッド Cloud device joint real-time user use and performance anomaly detection systems and methods
US11321210B2 (en) 2017-10-13 2022-05-03 Huawei Technologies Co., Ltd. System and method for cloud-device collaborative real-time user experience and performance abnormality detection
JP7120708B2 (en) 2017-10-13 2022-08-17 ホアウェイ・テクノロジーズ・カンパニー・リミテッド System and method for cloud device collaborative real-time user usage and performance anomaly detection
JP2019153251A (en) * 2018-03-06 2019-09-12 富士ゼロックス株式会社 Information processing device and information processing program

Also Published As

Publication number Publication date
JP5768503B2 (en) 2015-08-26

Similar Documents

Publication Publication Date Title
US7617074B2 (en) Suppressing repeated events and storing diagnostic information
US9760468B2 (en) Methods and arrangements to collect data
US11157373B2 (en) Prioritized transfer of failure event log data
US10936386B2 (en) Method, device and computer program product for monitoring access request
JP2009110156A (en) Log output device and log output program
US20170149925A1 (en) Processing cache data
US20140188829A1 (en) Technologies for providing deferred error records to an error handler
US7685469B2 (en) Method and apparatus of analyzing computer system interruptions
US10275330B2 (en) Computer readable non-transitory recording medium storing pseudo failure generation program, generation method, and generation apparatus
JP2007323193A (en) System, method and program for detecting abnormality of performance load
CN114328102A (en) Equipment state monitoring method, device, equipment and computer readable storage medium
JP2010086364A (en) Information processing device, operation state monitoring device and method
JP5768503B2 (en) Information processing apparatus, log storage control program, and log storage control method
US20160357623A1 (en) Abnormality detection method and information processing apparatus
KR101017296B1 (en) Information processing apparatus, medium recording error notification program, and error notification method
US20080288828A1 (en) structures for interrupt management in a processing environment
US9568986B2 (en) System-wide power conservation using memory cache
KR100697988B1 (en) Apparatus and method for protecting system from excessive occurrence of interrupt
JP2018180982A (en) Information processing device and log recording method
KR100605031B1 (en) A method for upgrading and restoring embeded systems by using usb memory device
CN115658356A (en) Watchdog feeding method and system in Linux system
JP5832408B2 (en) Virtual computer system and control method thereof
CN113381895B (en) Network fault detection method and device
CN108415788B (en) Data processing apparatus and method for responding to non-responsive processing circuitry
JP6507858B2 (en) Network device, resource monitoring method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140918

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141007

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: 20150526

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150608

R150 Certificate of patent or registration of utility model

Ref document number: 5768503

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees