JP2009116618A - Information processing apparatus - Google Patents
Information processing apparatus Download PDFInfo
- Publication number
- JP2009116618A JP2009116618A JP2007288917A JP2007288917A JP2009116618A JP 2009116618 A JP2009116618 A JP 2009116618A JP 2007288917 A JP2007288917 A JP 2007288917A JP 2007288917 A JP2007288917 A JP 2007288917A JP 2009116618 A JP2009116618 A JP 2009116618A
- Authority
- JP
- Japan
- Prior art keywords
- monitoring
- monitoring information
- component
- information
- processing
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
本発明は、コンポーネントで構成されたアプリケーションプログラムを実行する情報処理装置に関する。 The present invention relates to an information processing apparatus that executes an application program composed of components.
従来、コンポーネントの組合せで構成されるアプリケーションプログラムの機能、性能、信頼性といったサービスレベルを制御するために、例えば特許文献1に開示されるように、コンポーネントとの双方向性通信を行なって、監視対象のコンポーネントからの監視結果の報告を受信することで、コンポーネント毎の状態値や稼動履歴を収集・蓄積するものがある。
しかしながら、従来は、監視対象のコンポーネント自体に、自コンポーネントの監視および監視結果を通信するためのメソッドを組み込んでおく必要がある。よって、コンポーネントごとに監視のためのプログラムを用意する必要があり、コンポーネントの生産性、つまり開発容易性及び移植性を損なっていた。 However, conventionally, it is necessary to incorporate a method for monitoring the component itself and communicating the monitoring result in the component to be monitored. Therefore, it is necessary to prepare a monitoring program for each component, which impairs component productivity, that is, ease of development and portability.
そこで、本発明の目的は、アプリケーションプログラムのコンポーネントの生産性を損なうことなく当該コンポーネントの監視および監視結果にもとづいた処理を行なうことが可能になる情報処理装置を提供することにある。 Accordingly, an object of the present invention is to provide an information processing apparatus capable of monitoring a component and processing based on the monitoring result without impairing the productivity of the component of the application program.
すなわち、本発明に係わる情報処理装置は、アプリケーションプログラムの構成要素であるコンポーネントを記憶する第1の記憶手段と、監視対象であるコンポーネントに対する監視結果である監視情報の出力のための定義情報を記憶する第2の記憶手段とを備え、コンポーネントによる処理実行の結果生成された情報および第2の記憶手段に記憶された定義情報にしたがって監視情報を出力し、監視情報の統計処理を行なうことを特徴とする。 That is, the information processing apparatus according to the present invention stores first storage means for storing a component that is a component of an application program, and definition information for outputting monitoring information that is a monitoring result for a component that is a monitoring target. Second monitoring means for outputting monitoring information according to information generated as a result of processing execution by the component and definition information stored in the second storage means, and performing statistical processing of the monitoring information. And
本発明によれば、アプリケーションプログラムのコンポーネントの生産性を損なうことなく当該コンポーネントの監視および監視結果にもとづいた処理を行なうことができる。 According to the present invention, it is possible to perform processing based on the monitoring of the component and the monitoring result without impairing the productivity of the component of the application program.
以下図面により本発明の実施形態について説明する。
図1は、本発明の実施形態にしたがった情報処理装置の構成例を示すブロック図である。
図1に示すように、本発明の実施形態にしたがった情報処理装置は、装置全体の制御を司る制御部1、記憶装置2、コンポーネント実行管理部3、監視対象であるコンポーネントに対する監視結果である監視情報の出力手段である監視情報出力部4、監視情報の統計手段である監視情報処理部5、表示制御部6、実行処理部7、入力装置8、出力装置9を備え、それぞれがバス10を介して相互に接続される。
入力装置8は例えばキーボードやマウスである。出力装置9はディスプレイ装置やプリンタ装置である。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram illustrating a configuration example of an information processing apparatus according to an embodiment of the present invention.
As shown in FIG. 1, the information processing apparatus according to the embodiment of the present invention is a monitoring result for a
The
記憶装置2は、ハードディスクドライブや不揮発性メモリなどの記憶媒体であり、コンポーネント実行管理部3、監視情報出力部4、監視情報処理部5、表示制御部6、実行処理部7による実行対象の制御用プログラムを記憶する。
また、記憶装置2は、プログラム記憶部21、監視情報の出力のための定義情報を記憶する定義情報記憶部22および処理ルール記憶部23を有する。
The
The
プログラム記憶部21はアプリケーション24の記憶領域である。アプリケーション24は、第1コンポーネント25、第2コンポーネント26、第3コンポーネント27といった複数のコンポーネントの集合体として構成されるアプリケーションプログラムである。ただし、各種コンポーネントは、自コンポーネントの監視情報の出力のためのクラスやメソッドは実装しない。
The
これらのコンポーネントは、例えばプログラム言語がJava(登録商標)の場合、POJO(Plain Old JAVA Object)やJAVA Beansと呼ばれる、通常のクラスとして実現される。
第1コンポーネント25の識別名であるコンポーネントIDおよびコンポーネント名は「コンポーネント1」であり、第2コンポーネント26のコンポーネントIDは「コンポーネント2」であり、第3コンポーネント27のコンポーネントIDは「コンポーネント3」である。
For example, when the programming language is Java (registered trademark), these components are realized as ordinary classes called POJO (Plain Old JAVA Object) and JAVA Beans.
The component ID and the component name which are identification names of the first component 25 are “
コンポーネント実行管理部3は、アプリケーション24に対するリクエストと当該リクエストを処理するコンポーネントの対応関係の管理、コンポーネントのIDと実体の対応の管理、コンポーネントのインスタンスの管理、コンポーネントのメソッド実行に対するアスペクトの管理、監視情報出力タイミングの管理、監視情報出力に用いる監視情報出力部4の実体の管理、および監視情報を出力する監視対象の管理を行なう。
The component
図2は、本発明の実施形態にしたがった情報処理装置の定義情報記憶部に記憶される実行管理定義情報の一例を示す図である。
記憶装置2の定義情報記憶部22には、図2に示したようなコンポーネント実行管理定義情報が記憶される。このコンポーネント実行管理定義情報には、コンポーネント動作定義、コンポーネント定義、監視情報出力部定義が記述される。
FIG. 2 is a diagram showing an example of execution management definition information stored in the definition information storage unit of the information processing apparatus according to the embodiment of the present invention.
The definition
コンポーネント動作定義は、リクエストによって渡された入力データ、コンポーネントID、メソッド名でなる。コンポーネント定義は各種コンポーネントIDおよび当該IDに対応するコンポーネントクラス名でなる。 The component operation definition includes input data, a component ID, and a method name passed by the request. The component definition includes various component IDs and component class names corresponding to the IDs.
また、監視情報出力部定義は、監視情報の出力タイミングである実行タイミング、監視情報出力部実装、監視対象のコンポーネントのコンポーネント名でなる。
図2に示した例では、監視情報出力部定義の第1の定義は、実行タイミングがリクエスト受信時で、監視情報出力部実装が“logger.BeforeRequestLogger”で、監視対象のコンポーネントのコンポーネント名は、「コンポーネント*」である。
The monitoring information output unit definition includes the execution timing that is the monitoring information output timing, the monitoring information output unit implementation, and the component name of the component to be monitored.
In the example shown in FIG. 2, the first definition of the monitoring information output unit definition is that when the request is received, the monitoring information output unit implementation is “logger.BeforeRequestLogger”, and the component name of the monitoring target component is “Component * ”.
監視情報出力部定義の第2の定義は、実行タイミングがメソッド実行時で、監視情報出力部実装が”logger.BeforeMethodInvoke”で、監視対象のコンポーネントのコンポーネント名は、「コンポーネント*」である。「*」はいわゆるワイルドカードである。 The second definition of the monitoring information output unit definition is that the execution timing is when the method is executed, the monitoring information output unit implementation is “logger.BeforeMethodInvoke”, and the component name of the monitoring target component is “component * ”. “ * ” Is a so-called wild card.
また、監視情報出力部定義の第3の定義は、実行タイミングがメソッド終了時で、監視情報出力部実装が“logger.AfterMethodInvoke”で、監視対象のコンポーネントのコンポーネント名は、「コンポーネント*」である。 The third definition of the monitoring information output unit definition is that the execution timing is when the method ends, the monitoring information output unit implementation is “logger.AfterMethodInvoke”, and the component name of the monitoring target component is “component * ”. .
監視情報出力部定義の第4の定義は、実行タイミングが例外発生時で、監視情報出力部実装が“logger.ExceptionThrown”で、監視対象のコンポーネントのコンポーネント名は、「*」である。 The fourth definition of the monitoring information output unit definition is when the execution timing is an exception, the monitoring information output unit implementation is “logger.ExceptionThrown”, and the component name of the monitoring target component is “ * ”.
また、監視情報出力部実装は、監視情報出力部4により実行するクラス名であり、このクラスを実装したプログラムは、アプリケーション24とは別に記憶装置2のプログラム記憶部21に記憶される。
The monitoring information output unit implementation is a class name executed by the monitoring
図3は、本発明の実施形態にしたがった情報処理装置の処理ルール記憶部に記憶される監視情報統計値処理ルールの一例を示す図である。
記憶装置2の処理ルール記憶部23には、図3に示したような監視情報統計値処理ルールが記憶される。この監視情報統計値処理ルールには、監視情報の一部である監視項目名、監視対象のアプリケーションやコンポーネントやメソッド、監視条件、当該監視条件を満たした場合の振る舞いである処理名が記述される。
FIG. 3 is a diagram showing an example of the monitoring information statistical value processing rule stored in the processing rule storage unit of the information processing apparatus according to the embodiment of the present invention.
The processing
図3に示した監視情報統計値処理ルールでは、監視項目である応答時間が7000msecを超過した場合に、振る舞いとしてメール送信およびダンプ出力を行なう事が記述される。 The monitoring information statistical value processing rule shown in FIG. 3 describes that mail transmission and dump output are performed as behavior when a response time as a monitoring item exceeds 7000 msec.
監視情報出力部4は、記憶装置2の定義情報記憶部22に記憶されるコンポーネント実行管理定義情報にしたがって監視情報を出力する。
出力される監視情報の例は、(a)時刻、(b)ログのレベル、(c)ユーザから投入されたリクエストを表す文字列、(d)実行するコンポーネントID、(e)実行するコンポーネントのクラス名、(f)実行するメソッド名、(g)プロセス番号やスレッド番号、(h)監視情報種別、(i)ユーザから投入されたリクエストによって渡された入力データ、(j)実行するメソッドに渡されるデータ(引数)、(k)メソッドの実行の結果得られたデータ(戻り値)、(l)メソッドの実行開始から完了までの時間、(m)発生した例外名、(n)発生した例外に格納されたエラー番号やメッセージ、(o)例外が発生した際のスタックトレース情報である。
The monitoring
Examples of monitoring information to be output include (a) time, (b) log level, (c) a character string representing a request input from the user, (d) component ID to be executed, and (e) component to be executed. Class name, (f) method name to be executed, (g) process number and thread number, (h) type of monitoring information, (i) input data passed by a request submitted by a user, (j) method to be executed Data passed (argument), (k) Data obtained as a result of method execution (return value), (l) Time from the start to completion of method execution, (m) Exception name that occurred, (n) Occurs The error number and message stored in the exception, and (o) stack trace information when the exception occurs.
監視情報処理部5は、監視情報出力部4から出力された監視情報を統計処理した上で、記憶装置2の処理ルール記憶部23に記憶された監視情報統計値処理ルールにしたがった処理を行なう。
表示制御部6は、監視情報出力部4が出力した情報、または監視情報処理部5が統計処理した結果を出力装置9により出力させる。
The monitoring
The
実行処理部7は、アプリケーション24を動作させる仮想マシンもしくはOS(オペレーティングシステム)である。仮想マシンとは、OS非依存の中間コードを解釈してプログラムを実行するプロセスを表す。仮想マシンは、プログラム言語がJava言語の場合はJava仮想マシンとなる。
The
次に、図1に示した構成の情報処理装置の動作について説明する。
図4は、本発明の実施形態にしたがった情報処理装置による正常時の処理の一例を示すフローチャートである。
まず、アプリケーションを操作するユーザによる入力装置8への入力操作によりアプリケーション24への実行命令にかかる操作がなされると、制御部1は、アプリケーション24からのリクエストである引数をコンポーネント実行管理部3に実行命令として通知する(ステップS1)。
Next, the operation of the information processing apparatus having the configuration shown in FIG. 1 will be described.
FIG. 4 is a flowchart showing an example of normal processing by the information processing apparatus according to the embodiment of the present invention.
First, when an operation related to an execution command to the
コンポーネント実行管理部3は、リクエストに応じた監視情報を出力する旨の実行命令を監視情報出力部4に通知する(ステップS2)。
監視情報出力部4は、コンポーネント実行管理部3からの通知を受けると、監視情報の統計処理を行なう旨の実行命令を監視情報処理部5に通知する(ステップS3)。監視情報出力部4は、記憶装置2の定義情報記憶部22に記憶されて図2に示したコンポーネント実行管理定義情報の「“実行タイミング”:“リクエスト受信時”」の設定に従い、監視情報出力部実装である“logger.BeforeRequestLogger”を作用させ、監視情報であるログを実行命令とともに出力する。監視情報はログファイル経由で出力されてもよいし、直接のイベント通知で出力されてもよい。
The component
When the monitoring
監視情報処理部5は、監視情報出力部4からのログおよび実行命令を受けると、監視情報の統計処理を行なう(ステップS4)。
この統計処理は、図3に示した監視情報統計値処理ルール上の“監視項目”および“監視対象”の設定に従って行われる。本実施例では、アプリケーション“myapp”の全コンポーネントの全メソッドの応答時間を計算することが統計処理として定義される。統計処理の出力結果は、ファイル、データベースまたは記憶装置2の専用領域に保存される。
When the monitoring
This statistical processing is performed according to the setting of “monitoring item” and “monitoring target” on the monitoring information statistical value processing rule shown in FIG. In the present embodiment, calculating response times of all methods of all components of the application “myapp” is defined as statistical processing. The output result of the statistical process is stored in a file, a database, or a dedicated area of the
次に、コンポーネント実行管理部3は、リクエストによって実行されるべきコンポーネントの特定を行う(ステップS5)。具体的には、コンポーネント実行管理部3は、コンポーネントの特定、つまり、実行対象のコンポーネントのIDと実装クラスの対応関係の解決を、記憶装置2の定義情報記憶部22に記憶されるコンポーネント実行管理定義情報の設定に従って行なう。
Next, the component
本実施例では、リクエストにより「“コンポーネントID”:“コンポーネント1”」が指定された場合に、図2に示したコンポーネント実行管理定義情報中の「“コンポーネントクラス”:“myapp.Component1”」の設定により、実行されるクラスは「myapp.Comnponent1」となる。
In this embodiment, when ““ component ID ”:“
コンポーネント実行管理部3は、実行対象のクラスのインスタンスを生成する(ステップS6)。コンポーネント実行管理部3は、リクエストごとに毎回インスタンスを生成してもよいし、一度作成したインスタンスを再利用してもよい。
The component
コンポーネント実行管理部3は、メソッドの実行前に、実行されるクラスやメソッドに応じた監視情報を出力する旨の実行命令を監視情報出力部4に通知する(ステップS7)。
Before executing the method, the component
監視情報出力部4は、コンポーネント実行管理部3からの通知を受けると、監視情報の統計処理を行なう旨の実行命令を監視情報処理部5に通知する(ステップS8)。監視情報出力部4は、図2に示したコンポーネント実行管理定義情報の「“実行タイミング”:“メソッド実行時”」の設定に従い、監視情報出力部実装”logger.BeforeMethodInvoke”を作用させ、ログを実行命令とともに出力する。
Upon receiving the notification from the component
監視情報処理部5は、監視情報出力部4からのログおよび実行命令を受けると、監視情報の統計処理を行なう(ステップS9)。この統計処理は、ステップS4の処理と同様に、図3に示した監視情報統計値処理ルールの設定に従って行われる。
When the monitoring
次に、コンポーネント実行管理部3は実行要求対象のメソッドを実行し(ステップS10)、戻り値がある場合には戻り値を受ける(ステップS11)。
更に、メソッドの実行完了後に、コンポーネント実行管理部3は、メソッド実行完了時の監視情報を出力する旨の実行命令を監視情報出力部4に通知する(ステップS12)。
Next, the component
Further, after the execution of the method is completed, the component
監視情報出力部4は、コンポーネント実行管理部3からの通知を受けると、監視情報の統計処理を行なう旨の実行命令を監視情報処理部5に通知する(ステップS13)。監視情報出力部4は、図2に示したコンポーネント実行管理定義情報の「“実行タイミング”:“メソッド終了時”」の設定に従い、監視情報出力部実装“logger.AfterMethodInvoke”を作用させ、ログを実行命令とともに出力する。
When the monitoring
監視情報処理部5は、監視情報出力部4からのログおよび実行命令を受けると、監視情報の統計処理を行なう(ステップS14)。この統計処理は、ステップS4,S9の処理と同様に、図3に示した監視情報統計値処理ルールの設定に従って行われる。
When the monitoring
次に、コンポーネント実行管理部3は、アプリケーション24の実行結果をアプリケーションユーザに渡すために、実行結果の出力を表示制御部6に指示する。表示制御部6はコンポーネント実行管理部3からの指示を受けると実行結果を出力装置9に出力する(ステップS15)。
Next, the component
ステップS4,S9,S14の処理である統計処理の実行タイミングは、監視情報の出力の度に非同期処理として行っても、監視情報の出力のために同期処理として行っても、監視情報の出力の度ではなく、時間指定によるバッチ処理や明示的なコマンド入力によるバッチ処理として行ってもよい。 The execution timing of the statistical process, which is the process of steps S4, S9, and S14, can be performed as an asynchronous process each time monitoring information is output, as a synchronous process for monitoring information output, or as monitoring information output. Instead of the time, it may be performed as batch processing by time specification or batch processing by explicit command input.
図5は、本発明の実施形態にしたがった情報処理装置による例外発生時の処理の一例を示すフローチャートである。
ここでは、前述した正常処理時のステップS1からS10までの処理がなされ、このステップS10の処理におけるメソッドの実行の際に例外が発生した場合(ステップS21)、コンポーネントから発生した例外がコンポーネント実行管理部3に通知される。
コンポーネント実行管理部3は、例外を受けると、例外発生時の監視情報を出力する旨の実行命令を監視情報出力部4に通知する(ステップS22)。
FIG. 5 is a flowchart showing an example of processing when an exception occurs by the information processing apparatus according to the embodiment of the present invention.
Here, the processing from steps S1 to S10 in the normal processing described above is performed, and when an exception occurs during the execution of the method in the processing of step S10 (step S21), the exception generated from the component is managed by component execution management.
When the component
監視情報出力部4は、コンポーネント実行管理部3からの通知を受けると、監視情報の統計処理を行なう旨の実行命令を監視情報処理部5に通知する(ステップS23)。監視情報出力部4は、図2に示したコンポーネント実行管理定義情報の「“実行タイミング”:“例外発生時”」の設定に従い、監視情報出力部実装“logger.ExceptionThrown”を作用させ、ログを実行命令とともに出力する。
監視情報処理部5は、監視情報出力部4からのログおよび実行命令を受けると、監視情報の統計処理を行なう(ステップS24)。
When the monitoring
When the monitoring
次に、コンポーネント実行管理部3は、アプリケーション24の実行結果をアプリケーションユーザに渡すために、実行結果の出力を表示制御部6に指示する。表示制御部6はコンポーネント実行管理部3からの指示を受けると実行結果を出力装置9に出力する(ステップS25)。
Next, the component
図6は、本発明の実施形態にしたがった情報処理装置による監視情報及び監視統計情報の出力処理の一例を示すフローチャートである。
システム管理者が、入力装置8への入力操作を行なうことで監視情報の表示要求にかかる操作がなされると、制御部1は、監視情報の表示要求を表示制御部6に通知する(ステップS31)。
FIG. 6 is a flowchart illustrating an example of monitoring information and monitoring statistical information output processing by the information processing apparatus according to the embodiment of the present invention.
When the system administrator performs an input operation to the
すると、表示制御部6は、表示要求で指定された部分の監視情報の出力命令を監視情報処理部5に通知する(ステップS32)。
すると、監視情報処理部5は、指定された監視情報を表示制御部6へ返却する(ステップS33)。
Then, the
Then, the monitoring
表示制御部6は、監視情報をシステム管理者に通知するために当該監視情報を出力装置9に出力させる(ステップS34)。
この場合、ステップS32の処理で説明した監視情報取得の実行命令には、監視情報の統計情報の取得命令が含まれていてもよい。つまり、表示制御部6は、監視情報処理部5が出力したログとともに、例えば、全リクエストのうち応答時間の閾値を越えたリクエストがどの程度あったかの情報を合わせて出力することができる。
The
In this case, the monitoring information acquisition execution command described in step S32 may include a monitoring information statistical information acquisition command. That is, the
図7は、本発明の実施形態にしたがった情報処理装置により出力した監視情報の一例を示す図である。
図7に示した例は、前述したステップS3,S8,S13の処理により監視情報出力部4が出力した監視情報である。ここでは、監視情報は、(a)時刻、(b)ログのレベル、(c)ユーザから投入されたリクエストを表す文字列、(d)実行するコンポーネントID、(e)実行するコンポーネントのクラス名、(f)実行するメソッド名、(g)プロセス番号やスレッド番号、(h)監視情報種別、および(n)発生した例外に格納されたエラー番号やメッセージである。
FIG. 7 is a diagram showing an example of the monitoring information output by the information processing apparatus according to the embodiment of the present invention.
The example shown in FIG. 7 is the monitoring information output by the monitoring
図8は、本発明の実施形態にしたがった情報処理装置によるダンプ処理情報の出力処理の一例を示すフローチャートである。
まず、前述したステップS4の処理と同様に、監視情報処理部5が監視情報の統計処理を行なうと(ステップS41)、監視情報処理部5は、統計処理結果と記憶装置2の処理ルール記憶部23に記憶された監視情報統計値処理ルールとを比較し、統計処理結果が監視情報統計値処理ルール上の監視項目や監視対象に関わる監視条件を満たした場合には、監視情報統計値処理ルール上の振る舞いのルールを起動させる(ステップS42)。
図3に示した監視情報統計値処理ルールでは、アプリケーション“myapp”の全コンポーネントの全メソッドが監視対象になっている。
FIG. 8 is a flowchart illustrating an example of output processing of dump processing information by the information processing apparatus according to the embodiment of the present invention.
First, similarly to the process of step S4 described above, when the monitoring
In the monitoring information statistical value processing rule shown in FIG. 3, all methods of all components of the application “myapp” are monitored.
監視情報処理部5は、監視項目である応答時間が監視条件で定められた7,000msecを超過した場合に、振る舞いとして、これを示すメール情報をシステム管理者に渡すために、振る舞いの実行結果を示すメール情報の出力を表示制御部6に指示する。表示制御部6はコンポーネント実行管理部3からの指示を受けると実行結果であるメール情報を出力装置9に出力する。
そして、監視情報処理部5は、Java VMに対するダンプ出力を実行処理部7に指示する(ステップS44)。
When the response time as the monitoring item exceeds 7,000 msec determined by the monitoring condition, the monitoring
Then, the monitoring
実行処理部7は、さらなる振る舞いとして、ダンプ出力を生成し、この生成結果の表示を表示制御部6に指示する。表示制御部6は実行処理部7からの指示を受けると生成結果を出力装置9に出力する(ステップS45)。つまり、実行処理部7は、コンポーネントの実行時の処理性能を示す情報を出力する性能情報出力手段として機能する。このダンプ出力情報はJava言語における仮想マシンのダンプ出力例である。
As further behavior, the
図9は、本発明の実施形態にしたがった情報処理装置により出力したダンプ出力情報の第1の例を示す図である。
この例はスレッドごとのスタックトレース情報である。ここでは、スレッド番号264のスレッドにおいてHashMapオブジェクトのaddEntryメソッドが実行中であったことがわかる。
FIG. 9 is a diagram showing a first example of dump output information output by the information processing apparatus according to the embodiment of the present invention.
This example is stack trace information for each thread. Here, it can be seen that the addEntry method of the HashMap object was being executed in the thread with the
図10は、本発明の実施形態にしたがった情報処理装置により出力したダンプ出力情報の第2の例を示す図である。
この例は使用メモリのクラスごとの統計値である。ここでは、Stringクラスのインスタンスが、全体の38.5%のメモリを消費している状態であったことがわかる。
FIG. 10 is a diagram showing a second example of dump output information output by the information processing apparatus according to the embodiment of the present invention.
This example shows statistics for each class of memory used. Here, it can be seen that the String class instance consumed 38.5% of the total memory.
図11は、本発明の実施形態にしたがった情報処理装置により出力したダンプ出力情報の第3の例を示す図である。
この例は、CPU利用率メソッドごとの統計値である。ここでは、myapp.Component1クラスのselectUserメソッドが、全体の50%のCPU時間を利用している状態であったことがわかる。
FIG. 11 is a diagram showing a third example of dump output information output by the information processing apparatus according to the embodiment of the present invention.
This example is a statistical value for each CPU usage rate method. Here, it can be seen that the selectUser method of the myapp.Component1 class was using 50% of the CPU time.
以上のように、本発明の実施形態にしたがった情報処理装置では、アプリケーションを構成するコンポーネントを監視するために、監視情報出力部4がコンポーネント実行管理定義情報にしたがってコンポーネントの監視情報を出力し、監視情報処理部5が監視情報の統計処理を行ない、統計処理の結果が監視情報統計値処理ルール上の監視条件に合致した場合に、当該ルール上で定められた振る舞いがなされる。
As described above, in the information processing apparatus according to the embodiment of the present invention, the monitoring
よって、コンポーネント自体に、当該コンポーネントに関する監視情報出力や統計処理のための設定情報を記述しなくとも、当該コンポーネントに関する監視情報の出力、統計処理および所定の振る舞いを行なうことができる。 Therefore, output of monitoring information related to the component, statistical processing, and predetermined behavior can be performed without describing monitoring information output related to the component or setting information for statistical processing in the component itself.
また、コンポーネント実行管理定義情報や監視情報統計値処理ルールをコンポーネントとは別に記述して、図2や図3に示したように「*」を用いることにより、複数のコンポーネントに関する監視情報出力や監視条件の設定を纏めて記述できる。よって、コンポーネントの種類が多数にわたる場合でも、これらのコンポーネントに関する監視情報出力のための設定にかかる労力が大幅に低減される。 Also, component execution management definition information and monitoring information statistical value processing rules are described separately from the components, and by using “ * ” as shown in FIGS. 2 and 3, monitoring information output and monitoring for a plurality of components are performed. Can describe the setting of conditions collectively. Therefore, even when there are a large number of types of components, the labor required for setting for monitoring information output regarding these components is greatly reduced.
次に、本発明の実施形態の変形例について説明する。
図12は、本発明の実施形態にしたがった情報処理装置の処理ルール記憶部に記憶される監視情報統計値処理ルールの変形例を示す図である。
この変形例では、記憶装置2の処理ルール記憶部23に記憶される監視情報統計値処理ルールは、図3に示した構成と比較して、監視条件である閾値及び振る舞いに対して教師データを与えることにより、設定を動的に変更する機能が追加される。
具体的には、図12に示すように、図3に示した監視項目、監視対象、監視条件に加え、監視条件変更設定がさらに記述される。
Next, a modification of the embodiment of the present invention will be described.
FIG. 12 is a diagram showing a modified example of the monitoring information statistical value processing rule stored in the processing rule storage unit of the information processing apparatus according to the embodiment of the present invention.
In this modified example, the monitoring information statistical value processing rule stored in the processing
Specifically, as shown in FIG. 12, in addition to the monitoring items, monitoring targets, and monitoring conditions shown in FIG. 3, monitoring condition change settings are further described.
この監視条件変更設定は、参照属性、教師データ、当該教師データの閾値、条件、振る舞いおよび優先条件でなる。図12に示した監視条件変更設定では、“優先条件”である“監視条件”を満たしている状態で、教師データである総CPU利用率が80%以上であった場合に、応答時間の閾値に至る前にシステムとしては高負荷で不安定な状況に陥っているとして、監視条件の閾値の値を1000減らす事を意味する。 This monitoring condition change setting includes reference attributes, teacher data, threshold values, conditions, behaviors, and priority conditions of the teacher data. In the monitoring condition change setting shown in FIG. 12, the response time threshold is set when the total CPU usage rate, which is teacher data, is 80% or more in a state where the “monitoring condition” that is the “priority condition” is satisfied. It means that the threshold value of the monitoring condition is reduced by 1000, assuming that the system is in an unstable state with a high load before reaching the point.
図13は、本発明の実施形態にしたがった情報処理装置による監視条件変更処理の一例を示すフローチャートである。
まず、監視情報統計値処理ルール上の“監視項目”である“応答時間”が“監視条件”の閾値である“7000”を超過しており、前述したステップS45の処理であるダンプ出力の処理がなされた後で、監視情報処理部5は、統計処理結果と記憶装置2の処理ルール記憶部23に記憶された監視情報統計値処理ルールを読み出し、統計処理結果をもとに、このルール上の“監視条件変更設定”の“教師データ”である“総CPU利用率”を検出する。
FIG. 13 is a flowchart illustrating an example of monitoring condition change processing by the information processing apparatus according to the embodiment of the present invention.
First, “response time” that is “monitoring item” on the monitoring information statistical value processing rule exceeds “7000” that is the threshold value of “monitoring condition”, and dump output processing that is the processing of step S45 described above. After that, the monitoring
そして、監視情報処理部5は、この総CPU利用率が当該“監視条件変更設定”中の“閾値”および“条件”を満たす、つまり80%以上である場合に、“監視条件”の各項目のうち“監視条件変更設定”の“参照属性”の“閾値”、つまり“7000”ついて、“監視条件変更設定”の“振る舞い”である“−1000”を施して“6000”に変更する(ステップS51)。つまり、監視情報処理部5は監視情報統計値処理ルール上の監視条件を変更する条件変更手段として機能する。
Then, when the total CPU utilization rate satisfies the “threshold value” and “condition” in the “monitoring condition change setting”, that is, 80% or more, each item of the “monitoring condition” Among them, the “reference attribute” “threshold” of “monitoring condition change setting”, that is, “7000”, is changed to “6000” by applying “−1000” that is “behavior” of “monitoring condition change setting” ( Step S51). That is, the monitoring
また、監視情報処理部5は、閾値の変更を示すメール情報をシステム管理者に渡すために、“監視条件変更設定”の振る舞いの実行結果のメール情報の出力を表示制御部6に指示する。表示制御部6はコンポーネント実行管理部3からの指示を受けると実行結果を示すメール情報を出力装置9に出力する。
Further, the monitoring
以後は、監視情報処理部5は、統計処理結果と記憶装置2の処理ルール記憶部23に記憶された監視情報統計値処理ルールを再度読み出し、当該ルール上の“監視条件変更設定”の“教師データ”である“総CPU利用率”が当該“監視条件変更設定”中の“閾値”および“条件”を満たしていなければ、処理を終了する。
Thereafter, the monitoring
一方、監視情報処理部5は、監視情報統計値処理ルール上の“監視条件変更設定”の“教師データ”である“総CPU利用率”が当該“監視条件変更設定”中の“閾値”および“条件”をなお満たしていれば、“監視条件”の“閾値”の“6000”について、“監視条件変更設定”の“振る舞い”である“−1000”を再度施す。
On the other hand, the monitoring
以後、監視情報処理部5は、監視情報統計値処理ルール上の“監視条件変更設定”の“教師データ”である“総CPU利用率”が当該“監視条件変更設定”中の“閾値”および“条件”を満たさなくなるまで、“教師データ”である“総CPU利用率”が“監視条件変更設定”中の“閾値”および“条件”を満たしているか否かの判断を繰り返す。
このような処理を行なうことにより、監視情報統計値処理ルール上の“監視条件”を適正な条件とすることができるようになる。
Thereafter, the monitoring
By performing such processing, the “monitoring condition” on the monitoring information statistical value processing rule can be set to an appropriate condition.
また、監視情報統計値処理ルール上の“監視条件変更設定”の“優先条件”は、入力装置8への入力操作により“監視条件変更設定”に書き換えられていても良い。
このような設定となっていると、監視情報処理部5は、“監視条件”の“閾値”および“条件”が満たされているか否かに関わらず、“監視条件変更設定”の“教師データで”である“総CPU利用率”を計算し、この総CPU利用率が当該“監視条件変更設定”上の“閾値”および“条件”を満たしているか否かを判別する。
Further, “priority condition” of “monitoring condition change setting” on the monitoring information statistical value processing rule may be rewritten to “monitoring condition change setting” by an input operation to the
With this setting, the monitoring
これにより、監視情報処理部5は、例えば“監視条件”の“応答時間”が7000msec未満であっても“監視条件変更設定”の“教師データ”である“総CPU利用率”が80%以上である場合に、“監視条件”の“閾値”について、“監視条件変更設定”の“振る舞い”である“−1000”を施す。
As a result, the monitoring
また、監視情報処理部5は、監視情報統計値処理ルール上の“監視条件変更設定”の“教師データ”が“閾値”および“条件”を満たしている場合に監視条件を自動的に変更したが、これに限らず、手動操作による監視条件の変更を促すメッセージの出力を表示制御部6に指示することで、当該メッセージを出力装置9に出力させてもよい。
In addition, the monitoring
なお、この発明は前記実施形態そのままに限定されるものではなく実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、前記実施形態に開示されている複数の構成要素の適宜な組み合わせにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を省略してもよい。更に、異なる実施形態に亘る構成要素を適宜組み合せてもよい。 The present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be omitted from all the components shown in the embodiment. Furthermore, you may combine suitably the component covering different embodiment.
1…制御部、2…記憶装置、3…コンポーネント実行管理部、4…監視情報出力部、5…監視情報処理部、6…表示制御部、7…実行処理部、8…入力装置、9…出力装置、10…バス、21…プログラム記憶部、22…定義情報記憶部、23…処理ルール記憶部、24…アプリケーション、25…第1コンポーネント、26…第2コンポーネント、27…第3コンポーネント。
DESCRIPTION OF
Claims (5)
監視対象である前記コンポーネントに対する監視結果である監視情報の出力のための定義情報を記憶する第2の記憶手段と、
前記第1の記憶手段に記憶されたコンポーネントによる処理実行の結果生成された情報および前記第2の記憶手段に記憶された定義情報にしたがって、前記監視情報を出力する出力手段と、
前記監視情報の統計処理を行なう統計手段と
を備えたことを特徴とする情報処理装置。 First storage means for storing components that are components of the application program;
Second storage means for storing definition information for outputting monitoring information that is a monitoring result of the component that is a monitoring target;
Output means for outputting the monitoring information in accordance with information generated as a result of processing execution by the component stored in the first storage means and definition information stored in the second storage means;
An information processing apparatus comprising: statistical means for performing statistical processing of the monitoring information.
ことを特徴とする請求項1に記載の情報処理装置。 The performance information output means for outputting information indicating the processing performance at the time of execution of the component when the statistical processing result by the statistical means satisfies a predetermined condition. Information processing device.
前記統計手段による第2の統計結果が予め定められた第2の条件を満たす場合に、前記第1の条件を変更する条件変更手段とをさらに備えた
ことを特徴とする請求項1に記載の情報処理装置。 A performance information output means for outputting information indicating processing performance at the time of execution of the component when the first statistical result by the statistical means satisfies a first condition defined in advance;
The condition changing means for changing the first condition when the second statistical result by the statistical means satisfies a predetermined second condition, further comprising: a condition changing means for changing the first condition. Information processing device.
前記統計手段による第1の統計結果が予め定められた第1の条件を満たし、かつ、前記統計手段による第2の統計結果が予め定められた第2の条件を満たす場合に、前記第1の条件を変更する条件変更手段とをさらに備えた
ことを特徴とする請求項1に記載の情報処理装置。 A performance information output means for outputting information indicating the processing performance at the time of execution of the component when the statistical result by the statistical means satisfies a predetermined first condition;
When the first statistical result by the statistical means satisfies a predetermined first condition, and the second statistical result by the statistical means satisfies a predetermined second condition, the first statistical result The information processing apparatus according to claim 1, further comprising condition changing means for changing a condition.
ことを特徴とする請求項1に記載の情報処理装置。 The information processing apparatus according to claim 1, wherein the definition information stored in the second storage unit includes information on an output timing of the monitoring information and a type of a component to be monitored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007288917A JP4764405B2 (en) | 2007-11-06 | 2007-11-06 | Information processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007288917A JP4764405B2 (en) | 2007-11-06 | 2007-11-06 | Information processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009116618A true JP2009116618A (en) | 2009-05-28 |
JP4764405B2 JP4764405B2 (en) | 2011-09-07 |
Family
ID=40783701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007288917A Active JP4764405B2 (en) | 2007-11-06 | 2007-11-06 | Information processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4764405B2 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011108584A1 (en) * | 2010-03-04 | 2011-09-09 | 日本電気株式会社 | Application modification section search device and application modification section search method |
JP2011198262A (en) * | 2010-03-23 | 2011-10-06 | Hitachi Ltd | System control method in computer system, and control system |
JP2012133751A (en) * | 2010-12-23 | 2012-07-12 | Korea Electronics Telecommun | Method and device for monitoring data variable of software component |
JP2017168076A (en) * | 2016-03-17 | 2017-09-21 | タタ コンサルタンシー サービシズ リミテッドTATA Consultancy Services Limited | Methods and systems for anomaly detection |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09244998A (en) * | 1996-03-14 | 1997-09-19 | Nec Corp | On-line program performance information sampling device and sampling method |
JP2003141076A (en) * | 2001-10-30 | 2003-05-16 | Oki Electric Ind Co Ltd | Web application processing performance measurement method and web application server |
JP2006252189A (en) * | 2005-03-10 | 2006-09-21 | Hitachi Ltd | Application operation management system and method |
WO2007074680A1 (en) * | 2005-12-26 | 2007-07-05 | Ibm Japan, Ltd. | System, method, and program for logging a transaction process and system building method |
-
2007
- 2007-11-06 JP JP2007288917A patent/JP4764405B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09244998A (en) * | 1996-03-14 | 1997-09-19 | Nec Corp | On-line program performance information sampling device and sampling method |
JP2003141076A (en) * | 2001-10-30 | 2003-05-16 | Oki Electric Ind Co Ltd | Web application processing performance measurement method and web application server |
JP2006252189A (en) * | 2005-03-10 | 2006-09-21 | Hitachi Ltd | Application operation management system and method |
WO2007074680A1 (en) * | 2005-12-26 | 2007-07-05 | Ibm Japan, Ltd. | System, method, and program for logging a transaction process and system building method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011108584A1 (en) * | 2010-03-04 | 2011-09-09 | 日本電気株式会社 | Application modification section search device and application modification section search method |
US9003370B2 (en) | 2010-03-04 | 2015-04-07 | Nec Corporation | Application modification portion searching device and application modification portion searching method |
JP2011198262A (en) * | 2010-03-23 | 2011-10-06 | Hitachi Ltd | System control method in computer system, and control system |
US8554906B2 (en) | 2010-03-23 | 2013-10-08 | Takayuki Nagai | System management method in computer system and management system |
JP2012133751A (en) * | 2010-12-23 | 2012-07-12 | Korea Electronics Telecommun | Method and device for monitoring data variable of software component |
JP2017168076A (en) * | 2016-03-17 | 2017-09-21 | タタ コンサルタンシー サービシズ リミテッドTATA Consultancy Services Limited | Methods and systems for anomaly detection |
Also Published As
Publication number | Publication date |
---|---|
JP4764405B2 (en) | 2011-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7441152B2 (en) | Failure recovery apparatus, failure recovery method, manager, and program | |
JP4872262B2 (en) | Management support system, management support method, and management support program | |
US20080244589A1 (en) | Task manager | |
JP2007004337A (en) | Autonomous operation management system, autonomous operation management method, and program | |
JP4764405B2 (en) | Information processing device | |
JP2008009854A (en) | Log control device, image forming device, log control method and program | |
CN110717739A (en) | Workflow issuing method, device, equipment and computer readable storage medium | |
US10649808B2 (en) | Outcome-based job rescheduling in software configuration automation | |
US10430232B2 (en) | Controllable workflow in software configuration automation | |
JP6879625B2 (en) | Programmable controller, management device and control system | |
JP2011008460A (en) | Dump output control apparatus, dump output control program, and dump output control method | |
CN110895490A (en) | Data batch processing system, method, equipment and storage medium | |
JP5380895B2 (en) | Management program, management method and management apparatus | |
WO2021172435A1 (en) | Failure handling device and system, rule list generation method, and non-transitory computer-readable medium | |
WO2017203556A1 (en) | Management computer and optimal value calculation method of system parameter | |
JP4883492B2 (en) | Virtual machine management system, computer, and program | |
JP2008040751A (en) | Information processor supporting setting of operation attribute of application program, information processor method, and program | |
JP5325827B2 (en) | Job schedule system, job schedule management method and program. | |
JP2021069009A (en) | Information processing system, information processing system control method, information processing device, and program | |
JP5443686B2 (en) | Information processing apparatus, information processing method, and program | |
JP2021056794A (en) | Control program, control device and control method | |
CN111045524B (en) | Control method and device | |
JP2009098730A (en) | Information processor and information processing program | |
US20230385073A1 (en) | Data processing system and data processing method | |
JP2009251672A (en) | Design support system, design support method, and design support program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20091112 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100601 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100802 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110222 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110425 |
|
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: 20110517 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110610 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140617 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4764405 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |