JP5673391B2 - Information processing apparatus, log processing method, and program - Google Patents

Information processing apparatus, log processing method, and program Download PDF

Info

Publication number
JP5673391B2
JP5673391B2 JP2011143549A JP2011143549A JP5673391B2 JP 5673391 B2 JP5673391 B2 JP 5673391B2 JP 2011143549 A JP2011143549 A JP 2011143549A JP 2011143549 A JP2011143549 A JP 2011143549A JP 5673391 B2 JP5673391 B2 JP 5673391B2
Authority
JP
Japan
Prior art keywords
processing
information
server
time
log
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2011143549A
Other languages
Japanese (ja)
Other versions
JP2013011995A (en
Inventor
景介 森永
景介 森永
則雄 遠藤
則雄 遠藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2011143549A priority Critical patent/JP5673391B2/en
Publication of JP2013011995A publication Critical patent/JP2013011995A/en
Application granted granted Critical
Publication of JP5673391B2 publication Critical patent/JP5673391B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Description

本発明は、端末から受信した処理要求に基づき処理サーバから処理結果を取得する情報処理装置、ログ処理方法、及びプログラムに関する。   The present invention relates to an information processing apparatus, a log processing method, and a program that acquire a processing result from a processing server based on a processing request received from a terminal.

Webシステムでは、Webサーバがクライアント端末から処理要求を受信し、その処理要求に基づきアプリケーション(AP)サーバへ処理を依頼する。APサーバは、依頼された処理のアプリケーションプログラムを実行し、処理結果をWebサーバに返信する。Webサーバは、その処理結果に基づいて画面描画情報を生成し、画面描画情報をクライアント端末へ返信する。クライアント端末は、受信した画面描画情報に基づいてWebページを描画し、表示装置に表示する。   In the Web system, a Web server receives a processing request from a client terminal, and requests an application (AP) server for processing based on the processing request. The AP server executes the requested application program and returns the processing result to the Web server. The Web server generates screen drawing information based on the processing result, and returns the screen drawing information to the client terminal. The client terminal draws a Web page based on the received screen drawing information and displays it on the display device.

このように、WebサーバとAPサーバが連携して1つのトランザクションが実行される。以下の説明では、アプリケーションプログラムを単にアプリケーションと称する場合がある。   In this way, one transaction is executed in cooperation between the Web server and the AP server. In the following description, an application program may be simply referred to as an application.

このようなWEBシステムにおいて、トランザクション実行中にWebサーバとAPサーバで各々発生する複数のログを、ログ管理サーバが実際の処理順序で記録する技術が知られている。この技術では、各サーバが、トランザクション識別情報(ID)と順序情報をログメッセージに付加してログ管理サーバへ送信する。そして、ログ管理サーバは、受信したログメッセージのトランザクションID及び順序情報に基づいて、複数のログメッセージを、実際の処理順序で記録する。   In such a WEB system, a technique is known in which a log management server records a plurality of logs respectively generated in a Web server and an AP server during transaction execution in an actual processing order. In this technique, each server adds transaction identification information (ID) and order information to a log message and transmits the log message to a log management server. Then, the log management server records a plurality of log messages in the actual processing order based on the transaction ID and order information of the received log messages.

また、クライアント装置の処理記録をサーバに収集する技術も知られている。この技術では、クライアント装置からのリクエストに対するWebサーバからのレスポンスに、クライアント装置の処理の記録を行うためのスクリプトコードが挿入される。クライアント装置は、そのスクリプトコードを解釈して実行することで、レスポンスを受け取った際、ウェブブラウザの描画が終了した際、次のウェブページへのリクエストを送信した際の処理記録を生成する。生成された処理記録は、Webサーバを介して記録収集サーバへ送信され、Webサーバの処理記録とともに記録される。   In addition, a technique for collecting processing records of a client device in a server is also known. In this technique, script code for recording processing of a client device is inserted into a response from a Web server in response to a request from the client device. By interpreting and executing the script code, the client device generates a processing record when a response is received, when rendering of the web browser is completed, and when a request for the next web page is transmitted. The generated process record is transmitted to the record collection server via the web server, and is recorded together with the process record of the web server.

クライアント装置が生成する処理記録には、リクエストからレスポンスまでの通信時間、Webページの描画に要した描画時間、閲覧・操作時間等も含めることができる。   The processing record generated by the client device can include communication time from request to response, drawing time required for drawing a Web page, browsing / operation time, and the like.

特開2009−277119号公報JP 2009-277119 A 特開2010−128877号公報JP 2010-128877 A 特開2009−104267号公報JP 2009-104267 A

上述した従来のWebシステムには、以下のような問題がある。
WebサーバとAPサーバで発生する複数のログを、ログ管理サーバが実際の処理順序で記録することで、例えば、何らかの障害が発生した場合の原因究明に役立てることができる。また、クライアント端末が処理要求を送信してから画面の描画が終了するまでの全処理時間と、画面の描画に要した描画時間等を計測すれば、それをクライアント端末のログとしてログ管理サーバに収集することができる。さらに、Webサーバのログ、APサーバのログ、クライアント端末のログを関連付けて管理することで、例えば、障害の原因がクライアント端末又はWebサーバ及びAPサーバのいずれであるかの判断に役立てることもできる。
The conventional Web system described above has the following problems.
When the log management server records a plurality of logs generated in the Web server and the AP server in the actual processing order, for example, it can be used for investigating the cause when some failure occurs. In addition, if the total processing time from when the client terminal sends a processing request until the drawing of the screen is completed and the drawing time required for drawing the screen are measured, it is stored in the log management server as a log of the client terminal. Can be collected. Further, by managing the log of the Web server, the log of the AP server, and the log of the client terminal in association with each other, for example, it can be useful for determining whether the cause of the failure is the client terminal, the Web server, or the AP server. .

一方、Webシステムを用いた業務を行うユーザから、業務の処理時間が長いという苦情を受けた場合、問題の原因究明を行う必要があり、可能であれば改善を行うことが望ましい。この場合、まず、Webシステムにより実行された多数のトランザクションのうち、どのトランザクションに対する苦情であるかを推定するところから、原因究明が開始される。   On the other hand, if a user who performs a business using a Web system receives a complaint that the processing time of the business is long, it is necessary to investigate the cause of the problem, and it is desirable to improve if possible. In this case, first, the cause investigation is started from estimating which transaction is a complaint among many transactions executed by the Web system.

トランザクションは、クライアント端末が処理要求を送信してから画面の描画が終了するまでのクライアント端末、Webサーバ、及びAPサーバの一連の処理として定義される。あるトランザクションに属するログとしては、クライアント端末が生成したログと、Webサーバ及びAPサーバが生成したログとが、それぞれ複数存在し、トランザクションIDに対応する複数のログをつき合わせることで、原因究明が行われる。   A transaction is defined as a series of processes of a client terminal, a Web server, and an AP server from when a client terminal transmits a processing request until screen rendering ends. As logs belonging to a certain transaction, there are a plurality of logs generated by the client terminal and logs generated by the Web server and the AP server, and the cause investigation can be performed by combining a plurality of logs corresponding to the transaction ID. Done.

処理時間が長いという苦情は、上述した全処理時間が長いということであるため、Webシステムの開発者等の担当者は、まず、膨大なログの中から、「全処理時間が一定時間以上」という条件に該当する1つ以上のログを検索する。次に、該当するログのトランザクションIDをキーとして、描画時間を含むログを検索する。そして、1つのトランザクションIDに対応する全処理時間と描画時間を比較しながら、経験に基づいて問題の物理的所在がクライアント側にあるかサーバ側(Webサーバ、APサーバ等)にあるかを判別する。   Since the complaint that the processing time is long is that the total processing time described above is long, the person in charge such as the developer of the Web system firstly, from the huge log, “the total processing time is a certain time or more” One or more logs that satisfy the condition are searched. Next, the log including the drawing time is searched using the transaction ID of the corresponding log as a key. Based on experience, it is determined whether the physical location of the problem is on the client side or the server side (Web server, AP server, etc.) while comparing the total processing time corresponding to one transaction ID and the drawing time. To do.

例えば、全処理時間に対する描画時間の割合が大きければ、クライアント端末に問題がある可能性が高く、全処理時間に対する描画時間の割合が小さければ、Webサーバ又はAPサーバに問題がある可能性が高い。担当者は、サーバ側に問題があると判断すれば、そのトランザクションIDに対応するサーバ側の他のログを詳細に分析する。   For example, if the ratio of the drawing time to the total processing time is large, the client terminal is likely to have a problem. If the ratio of the drawing time to the total processing time is small, the Web server or the AP server is likely to have a problem. . If it is determined that there is a problem on the server side, the person in charge analyzes the other logs on the server side corresponding to the transaction ID in detail.

しかしながら、全処理時間には、APサーバにおけるアプリケーション実行時間、クライアント端末における描画時間以外に、Webサーバにおける画面描画情報の生成時間、WebサーバとAPサーバの通信時間等も含まれる。   However, the total processing time includes not only the application execution time in the AP server and the drawing time in the client terminal, but also the generation time of screen drawing information in the Web server, the communication time between the Web server and the AP server, and the like.

発明者らは、画面描画情報の生成時間は、担当者が改善できる範囲外の処理時間であるため、全処理時間に対する描画時間の割合から、通信障害や、Webサーバ、APサーバ、クライアント端末のソフトウェア又はハードウェア障害を判定する上で、画面描画情報の生成時間を除いて評価することが有効であることに気がついた。   Since the generation time of the screen drawing information is a processing time outside the range that can be improved by the person in charge, the ratio of the drawing time to the total processing time indicates that communication failure, Web server, AP server, client terminal It has been found that it is effective to evaluate the software or hardware failure except for the generation time of the screen drawing information.

つまり、画面描画情報の生成時間は、できれば全処理時間から生成時間を除いた残りの時間を描画時間と比較して、問題の物理的所在を特定することが望ましい。よって、担当者は、サーバ側の他のログを検索して画面描画情報の生成時間を取得する必要が生じる。   In other words, it is desirable that the generation time of the screen drawing information is preferably determined by comparing the remaining time obtained by excluding the generation time from the total processing time with the drawing time. Therefore, the person in charge needs to search another log on the server side and acquire the generation time of the screen drawing information.

しかし、実際のWebシステムには多数のクライアント端末が含まれており、各クライアント端末からの処理要求に基づき、1日に多数のトランザクションが実行されるため、蓄積されるログの量は膨大になる。このため、問題の物理的所在を正確に特定するために、サーバ側のログを詳細に分析するのには多大な時間を要する。   However, since an actual Web system includes a large number of client terminals, and a large number of transactions are executed per day based on processing requests from the client terminals, the amount of accumulated logs becomes enormous. . For this reason, it takes a lot of time to analyze the server-side log in detail in order to accurately identify the physical location of the problem.

本発明の課題は、トランザクションの全処理時間が長い場合に、より短時間で問題の物理的所在がクライアント側にあるかサーバ側にあるかを正確に判別できるようなログ情報を提供することである。   An object of the present invention is to provide log information that can accurately determine whether the physical location of a problem is on the client side or the server side in a shorter time when the total processing time of the transaction is long. is there.

情報処理装置は、通信手段、処理結果取得手段、生成手段、計測手段、及びログ処理手段を含む。
通信手段は、端末、処理サーバ、及びログサーバと通信する。処理結果取得手段は、端末から受信した、処理の実行を要求する第1の処理要求に処理識別情報を付与し、通信手段を介して、処理識別情報と、第1の処理要求に基づいた処理を処理サーバへ要求する第2の処理要求を、処理サーバへ送信する。そして、処理識別情報と、第2の処理要求に対する処理結果を処理サーバから受信する。
The information processing apparatus includes a communication unit, a processing result acquisition unit, a generation unit, a measurement unit, and a log processing unit.
The communication means communicates with the terminal, the processing server, and the log server. The processing result acquisition unit assigns processing identification information to the first processing request received from the terminal and requests execution of the processing, and processes based on the processing identification information and the first processing request via the communication unit. Is sent to the processing server. Then, the processing identification information and the processing result for the second processing request are received from the processing server.

生成手段は、処理結果から画面描画情報を生成し、計測手段は、画面描画情報の生成に要した生成時間を計測する。
ログ処理手段は、通信手段を介して、処理識別情報、画面描画情報、及び生成時間を端末へ送信する。そして、処理識別情報、生成時間、端末において画面描画情報に基づく画面の描画に要した描画時間、及び第1の処理要求を送信してから画面の描画が終了するまでの全処理時間を、端末から受信する。ログ処理手段は、処理識別情報に関する情報、生成時間、描画時間、及び全処理時間を含むログ情報を、そのログ情報を管理するログサーバへ送信する。
The generating unit generates screen drawing information from the processing result, and the measuring unit measures a generation time required for generating the screen drawing information.
The log processing unit transmits the processing identification information, the screen drawing information, and the generation time to the terminal via the communication unit. Then, the processing identification information, the generation time, the drawing time required for drawing the screen based on the screen drawing information in the terminal, and the total processing time from when the first processing request is transmitted until the drawing of the screen is finished are Receive from. The log processing means transmits log information including information relating to the processing identification information, generation time, drawing time, and total processing time to a log server that manages the log information.

上述した情報処理装置によれば、ログサーバには、全処理時間と描画時間だけでなく、処理結果から画面描画情報を生成するのに要した生成時間をも含むログ情報が格納される。この場合、担当者は、「全処理時間が一定時間以上」という条件に該当するログを検索すれば、全処理時間、描画時間、及び生成時間が一緒になったログ情報を見ることができる。そして、全処理時間から生成時間を除く残りの時間を描画時間と比較すれば、画面描画情報の生成及び画面の描画以外の処理に要した処理時間と、端末における描画時間とを比較することができる。これにより、1つのログ情報に基づき、より短時間で問題の物理的所在がクライアント側にあるかサーバ側にあるかを正確に判別できる。   According to the information processing apparatus described above, the log server stores log information including not only the total processing time and drawing time but also the generation time required to generate screen drawing information from the processing result. In this case, if the person in charge searches for a log corresponding to the condition that “the total processing time is equal to or longer than a certain time”, the person in charge can see the log information in which the total processing time, the drawing time, and the generation time are combined. Then, if the remaining time excluding the generation time from the total processing time is compared with the drawing time, the processing time required for processing other than the generation of the screen drawing information and the drawing of the screen can be compared with the drawing time in the terminal. it can. Thereby, it is possible to accurately determine whether the physical location of the problem is on the client side or the server side in a shorter time based on one log information.

情報処理装置の機能的構成図である。It is a functional block diagram of information processing apparatus. ログ処理のフローチャートである。It is a flowchart of a log process. Webシステムの構成図である。1 is a configuration diagram of a Web system. Webサーバの機能的構成図である。It is a functional block diagram of a Web server. Webシステムにおける複数の処理時間を示す図である。It is a figure which shows the some processing time in a Web system. ログ情報を示す図(その1)である。It is a figure (the 1) which shows log information. ログ情報を示す図(その2)である。It is a figure (the 2) which shows log information. 時刻情報を示す図である。It is a figure which shows time information. Webシステムにおけるトランザクション実行手順を示す図(その1)である。FIG. 10 is a diagram (part 1) illustrating a transaction execution procedure in the Web system. Webシステムにおけるトランザクション実行手順を示す図(その2)である。FIG. 10 is a diagram (part 2) illustrating a transaction execution procedure in the Web system. 情報処理装置の構成図である。It is a block diagram of information processing apparatus.

以下、図面を参照しながら、実施形態を詳細に説明する。
図1は、実施形態の情報処理装置の機能的構成例を示している。図1の情報処理装置101は、計測部111、処理結果取得部112、生成部113、ログ処理部114、及び通信部115を含む。通信部115は、通信ネットワークを介して端末、処理サーバ、及びログサーバと通信する。
Hereinafter, embodiments will be described in detail with reference to the drawings.
FIG. 1 illustrates a functional configuration example of the information processing apparatus according to the embodiment. The information processing apparatus 101 in FIG. 1 includes a measurement unit 111, a processing result acquisition unit 112, a generation unit 113, a log processing unit 114, and a communication unit 115. The communication unit 115 communicates with a terminal, a processing server, and a log server via a communication network.

図2は、図1の情報処理装置101によるログ処理のフローチャートである。通信部115は、まず、端末から第1の処理要求を受信する(ステップ201)。処理結果取得部112は、第1の処理要求に処理識別情報を付与し、通信部115を介して、処理識別情報と、第1の処理要求に基づく第2の処理要求を処理サーバへ送信する(ステップ202)。そして、通信部115は、処理識別情報と、第2の処理要求に対する処理結果を処理サーバから受信する(ステップ203)。   FIG. 2 is a flowchart of log processing by the information processing apparatus 101 of FIG. First, the communication unit 115 receives a first processing request from the terminal (step 201). The processing result acquisition unit 112 adds processing identification information to the first processing request, and transmits the processing identification information and the second processing request based on the first processing request to the processing server via the communication unit 115. (Step 202). Then, the communication unit 115 receives the processing identification information and the processing result for the second processing request from the processing server (step 203).

生成部113は、処理結果から画面描画情報を生成し(ステップ204)、計測部111は、画面描画情報の生成に要した生成時間を計測する(ステップ205)。
ログ処理部114は、通信部115を介して、処理識別情報、画面描画情報、及び生成時間を端末へ送信する(ステップ206)。通信部115は、処理識別情報、生成時間、端末において画面描画情報に基づく画面の描画に要した描画時間、及び第1の処理要求を送信してから画面の描画が終了するまでの全処理時間を、端末から受信する(ステップ207)。ログ処理部114は、通信部115を介して、処理識別情報に関する情報、生成時間、描画時間、及び全処理時間を含むログ情報をログサーバへ送信する(ステップ208)。
The generation unit 113 generates screen drawing information from the processing result (step 204), and the measurement unit 111 measures the generation time required for generating the screen drawing information (step 205).
The log processing unit 114 transmits processing identification information, screen drawing information, and generation time to the terminal via the communication unit 115 (step 206). The communication unit 115 performs processing identification information, generation time, drawing time required for drawing the screen based on the screen drawing information in the terminal, and total processing time from when the first processing request is transmitted until drawing of the screen is completed. Is received from the terminal (step 207). The log processing unit 114 transmits log information including information regarding the processing identification information, generation time, drawing time, and total processing time to the log server via the communication unit 115 (step 208).

このような情報処理装置によれば、ログサーバには、全処理時間と描画時間だけでなく、処理結果から画面描画情報を生成するのに要した生成時間をも含むログ情報が格納される。この場合、担当者は、「全処理時間が一定時間以上」という条件に該当するログを検索すれば、全処理時間、描画時間、及び生成時間が一緒になったログ情報を見ることができる。   According to such an information processing apparatus, the log server stores log information including not only the total processing time and drawing time but also the generation time required to generate the screen drawing information from the processing result. In this case, if the person in charge searches for a log corresponding to the condition that “the total processing time is equal to or longer than a certain time”, the person in charge can see the log information in which the total processing time, the drawing time, and the generation time are combined.

そして、全処理時間から生成時間を除く残りの時間を描画時間と比較すれば、画面描画情報の生成及び画面の描画以外の処理に要した処理時間と、端末における描画時間とを比較することができる。これにより、1つのログ情報に基づき、より短時間で問題の物理的所在がクライアント側にあるかサーバ側にあるかを正確に判別できる。   Then, if the remaining time excluding the generation time from the total processing time is compared with the drawing time, the processing time required for processing other than the generation of the screen drawing information and the drawing of the screen can be compared with the drawing time in the terminal. it can. Thereby, it is possible to accurately determine whether the physical location of the problem is on the client side or the server side in a shorter time based on one log information.

図3は、図1の情報処理装置をWebサーバとして使用したWebシステムの構成例を示している。図3のWebシステムは、クライアント端末301、Webサーバ302、APサーバ303、データベースサーバ(DB)サーバ304、及びログサーバ305を含む。クライアント端末301及びサーバ302〜305は、インターネット又はイントラネット等の通信ネットワークを介して互いに通信することができる。   FIG. 3 shows a configuration example of a Web system using the information processing apparatus of FIG. 1 as a Web server. 3 includes a client terminal 301, a Web server 302, an AP server 303, a database server (DB) server 304, and a log server 305. The client terminal 301 and the servers 302 to 305 can communicate with each other via a communication network such as the Internet or an intranet.

図3のWebシステムは、1つのクライアント端末301を含んでいるが、実施形態のWebシステムに含まれるクライアント端末の数は2つ以上の場合もある。APサーバ303がDBサーバ304への問い合わせを行わない場合は、DBサーバ304を省略することができる。   The Web system of FIG. 3 includes one client terminal 301, but the number of client terminals included in the Web system of the embodiment may be two or more. When the AP server 303 does not make an inquiry to the DB server 304, the DB server 304 can be omitted.

図4は、図3のWebサーバ302の機能的構成例を示している。図3のWebサーバ302は、計測部411、生成部412、格納部413、制御部414、及び通信部415を含む。   FIG. 4 shows a functional configuration example of the Web server 302 of FIG. 3 includes a measurement unit 411, a generation unit 412, a storage unit 413, a control unit 414, and a communication unit 415.

計測部411、生成部412、及び通信部415は、図1の計測部111、生成部113、及び通信部115にそれぞれ対応し、制御部414は、図1の処理結果取得部112及びログ処理部114に対応する。格納部413には、トランザクションの進行に応じて、セッション情報421、時刻情報422、処理結果423、画面描画情報424、及びログ情報425を含む各種情報が格納される。   The measurement unit 411, the generation unit 412, and the communication unit 415 correspond to the measurement unit 111, the generation unit 113, and the communication unit 115 in FIG. 1, respectively. The control unit 414 includes the processing result acquisition unit 112 and the log process in FIG. Corresponds to the section 114. The storage unit 413 stores various types of information including session information 421, time information 422, processing results 423, screen drawing information 424, and log information 425 as the transaction progresses.

セッション情報421には、クライアント端末301のセッションを識別する識別情報として、トランザクションIDが記録され、時刻情報422には、Webサーバ302において所定の処理が行われた時刻が記録される。処理結果423は、APサーバ303から受信した処理結果に対応し、画面描画情報424は、クライアント端末301において処理結果423を示す画面を描画するために用いられる情報である。ログ情報425は、クライアント端末301から受信したログ情報に対応する。   In the session information 421, a transaction ID is recorded as identification information for identifying the session of the client terminal 301, and in the time information 422, a time when a predetermined process is performed in the Web server 302 is recorded. The processing result 423 corresponds to the processing result received from the AP server 303, and the screen drawing information 424 is information used to draw a screen showing the processing result 423 in the client terminal 301. Log information 425 corresponds to log information received from the client terminal 301.

画面描画情報424は、例えば、JavaServer Pages(「Java」は登録商標)のように、処理結果423を示すデータと、そのデータを含む画面を描画するためのプログラムとを含み、例えば、HyperText Markup Language(HTML)ファイルに記述される。   The screen rendering information 424 includes, for example, data indicating the processing result 423 and a program for rendering a screen including the data, such as JavaServer Pages (“Java” is a registered trademark). For example, HyperText Markup Language Described in an (HTML) file.

図5は、図3のWebシステムにおける複数の処理時間を示している。クライアント端末301は、Webサーバ302へリクエストを送信する(手順501)。これにより、トランザクションが開始される。Webサーバ302は、受信したリクエストに基づくリクエストをAPサーバ303へ送信する(手順502)。   FIG. 5 shows a plurality of processing times in the Web system of FIG. The client terminal 301 transmits a request to the Web server 302 (procedure 501). This initiates a transaction. The Web server 302 transmits a request based on the received request to the AP server 303 (procedure 502).

APサーバ303は、受信したリクエストに基づきアプリケーションを実行することで、業務処理を行う。このとき、アプリケーション中にDB問い合わせが含まれていれば、DBリクエストをDBサーバ304へ送信する(手順503)。DBサーバ304は、受信したDBリクエストに基づきDB処理を実行し、DB処理の処理結果をAPサーバ303へ返信する(手順504)。   The AP server 303 performs business processing by executing an application based on the received request. At this time, if a DB inquiry is included in the application, a DB request is transmitted to the DB server 304 (step 503). The DB server 304 executes DB processing based on the received DB request, and returns the processing result of the DB processing to the AP server 303 (procedure 504).

APサーバ303は、受信した処理結果を用いて業務処理を続行し、業務処理の処理結果をWebサーバ302へ返信する(手順505)。Webサーバ302は、受信した処理結果を用いて画面描画情報424を生成し、画面描画情報424をクライアント端末301へ送信する(手順506)。クライアント端末301は、受信した画面描画情報424を用いて画面を描画し、表示装置に表示する。表示装置に画面が表示された時点で、トランザクションが終了する。ただし、Webサーバ302では、クライアント端末301へ処理結果を返信した時点で、トランザクションが終了したと判定し、トランザクションの終了をログサーバ305へ通知する場合もある。   The AP server 303 continues the business process using the received processing result, and returns the business process result to the Web server 302 (step 505). The Web server 302 generates screen drawing information 424 using the received processing result, and transmits the screen drawing information 424 to the client terminal 301 (procedure 506). The client terminal 301 draws a screen using the received screen drawing information 424 and displays it on the display device. The transaction ends when the screen is displayed on the display device. However, the Web server 302 may determine that the transaction has ended when it returns the processing result to the client terminal 301 and may notify the log server 305 of the end of the transaction.

このようなトランザクションにおいて、全処理時間T1、業務実行時間T2、APサーバ処理時間T3、生成時間T4、及び描画時間T5は、以下のように定義される。
全処理時間T1:クライアント端末301がWebサーバ302へリクエストを送信してから、クライアント端末301上で画面の描画が終了するまでの時間である。
In such a transaction, the total processing time T1, the business execution time T2, the AP server processing time T3, the generation time T4, and the drawing time T5 are defined as follows.
Total processing time T1: This is the time from when the client terminal 301 sends a request to the Web server 302 until the end of screen drawing on the client terminal 301.

業務実行時間T2:Webサーバ302がAPサーバ303へリクエストを送信してから、APサーバ303から処理結果を受信するまでの時間である。
APサーバ処理時間T3:APサーバ303がWebサーバ302からリクエストを受信してから、Webサーバ302へ処理結果を送信するまでの時間である。
Business execution time T2: This is the time from when the Web server 302 sends a request to the AP server 303 until the processing result is received from the AP server 303.
AP server processing time T3: This is the time from when the AP server 303 receives a request from the Web server 302 until the processing result is transmitted to the Web server 302.

生成時間T4:Webサーバ302が画面描画情報424の生成を開始してから、生成を終了するまでの時間である。
描画時間T5:クライアント端末301がWebサーバ302から画面描画情報424を受信してから、画面の描画を終了するまでの時間である。
Generation time T4: This is the time from when the Web server 302 starts generating the screen drawing information 424 until the generation ends.
Drawing time T5: This is the time from when the client terminal 301 receives the screen drawing information 424 from the Web server 302 until the drawing of the screen ends.

画面の描画が終了すると、クライアント端末301は、全処理時間T1、生成時間T4、及び描画時間T5を含むログ情報425をWebサーバ302へ送信し、Webサーバ302は、そのログ情報425をログサーバ305へ送信する。こうして、ログ情報425はログサーバ305に記録される。   When the drawing of the screen is completed, the client terminal 301 transmits log information 425 including the total processing time T1, the generation time T4, and the drawing time T5 to the Web server 302, and the Web server 302 transmits the log information 425 to the log server. To 305. Thus, the log information 425 is recorded in the log server 305.

図6A及び図6Bは、ログサーバ305に記録される複数のログ情報の例を示している。各ログ情報は、トランザクションID、サーバ種別、サーバのインターネットプロトコル(IP)アドレス、画面ID、ログ名、ユーザID、所属コード、日付、時刻、クライアントのIPアドレス、数値1〜3、及びアクション名を含む。   6A and 6B show examples of a plurality of log information recorded in the log server 305. FIG. Each log information includes a transaction ID, server type, server Internet protocol (IP) address, screen ID, log name, user ID, affiliation code, date, time, client IP address, numeric values 1 to 3, and action name. Including.

サーバ種別は、ログサーバ305へログ情報を送信したサーバの種別を表し、“W3”及び“AP”は、それぞれWebサーバ及びAPサーバを表している。画面IDは、APサーバ303が実行するアプリケーションに対応する識別情報であり、ログ名は、ログ情報の名称である。ユーザIDは、クライアント端末301のユーザに対応し、所属コードは、そのユーザが属するグループを表す。日付及び時刻は、ログサーバ305にログ情報が記録された日時を表し、数値1〜3は、ログ名に対応する処理時間等を表す。アクション名は、トランザクションの内容を示す文字列である。   The server type represents the type of the server that transmitted the log information to the log server 305, and “W3” and “AP” represent the Web server and the AP server, respectively. The screen ID is identification information corresponding to the application executed by the AP server 303, and the log name is the name of the log information. The user ID corresponds to the user of the client terminal 301, and the affiliation code represents a group to which the user belongs. The date and time represent the date and time when the log information is recorded in the log server 305, and the numerical values 1 to 3 represent the processing time corresponding to the log name. The action name is a character string indicating the contents of the transaction.

ログ名には、APサーバ処理時間、業務実行時間、及び画面処理時間が含まれる。ログ名が“APサーバ処理時間”の場合、数値1にAPサーバ処理時間T3が記述され、ログ名が“業務実行時間”の場合、数値1に業務実行時間T2が記述される。ログ名が“画面処理時間”の場合、数値1、数値2、及び数値3に、全処理時間T1、生成時間T4、及び描画時間T5がそれぞれ記述される。ログ名が“APサーバ処理時間”又は“業務実行時間”の場合、数値2及び3は使用されないため、“0”のままである。   The log name includes AP server processing time, business execution time, and screen processing time. When the log name is “AP server processing time”, the AP server processing time T3 is described as a numerical value 1, and when the log name is “business execution time”, the business execution time T2 is described as a numerical value 1. When the log name is “screen processing time”, the total processing time T1, the generation time T4, and the drawing time T5 are described in the numerical value 1, the numerical value 2, and the numerical value 3, respectively. When the log name is “AP server processing time” or “business execution time”, the numerical values 2 and 3 are not used and thus remain “0”.

ログ情報601、603、604、606、607、609、及び610のサーバ種別は“W3”であり、Webサーバ302から受信したログ情報であることが分かる。一方、ログ情報602、605、及び608のサーバ種別は“AP”であり、APサーバ303から受信したログ情報であることが分かる。   The server types of the log information 601, 603, 604, 606, 607, 609, and 610 are “W3”, which indicates that the log information is received from the Web server 302. On the other hand, the server type of the log information 602, 605, and 608 is “AP”, which indicates that the log information is received from the AP server 303.

ログ情報602のログ名は“APサーバ処理時間”であり、その数値1にはAPサーバ処理時間T3として“16”が記述されている。この例では、時間の単位はミリ秒である。ログ情報603のログ名は“業務実行時間”であり、その数値1には業務実行時間T2として“31”が記述されている。   The log name of the log information 602 is “AP server processing time”, and the numerical value 1 describes “16” as the AP server processing time T3. In this example, the unit of time is milliseconds. The log name of the log information 603 is “business execution time”, and the numerical value 1 describes “31” as the business execution time T2.

また、ログ情報610のログ名は“画面処理時間”であり、その数値1には全処理時間T1として“2203”が記述されており、数値2及び数値3には、生成時間T4及び描画時間T5として“16”及び“1422”がそれぞれ記述されている。まず、全処理時間T1から生成時間T4を差し引くと、残りの時間は、“2187”である。この“2187”と描画時間“1422”とを比較することで、物理的な問題の所在が、クライアント端末にあるのか、WebサーバまたはAPサーバにあるのかを担当者は経験的に判断することができる。ここで、例えば、描画時間が、全処理時間から生成時間を除いた時間に対して、大きくないと判断した場合は、担当者は、APサーバ303、Webサーバ302で生成されたログを詳細に解析し、物理的な問題の所在を特定する。   Further, the log name of the log information 610 is “screen processing time”, “2203” is described as the total processing time T1 in the numerical value 1, and the generation time T4 and the drawing time are described in the numerical values 2 and 3. “16” and “1422” are respectively described as T5. First, when the generation time T4 is subtracted from the total processing time T1, the remaining time is “2187”. By comparing this “2187” with the rendering time “1422”, the person in charge can empirically determine whether the physical problem is in the client terminal, the Web server or the AP server. it can. Here, for example, when it is determined that the drawing time is not large with respect to the time obtained by excluding the generation time from the total processing time, the person in charge details the logs generated by the AP server 303 and the Web server 302. Analyze and identify the location of physical problems.

なお、全処理時間T1から生成時間T4及び描画時間T5を差し引くと、残りの時間は“765”になるが、この残りの時間には、業務実行時間T2だけでなく、Webシステムにおける他の様々な処理時間が含まれている。   If the generation time T4 and the drawing time T5 are subtracted from the total processing time T1, the remaining time becomes “765”. The remaining time includes not only the job execution time T2 but also various other things in the Web system. Processing time is included.

図6A及び図6Bのログ情報によれば、担当者は、全処理時間T1が長い原因として次のような可能性を認識することができる。
例えば、APサーバ処理時間T3が長ければ、APサーバ303におけるアプリケーション実行やDBサーバ304への問い合わせがボトルネックになっている可能性がある。また、APサーバ処理時間T3が短いにもかかわらず、業務実行時間T2が長ければ、Webサーバ302とAPサーバ303の間の通信劣化やAPサーバ303の多重度不足が原因として考えられる。一方、生成時間T4が長ければ、画面に表示されるデータ量が多すぎるか、Webサーバ302のリソースが枯渇している可能性がある。また、描画時間T5が長ければ、クライアント端末301の性能がボトルネックになっている可能性がある。
According to the log information of FIGS. 6A and 6B, the person in charge can recognize the following possibility as a cause of the long total processing time T1.
For example, if the AP server processing time T3 is long, there is a possibility that the application execution in the AP server 303 or the inquiry to the DB server 304 is a bottleneck. Further, if the business execution time T2 is long even though the AP server processing time T3 is short, it may be caused by communication deterioration between the Web server 302 and the AP server 303 or insufficient multiplicity of the AP server 303. On the other hand, if the generation time T4 is long, there is a possibility that the amount of data displayed on the screen is too large or the resources of the Web server 302 are exhausted. Further, if the drawing time T5 is long, the performance of the client terminal 301 may be a bottleneck.

なお、ログ情報610のトランザクションIDの末尾は“000033A1−F”となっており、ログ情報602及び603のトランザクションIDの末尾である“00003301−F”とは一部異なっている。しかし、これらのトランザクションIDは、異なるトランザクションを示すわけではなく、同じトランザクションを示している。この場合、異なる文字列である“A1”及び“01”以外の部分が同一であるため、同じトランザクションに属するログ情報であることが認識できる。   The end of the transaction ID of the log information 610 is “000033A1-F”, which is partly different from “0000301-F”, which is the end of the transaction ID of the log information 602 and 603. However, these transaction IDs do not indicate different transactions, but indicate the same transaction. In this case, since portions other than “A1” and “01” which are different character strings are the same, it can be recognized that the log information belongs to the same transaction.

実施形態のログ情報は、図6A及び図6Bに示したすべての項目を含む必要はなく、Webシステムの構成や条件に応じて一部の項目を省略することも可能である。例えば、画面IDやアクション名が不要な場合は、これらの項目を省略してもよい。   The log information according to the embodiment does not need to include all items illustrated in FIGS. 6A and 6B, and some items may be omitted depending on the configuration and conditions of the Web system. For example, when the screen ID and the action name are unnecessary, these items may be omitted.

図7は、図4の時刻情報422の例を示している。図7の時刻情報422には、業務処理開始時刻701及び生成開始時刻702が含まれる。業務処理開始時刻701は、Webサーバ302がAPサーバ303へリクエストを送信することで、業務処理を開始した時刻であり、生成開始時刻702は、画面描画情報424の生成を開始した時刻である。業務処理開始時刻701及び生成開始時刻702は、計測部411により記録され、それぞれ業務実行時間T2及び生成時間T4の計測に用いられる。   FIG. 7 shows an example of the time information 422 of FIG. The time information 422 in FIG. 7 includes a business process start time 701 and a generation start time 702. The business process start time 701 is a time when the Web server 302 starts a business process by transmitting a request to the AP server 303, and the generation start time 702 is a time when the generation of the screen drawing information 424 is started. The business process start time 701 and the generation start time 702 are recorded by the measuring unit 411 and are used for measuring the business execution time T2 and the generation time T4, respectively.

図8及び図9は、図3のWebシステムにおけるトランザクション実行手順を示している。以下の説明では、特に断らない限り、Webサーバ302の動作は、制御部414又は通信部415により行われる。   8 and 9 show a transaction execution procedure in the Web system of FIG. In the following description, unless otherwise specified, the operation of the Web server 302 is performed by the control unit 414 or the communication unit 415.

まず、クライアント端末301のユーザは、表示された画面上でボタン押下、画面遷移等の画面操作を行う(図8のステップ801)。このとき、クライアント端末301は、タイマから現在時刻を取得し、アクション開始時刻として画面の隠し項目に設定する。隠し項目は、その画面の情報として設定されるが、非表示として扱われる。クライアント端末301は、さらに実行するトランザクションのアクション名を隠し項目に設定し、Webサーバ302へリクエストを送信する(ステップ802)。このリクエストには、アクション開始時刻、アクション名、ユーザID、及び所属コードが含まれる。   First, the user of the client terminal 301 performs screen operations such as button pressing and screen transition on the displayed screen (step 801 in FIG. 8). At this time, the client terminal 301 acquires the current time from the timer and sets it as a hidden item on the screen as the action start time. The hidden item is set as information on the screen, but is treated as non-display. The client terminal 301 further sets the action name of the transaction to be executed as a hidden item, and transmits a request to the Web server 302 (step 802). This request includes the action start time, action name, user ID, and affiliation code.

Webサーバ302は、リクエストを受信すると、ログ情報をログサーバ305へ送信するか否かを判定する(ステップ803)。例えば、受信したリクエストに既にトランザクションIDが含まれていれば、ログ情報を送信すると判定される。初回のリクエストにはトランザクションIDが含まれていないため、ログ情報は送信されない。   When receiving the request, the Web server 302 determines whether to transmit log information to the log server 305 (step 803). For example, if the received request already includes a transaction ID, it is determined that log information is to be transmitted. Since the transaction ID is not included in the first request, log information is not transmitted.

次に、Webサーバ302は、リクエストの内容を解析し、APサーバ303に対するリクエストのための前処理を行う。計測部411は、タイマから現在時刻を取得し、業務処理開始時刻701として時刻情報422に記録する。   Next, the Web server 302 analyzes the content of the request and performs preprocessing for the request to the AP server 303. The measuring unit 411 acquires the current time from the timer and records it in the time information 422 as the business process start time 701.

Webサーバ302は、受信したリクエストにトランザクションIDを付与し、そのトランザクションIDをセッション情報421に記録する。そして、トランザクションID、サーバ種別、ユーザID、及び所属コードを含むトランザクション開始通知をログサーバ305へ送信する(ステップ804)。ログサーバ305は、トランザクション開始通知を受信すると、トランザクションID、サーバ種別、ユーザID、及び所属コードを含むログヘッダ情報を生成する(ステップ805)。このとき、サーバ種別として“W3”が記録される。   The Web server 302 gives a transaction ID to the received request and records the transaction ID in the session information 421. Then, a transaction start notification including the transaction ID, server type, user ID, and affiliation code is transmitted to the log server 305 (step 804). When the log server 305 receives the transaction start notification, the log server 305 generates log header information including a transaction ID, a server type, a user ID, and an affiliation code (step 805). At this time, “W3” is recorded as the server type.

次に、Webサーバ302は、トランザクションIDと実行すべきアプリケーションの識別情報を含むリクエストをAPサーバ303へ送信する(ステップ806)。
APサーバ303は、リクエストを受信すると、タイマから現在時刻を取得し、APサーバ処理開始時刻として記録する(ステップ807)。そして、トランザクションID及びサーバ種別を含む処理開始通知をログサーバ305へ送信する(ステップ808)。ログサーバ305は、処理開始通知を受信すると、ログヘッダ情報のサーバ種別を“W3”から“AP”に更新する(ステップ809)。
Next, the Web server 302 transmits a request including the transaction ID and identification information of the application to be executed to the AP server 303 (step 806).
Upon receiving the request, the AP server 303 acquires the current time from the timer and records it as the AP server processing start time (step 807). Then, a process start notification including the transaction ID and server type is transmitted to the log server 305 (step 808). Upon receiving the processing start notification, the log server 305 updates the server type of the log header information from “W3” to “AP” (step 809).

次に、APサーバ303は、受信したリクエストに基づきアプリケーションを実行することで、業務処理を行い、業務処理の処理結果を生成する(ステップ810)。そして、タイマから現在時刻を取得し、それをAPサーバ処理終了時刻として用いて、APサーバ処理終了時刻からAPサーバ処理開始時刻を減算することでAPサーバ処理時間T3を求める。   Next, the AP server 303 performs business processing by executing an application based on the received request, and generates a processing result of the business processing (step 810). Then, the current time is acquired from the timer, and is used as the AP server process end time, and the AP server process start time is subtracted from the AP server process end time to obtain the AP server process time T3.

次に、APサーバ303は、トランザクションID、サーバ種別、ログ名、及びAPサーバ処理時間T3を含むログ情報をログサーバ305へ送信する(ステップ811)。ログサーバ305は、ログ情報を受信すると、それをログヘッダ情報とともにAPサーバ303のログ情報として記録する(ステップ812)。このとき、ログ名としては“APサーバ処理時間”が用いられ、例えば、図6A及び図6Bのログ情報602のようなログ情報が記録される。   Next, the AP server 303 transmits log information including the transaction ID, server type, log name, and AP server processing time T3 to the log server 305 (step 811). Upon receiving the log information, the log server 305 records it as log information of the AP server 303 together with log header information (step 812). At this time, “AP server processing time” is used as the log name, and for example, log information such as log information 602 in FIGS. 6A and 6B is recorded.

次に、APサーバ303は、トランザクションIDを含む処理終了通知をログサーバ305へ送信する(ステップ813)。ログサーバ305は、処理終了通知を受信すると、ログヘッダ情報のサーバ種別を“AP”から“W3”に更新する(ステップ814)。   Next, the AP server 303 transmits a process end notification including the transaction ID to the log server 305 (step 813). Upon receiving the processing end notification, the log server 305 updates the server type of the log header information from “AP” to “W3” (step 814).

次に、APサーバ303は、トランザクションIDと業務処理の処理結果をWebサーバ302へ返信する(ステップ815)。Webサーバ302は、受信した業務処理の処理結果を、処理結果423として格納部413に格納し、処理結果423に含まれるデータを解析する(ステップ816)。計測部411は、タイマから現在時刻を取得し、それを業務処理終了時刻として用いて、業務処理終了時刻から業務処理開始時刻701を減算することで業務実行時間T2を求める。   Next, the AP server 303 returns the transaction ID and the processing result of the business process to the Web server 302 (step 815). The Web server 302 stores the received business process result in the storage unit 413 as the process result 423, and analyzes the data included in the process result 423 (step 816). The measuring unit 411 obtains the business execution time T2 by acquiring the current time from the timer, using it as the business process end time, and subtracting the business process start time 701 from the business process end time.

次に、Webサーバ302は、トランザクションID、サーバ種別、ログ名、及び業務実行時間T2を含むログ情報をログサーバ305へ送信する(ステップ817)。ログサーバ305は、ログ情報を受信すると、それをログヘッダ情報とともにWebサーバ302のログ情報として記録する(ステップ818)。このとき、ログ名としては“業務実行時間”が用いられ、例えば、図6A及び図6Bのログ情報603のようなログ情報が記録される。   Next, the Web server 302 transmits log information including the transaction ID, server type, log name, and business execution time T2 to the log server 305 (step 817). When receiving the log information, the log server 305 records it as log information of the Web server 302 together with the log header information (step 818). At this time, “business execution time” is used as the log name, and for example, log information such as the log information 603 in FIGS. 6A and 6B is recorded.

次に、Webサーバ302は、トランザクションIDを含むトランザクション終了通知をログサーバ305へ送信する(ステップ819)。ログサーバ305は、トランザクション終了通知を受信すると、ログヘッダ情報を削除する(ステップ820)。   Next, the Web server 302 transmits a transaction end notification including the transaction ID to the log server 305 (step 819). When the log server 305 receives the transaction end notification, the log server 305 deletes the log header information (step 820).

次に、Webサーバ302は、APサーバ303に対するリクエストの後処理を行う。生成部412は、業務処理の処理結果を用いて画面描画情報424を生成する処理を開始する(図9のステップ901)。このとき、計測部411は、タイマから現在時刻を取得し、生成開始時刻702として時刻情報422に記録する。   Next, the Web server 302 performs post-processing of a request to the AP server 303. The generation unit 412 starts a process of generating the screen drawing information 424 using the processing result of the business process (Step 901 in FIG. 9). At this time, the measurement unit 411 acquires the current time from the timer and records it in the time information 422 as the generation start time 702.

画面描画情報424の生成処理において、生成部412は、クライアント端末301からのリクエストに含まれていたアクション開始時刻及びアクション名を画面の隠し項目に設定する。さらに、セッション情報421のトランザクションIDを画面の隠し項目に設定し、セッション情報421からトランザクションIDを削除する。そして、業務処理の処理結果に含まれるデータを画面描画情報424に設定する。   In the generation process of the screen drawing information 424, the generation unit 412 sets the action start time and the action name included in the request from the client terminal 301 as hidden items on the screen. Further, the transaction ID of the session information 421 is set as a hidden item on the screen, and the transaction ID is deleted from the session information 421. Then, data included in the processing result of the business process is set in the screen drawing information 424.

次に、計測部411は、タイマから現在時刻を取得し、それを生成終了時刻として用いて、生成終了時刻から生成開始時刻702を減算することで生成時間T4を求める。生成部412は、生成時間T5を画面の隠し項目に設定し、Webサーバ302は、生成した画面描画情報424をクライアント端末301へ返信する(ステップ902)。この画面描画情報424には、アクション開始時刻、アクション名、トランザクションID、及び生成時間T4が含まれる。   Next, the measurement unit 411 obtains the generation time T4 by acquiring the current time from the timer, using it as the generation end time, and subtracting the generation start time 702 from the generation end time. The generation unit 412 sets the generation time T5 as a hidden item on the screen, and the Web server 302 returns the generated screen drawing information 424 to the client terminal 301 (step 902). The screen drawing information 424 includes an action start time, an action name, a transaction ID, and a generation time T4.

クライアント端末301は、画面描画情報424を受信すると(ステップ903)、画面描画情報424を用いて画面の描画を開始する(ステップ904)。このとき、タイマから現在時刻を取得し、描画開始時刻として記録する。   Upon receiving the screen drawing information 424 (step 903), the client terminal 301 starts drawing the screen using the screen drawing information 424 (step 904). At this time, the current time is acquired from the timer and recorded as the drawing start time.

次に、画面の描画を終了すると、タイマから現在時刻を取得し、それを描画終了時刻として用いて、描画終了時刻から描画開始時刻を減算することで描画時間T5を求める。そして、描画時間T5を画面の隠し項目に設定する。   Next, when the drawing on the screen is finished, the current time is acquired from the timer, and the drawing time T5 is obtained by subtracting the drawing start time from the drawing end time using the current time as the drawing end time. Then, the drawing time T5 is set as a hidden item on the screen.

次に、描画終了時刻からアクション開始時刻を減算することで全処理時間T1を求め、全処理時間T1と画面描画情報424に含まれていた生成時間T4とを画面の隠し項目に設定する。   Next, the total processing time T1 is obtained by subtracting the action start time from the drawing end time, and the total processing time T1 and the generation time T4 included in the screen drawing information 424 are set as hidden items on the screen.

その後、表示装置に表示された画面上で、ユーザが次の画面操作を行うと、クライアント端末301は、ステップ801及び802と同様の処理を行う(ステップ905及び906)。ただし、ステップ906でWebサーバ302へ送信されるリクエストには、ステップ903で受信した画面描画情報424のアクション名及びトランザクションID、全処理時間T1、生成時間T4、及び描画時間T5が含まれる。このリクエストには、さらに新たなアクションのアクション開始時刻、アクション名、ユーザID、及び所属コードも含まれる。   Thereafter, when the user performs the next screen operation on the screen displayed on the display device, the client terminal 301 performs the same processing as steps 801 and 802 (steps 905 and 906). However, the request transmitted to the Web server 302 in step 906 includes the action name and transaction ID of the screen drawing information 424 received in step 903, the total processing time T1, the generation time T4, and the drawing time T5. This request further includes the action start time, action name, user ID, and affiliation code of a new action.

Webサーバ302は、リクエストを受信すると、ログ情報をログサーバ305へ送信するか否かを判定する(ステップ907)。ここで、受信したリクエストにはトランザクションIDが含まれているため、ログ情報を送信すると判定される。   When receiving the request, the Web server 302 determines whether to transmit log information to the log server 305 (step 907). Here, since the received request includes a transaction ID, it is determined to transmit log information.

そこで、Webサーバ302は、受信したリクエストから、前回のアクションのアクション名、トランザクションID、全処理時間T1、生成時間T4、及び描画時間T5を取得する。そして、図6A及び図6Bのログ情報610が示すように、トランザクションIDの文字列の一部を改変し、改変されたトランザクションID、サーバ種別、ユーザID、及び所属コードを含むトランザクション開始通知をログサーバ305へ送信する(ステップ908)。なお、予め設定された規則に基づいて、トランザクションIDは改変される。例えば、Webサーバ302は、トランザクションIDの末尾2桁を、“01”から“A1”へ変更する。トランザクションIDを変更することで、ログサーバが、ステップ820にてログヘッダ情報を削除した後に、削除されたトランザクションIDを含むログ情報を、再度受信することを防ぐことができる。   Therefore, the Web server 302 acquires the action name, transaction ID, total processing time T1, generation time T4, and drawing time T5 of the previous action from the received request. Then, as shown in the log information 610 in FIGS. 6A and 6B, a part of the transaction ID character string is modified, and a transaction start notification including the modified transaction ID, server type, user ID, and affiliation code is logged. The data is transmitted to the server 305 (step 908). The transaction ID is modified based on a preset rule. For example, the Web server 302 changes the last two digits of the transaction ID from “01” to “A1”. By changing the transaction ID, the log server can be prevented from receiving the log information including the deleted transaction ID again after deleting the log header information in step 820.

ログサーバ305は、トランザクション開始通知を受信すると、改変されたトランザクションID、サーバ種別、ユーザID、及び所属コードを含むログヘッダ情報を生成する(ステップ909)。このとき、サーバ種別として“W3”が記録される。   Upon receiving the transaction start notification, the log server 305 generates log header information including the modified transaction ID, server type, user ID, and affiliation code (step 909). At this time, “W3” is recorded as the server type.

次に、Webサーバ302は、改変されたトランザクションID、サーバ種別、ログ名、全処理時間T1、生成時間T4、描画時間T5、及びアクション名を含むログ情報425を生成して、格納部413に格納する。そして、そのログ情報425をログサーバ305へ送信する(ステップ910)。ログサーバ305は、ログ情報425を受信すると、それをログヘッダ情報とともにWebサーバ302のログ情報として記録する(ステップ911)。このとき、ログ名としては“画面処理時間”が用いられ、例えば、図6A及び図6Bのログ情報610のようなログ情報が記録される。   Next, the Web server 302 generates log information 425 including the modified transaction ID, server type, log name, total processing time T1, generation time T4, drawing time T5, and action name, and stores it in the storage unit 413. Store. Then, the log information 425 is transmitted to the log server 305 (step 910). Upon receiving the log information 425, the log server 305 records it as log information of the Web server 302 together with log header information (step 911). At this time, “screen processing time” is used as the log name, and for example, log information such as the log information 610 in FIGS. 6A and 6B is recorded.

次に、Webサーバ302は、改変されたトランザクションIDを含むトランザクション終了通知をログサーバ305へ送信する(ステップ912)。ログサーバ305は、トランザクション終了通知を受信すると、ログヘッダ情報を削除する(ステップ913)。   Next, the Web server 302 transmits a transaction end notification including the altered transaction ID to the log server 305 (step 912). When the log server 305 receives the transaction end notification, the log server 305 deletes the log header information (step 913).

なお、Webサーバ302は、ステップ907〜913の処理と並行して、新たなアクションに対し、ステップ803以降と同様の処理を開始する。これにより、新たなトランザクションIDが付与され、そのトランザクションの業務処理が開始される。   Note that the Web server 302 starts processing similar to that after step 803 for new actions in parallel with the processing of steps 907 to 913. As a result, a new transaction ID is assigned, and business processing for the transaction is started.

以上説明した図8及び図9のトランザクション実行手順において、必ずしもすべての処理を実行する必要はなく、Webシステムの構成や条件に応じて一部の処理を省略することも可能である。例えば、ログサーバ305において、ステップ812及び818で記録されるログ情報のトランザクションIDと、ステップ911で記録されるログ情報のトランザクションIDを異ならせる必要がない場合もある。その場合、ステップ908において、Webサーバ302はトランザクションIDを改変しなくてもよい。   In the transaction execution procedure of FIGS. 8 and 9 described above, it is not always necessary to execute all the processes, and a part of the processes can be omitted depending on the configuration and conditions of the Web system. For example, in the log server 305, it may not be necessary to make the transaction ID of the log information recorded in steps 812 and 818 different from the transaction ID of the log information recorded in step 911. In that case, in step 908, the Web server 302 may not modify the transaction ID.

図1の情報処理装置101、図3のクライアント301、Webサーバ302、APサーバ303、DBサーバ304、及びログサーバ305は、例えば、図10に示すような情報処理装置(コンピュータ)を用いて実現可能である。   The information processing apparatus 101 in FIG. 1, the client 301, the Web server 302, the AP server 303, the DB server 304, and the log server 305 in FIG. 3 are realized by using an information processing apparatus (computer) as shown in FIG. Is possible.

図10の情報処理装置は、Central Processing Unit (CPU)1001、メモリ1002、入力装置1003、出力装置1004、外部記憶装置1005、媒体駆動装置1006、及びネットワーク接続装置1007を備える。これらはバス1008により互いに接続されている。   10 includes a central processing unit (CPU) 1001, a memory 1002, an input device 1003, an output device 1004, an external storage device 1005, a medium drive device 1006, and a network connection device 1007. These are connected to each other by a bus 1008.

メモリ1002は、例えば、Read Only Memory(ROM)、Random Access Memory(RAM)、フラッシュメモリ等の半導体メモリであり、処理に用いられるプログラム及びデータを格納する。例えば、CPU1001は、メモリ1002を利用してプログラムを実行することにより、クライアント301、Webサーバ302、APサーバ303、DBサーバ304、及びログサーバ305の処理を行う。メモリ1002は、図2の格納部413としても使用でき、セッション情報421、時刻情報422、処理結果423、画面描画情報424、及びログ情報425を格納することもできる。   The memory 1002 is a semiconductor memory such as a read only memory (ROM), a random access memory (RAM), or a flash memory, and stores programs and data used for processing. For example, the CPU 1001 performs processing of the client 301, the Web server 302, the AP server 303, the DB server 304, and the log server 305 by executing a program using the memory 1002. The memory 1002 can also be used as the storage unit 413 in FIG. 2, and can store session information 421, time information 422, processing results 423, screen drawing information 424, and log information 425.

入力装置1003は、例えば、キーボード、ポインティングデバイス等であり、ユーザ又はオペレータからの指示や情報の入力に用いられる。出力装置1004は、例えば、表示装置、プリンタ、スピーカ等であり、ユーザ又はオペレータへの問い合わせや処理結果の出力に用いられる。クライアント301の処理結果には、画面描画情報424に基づいて描画された画面も含まれる。   The input device 1003 is, for example, a keyboard, a pointing device, or the like, and is used for inputting an instruction or information from a user or an operator. The output device 1004 is, for example, a display device, a printer, a speaker, or the like, and is used to output an inquiry to a user or an operator or a processing result. The processing result of the client 301 includes a screen drawn based on the screen drawing information 424.

外部記憶装置1005は、例えば、磁気ディスク装置、光ディスク装置、光磁気ディスク装置、テープ装置等である。この外部記憶装置1005には、ハードディスクドライブも含まれる。情報処理装置は、この外部記憶装置1005にプログラム及びデータを格納しておき、それらをメモリ1002にロードして使用することができる。   The external storage device 1005 is, for example, a magnetic disk device, an optical disk device, a magneto-optical disk device, a tape device, or the like. The external storage device 1005 includes a hard disk drive. The information processing apparatus can store programs and data in the external storage device 1005 and load them into the memory 1002 for use.

媒体駆動装置1006は、可搬型記録媒体1009を駆動し、その記録内容にアクセスする。可搬型記録媒体1009は、メモリデバイス、フレキシブルディスク、光ディスク、光磁気ディスク等である。この可搬型記録媒体1009には、Compact Disk Read Only Memory (CD−ROM)、Digital Versatile Disk(DVD)、Universal Serial Bus(USB)メモリ等も含まれる。ユーザ又はオペレータは、この可搬型記録媒体1009にプログラム及びデータを格納しておき、それらをメモリ1002にロードして使用することができる。   The medium driving device 1006 drives a portable recording medium 1009 and accesses the recorded contents. The portable recording medium 1009 is a memory device, a flexible disk, an optical disk, a magneto-optical disk, or the like. The portable recording medium 1009 includes a compact disk read only memory (CD-ROM), a digital versatile disk (DVD), a universal serial bus (USB) memory, and the like. A user or an operator can store programs and data in the portable recording medium 1009 and load them into the memory 1002 for use.

このように、各種処理に用いられるプログラム及びデータを格納するコンピュータ読み取り可能な記録媒体には、メモリ1002、外部記憶装置1005、及び可搬型記録媒体1009のような、物理的な(非一時的な)記録媒体が含まれる。   As described above, computer-readable recording media for storing programs and data used for various processes include physical (non-temporary) such as the memory 1002, the external storage device 1005, and the portable recording medium 1009. ) A recording medium is included.

ネットワーク接続装置1007は、Local Area Network(LAN)、インターネット等の通信ネットワークに接続され、通信に伴うデータ変換を行う通信インタフェースである。情報処理装置は、プログラム及びデータを外部の装置からネットワーク接続装置1007を介して受け取り、それらをメモリ1002にロードして使用することもできる。   The network connection device 1007 is a communication interface that is connected to a communication network such as a local area network (LAN) or the Internet and performs data conversion accompanying communication. The information processing apparatus can also receive a program and data from an external apparatus via the network connection apparatus 1007 and load them into the memory 1002 for use.

なお、情報処理装置が図10のすべての構成要素を含む必要はなく、用途や条件に応じて一部の構成要素を省略することも可能である。例えば、情報処理装置がWebサーバ302、APサーバ303、又はDBサーバ304として使用される場合は、入力装置1003及び出力装置1004を省略してもよい。   Note that the information processing apparatus does not have to include all the components illustrated in FIG. 10, and some of the components may be omitted depending on applications and conditions. For example, when the information processing apparatus is used as the Web server 302, the AP server 303, or the DB server 304, the input device 1003 and the output device 1004 may be omitted.

開示の実施形態とその利点について詳しく説明したが、当業者は、特許請求の範囲に明確に記載した本発明の範囲から逸脱することなく、様々な変更、追加、省略をすることができるであろう。   Although the disclosed embodiments and their advantages have been described in detail, those skilled in the art can make various modifications, additions and omissions without departing from the scope of the present invention as explicitly set forth in the claims. Let's go.

101 情報処理装置
111、411 計測部
112 処理結果取得部
113、412 生成部
114 ログ処理部
115、415 通信部
301 クライアント端末
302 Webサーバ
303 APサーバ
304 DBサーバ
305 ログサーバ
413 格納部
421 セッション情報
422 時刻情報
423 処理結果
424 画面描画情報
425、601〜610 ログ情報
701 業務処理開始時刻
702 生成開始時刻
1001 CPU
1002 メモリ
1003 入力装置
1004 出力装置
1005 外部記憶装置
1006 媒体駆動装置
1007 ネットワーク接続装置
1008 バス
1009 可搬型記録媒体
DESCRIPTION OF SYMBOLS 101 Information processing apparatus 111,411 Measurement part 112 Processing result acquisition part 113, 412 Generation part 114 Log processing part 115,415 Communication part 301 Client terminal 302 Web server 303 AP server 304 DB server 305 Log server 413 Storage part 421 Session information 422 Time information 423 Processing result 424 Screen drawing information 425, 601 to 610 Log information 701 Business process start time 702 Generation start time 1001 CPU
1002 Memory 1003 Input device 1004 Output device 1005 External storage device 1006 Medium drive device 1007 Network connection device 1008 Bus 1009 Portable recording medium

Claims (6)

情報処理装置によって実行されるログ処理方法であって、
処理の実行を要求する第1の処理要求を端末から受信し、
前記第1の処理要求に処理識別情報を付与し、
前記処理識別情報と、前記第1の処理要求に基づいた処理を処理サーバへ要求する第2の処理要求を、該処理サーバへ送信し、
前記処理識別情報と、前記第2の処理要求に対する処理結果を前記処理サーバから受信し、
前記処理結果から画面描画情報を生成するとともに、該画面描画情報の生成に要した生成時間を計測し、
前記処理識別情報、前記画面描画情報、及び前記生成時間を前記端末へ送信し、
前記処理識別情報、前記生成時間、前記端末において前記画面描画情報に基づく画面の描画に要した描画時間、及び前記第1の処理要求を送信してから前記画面の描画が終了するまでの全処理時間を、前記端末から受信し、
前記処理識別情報に関する情報、前記生成時間、前記描画時間、及び前記全処理時間を含むログ情報を、該ログ情報を管理するログサーバへ送信する
ことを特徴とするログ処理方法。
A log processing method executed by an information processing apparatus,
Receiving a first processing request for requesting execution of processing from the terminal;
Giving process identification information to the first process request;
A second processing request for requesting the processing server to perform processing based on the processing identification information and the first processing request is transmitted to the processing server;
Receiving the processing identification information and a processing result for the second processing request from the processing server;
Generate screen drawing information from the processing result, measure the generation time required to generate the screen drawing information,
Transmitting the processing identification information, the screen drawing information, and the generation time to the terminal;
The process identification information, the generation time, the drawing time required for drawing the screen based on the screen drawing information in the terminal, and all the processes from the transmission of the first processing request to the end of drawing of the screen Receiving time from the terminal,
A log processing method comprising: transmitting log information including information related to the processing identification information, the generation time, the drawing time, and the total processing time to a log server that manages the log information.
前記情報処理装置は、前記第2の処理要求を前記処理サーバへ送信してから前記処理結果を受信するまでの実行時間を計測し、前記処理識別情報と該実行時間を前記ログサーバへ送信することを特徴とする請求項1記載のログ処理方法。   The information processing apparatus measures an execution time from when the second processing request is transmitted to the processing server until the processing result is received, and transmits the processing identification information and the execution time to the log server. The log processing method according to claim 1. 前記画面描画情報は、前記処理結果を示すデータと、前記端末が該データを含む画面を描画するためのプログラムとを含むことを特徴とする請求項1又は2記載のログ処理方法。   The log processing method according to claim 1, wherein the screen drawing information includes data indicating the processing result and a program for the terminal to draw a screen including the data. 前記情報処理装置は、
前記処理識別情報を、設定された変更規則に従って、他の処理識別情報へ変更し、
前記他の処理識別情報を含む前記ログ情報を、前記ログサーバへ送信することを特徴とする請求項1乃至請求項3のいずれか一項に記載のログ処理方法。
The information processing apparatus includes:
The process identification information is changed to other process identification information according to a set change rule,
The log processing method according to any one of claims 1 to 3, wherein the log information including the other processing identification information is transmitted to the log server.
端末、処理サーバ、及びログサーバと通信する通信手段と、
前記端末から受信した、処理の実行を要求する第1の処理要求に処理識別情報を付与し、前記通信手段を介して、該処理識別情報と、該第1の処理要求に基づいた処理を前記処理サーバへ要求する第2の処理要求を、該処理サーバへ送信し、該処理識別情報と、該第2の処理要求に対する処理結果を該処理サーバから受信する処理結果取得手段と、
前記処理結果から画面描画情報を生成する生成手段と、
前記画面描画情報の生成に要した生成時間を計測する計測手段と、
前記通信手段を介して、前記処理識別情報、前記画面描画情報、及び前記生成時間を前記端末へ送信し、該処理識別情報、該生成時間、該端末において該画面描画情報に基づく画面の描画に要した描画時間、及び前記第1の処理要求を送信してから該画面の描画が終了するまでの全処理時間を、該端末から受信し、該処理識別情報に関する情報、該生成時間、該描画時間、及び該全処理時間を含むログ情報を、該ログ情報を管理する前記ログサーバへ送信するログ処理手段と
を備えることを特徴とする情報処理装置。
A communication means for communicating with a terminal, a processing server, and a log server;
The process identification information is given to the first process request received from the terminal and requested to execute the process, and the process based on the process identification information and the first process request is performed via the communication unit. A processing result acquisition means for transmitting a second processing request to the processing server to the processing server, and receiving the processing identification information and a processing result for the second processing request from the processing server;
Generating means for generating screen drawing information from the processing result;
Measuring means for measuring a generation time required to generate the screen drawing information;
The processing identification information, the screen drawing information, and the generation time are transmitted to the terminal via the communication means, and the processing identification information, the generation time, and the terminal draw the screen based on the screen drawing information. The required drawing time and the total processing time from when the first processing request is transmitted until the drawing of the screen is completed are received from the terminal, and information regarding the processing identification information, the generation time, the drawing An information processing apparatus comprising: log processing means for transmitting log information including time and the total processing time to the log server that manages the log information.
処理の実行を要求する第1の処理要求を端末から受信し、
前記第1の処理要求に処理識別情報を付与し、
前記処理識別情報と、前記第1の処理要求に基づいた処理を処理サーバへ要求する第2の処理要求を、該処理サーバへ送信し、
前記処理識別情報と、前記第2の処理要求に対する処理結果を前記処理サーバから受信し、
前記処理結果から画面描画情報を生成するとともに、該画面描画情報の生成に要した生成時間を計測し、
前記処理識別情報、前記画面描画情報、及び前記生成時間を前記端末へ送信し、
前記処理識別情報、前記生成時間、前記端末において前記画面描画情報に基づく画面の描画に要した描画時間、及び前記第1の処理要求を送信してから前記画面の描画が終了するまでの全処理時間を、前記端末から受信し、
前記処理識別情報に関する情報、前記生成時間、前記描画時間、及び前記全処理時間を含むログ情報を、該ログ情報を管理するログサーバへ送信する
処理をコンピュータに実行させるプログラム。
Receiving a first processing request for requesting execution of processing from the terminal;
Giving process identification information to the first process request;
A second processing request for requesting the processing server to perform processing based on the processing identification information and the first processing request is transmitted to the processing server;
Receiving the processing identification information and a processing result for the second processing request from the processing server;
Generate screen drawing information from the processing result, measure the generation time required to generate the screen drawing information,
Transmitting the processing identification information, the screen drawing information, and the generation time to the terminal;
The process identification information, the generation time, the drawing time required for drawing the screen based on the screen drawing information in the terminal, and all the processes from the transmission of the first processing request to the end of drawing of the screen Receiving time from the terminal,
A program that causes a computer to execute a process of transmitting log information including information related to the process identification information, the generation time, the drawing time, and the total processing time to a log server that manages the log information.
JP2011143549A 2011-06-28 2011-06-28 Information processing apparatus, log processing method, and program Active JP5673391B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011143549A JP5673391B2 (en) 2011-06-28 2011-06-28 Information processing apparatus, log processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011143549A JP5673391B2 (en) 2011-06-28 2011-06-28 Information processing apparatus, log processing method, and program

Publications (2)

Publication Number Publication Date
JP2013011995A JP2013011995A (en) 2013-01-17
JP5673391B2 true JP5673391B2 (en) 2015-02-18

Family

ID=47685839

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011143549A Active JP5673391B2 (en) 2011-06-28 2011-06-28 Information processing apparatus, log processing method, and program

Country Status (1)

Country Link
JP (1) JP5673391B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6200376B2 (en) 2014-05-27 2017-09-20 クラリオン株式会社 In-vehicle information system and information processing method thereof
JP7159136B2 (en) * 2019-09-24 2022-10-24 株式会社日立製作所 System execution support method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6078956A (en) * 1997-09-08 2000-06-20 International Business Machines Corporation World wide web end user response time monitor
JP3590357B2 (en) * 2001-03-22 2004-11-17 日本電信電話株式会社 HTTP server performance data collection method and system
US20020169868A1 (en) * 2001-04-20 2002-11-14 Lopke Michael S. Interactive remote monitoring of client page render times on a per user basis
JP4906672B2 (en) * 2007-10-22 2012-03-28 株式会社日立製作所 Web application process recording method and process recording apparatus
JP2010128877A (en) * 2008-11-28 2010-06-10 Hitachi Ltd Web system and method of collecting processing record

Also Published As

Publication number Publication date
JP2013011995A (en) 2013-01-17

Similar Documents

Publication Publication Date Title
US10999384B2 (en) Method and system for identifying website visitors
US8751184B2 (en) Transaction based workload modeling for effective performance test strategies
US20130097313A1 (en) Web page load time prediction and simulation
US11030384B2 (en) Identification of sequential browsing operations
US11036281B2 (en) Method and system for dynamic selection of application dialog layout design
CN104601408B (en) Website data statistics and analysis method and system for non-open network environment
CN106021079A (en) A Web application performance testing method based on a user frequent access sequence model
US6754847B2 (en) Methods and systems for monitoring quality assurance
US9491223B2 (en) Techniques for determining a mobile application download attribution
JP2010165187A (en) Electronic coupon processing system
JP2017027208A (en) Dialogue information providing system, information processing unit and program
JP2009181459A (en) Access analyzing device and access analyzing method and access analyzing program
JP4282312B2 (en) Web server, Web server having Java servlet function, and computer program
US20130263156A1 (en) Operation log collection method and device
WO2012034537A1 (en) Online application system and method for implementing same
JP5673391B2 (en) Information processing apparatus, log processing method, and program
KR101055871B1 (en) Apparatus and method for extracting user session information through real-time analysis of web logs
JP7466176B2 (en) Information processing device, terminal device, information processing method, and program
US20140337069A1 (en) Deriving business transactions from web logs
KR100868852B1 (en) Visiting hours measurement method in web log analysis system
JP5737249B2 (en) Load simulation apparatus, simulation apparatus, load simulation method, simulation method, and program
CN106126538B (en) Page conversion processing method and device
JP2000222329A (en) Information communication system and information providing device and user attribute information collecting method and record medium
JP2017004500A (en) Analysis assistance method, analysis assistance program, and analysis assistance device
JP2011008558A (en) Web application operating method, web application system, and processing program thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140304

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141126

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141215

R150 Certificate of patent or registration of utility model

Ref document number: 5673391

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150