Browse Prior Art Database

A system and method to debug performance based on log analysis and method invoking chain

IP.com Disclosure Number: IPCOM000229590D
Publication Date: 2013-Aug-06
Document File: 3 page(s) / 70K

Publishing Venue

The IP.com Prior Art Database

Abstract

For a performance problem, generally speaking, it’s complicated to find the root cause in a very short time. Product team need a way to find the potential performance bottleneck of test environment in detailed level, e.g. method. Besides, hosting team need to monitor the performance in production environment and tune the system. Also deliver the report to management team, development team and etc. So our idea provides a method to debug the performance issue in method level and tune the system in a smart and dynamic way. Our invention discloses a system and method to find potential performance bottleneck based on log analysis and method invoking chain during debug phase. Core features: -Inject the aspect log code in debugging phase -Analyze the code and generate method invoking chain -Analyze the logs together with method invoking chain -Control the log switch in runtime -Generate the performance report for admin and developers. Advantages -Can find the performance bottleneck quickly at detailed method level -Can monitor the performance issue of production environment -Can tune the log switch dynamically in the production environment to better address the performance bottleneck and avoid extra load.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 01 of 3

A system and method to debug performance based on log analysis and method invoking chain

In web based commercial software area, performance issue is the eternal topic. When an end users encounters a performance problem, for example, when he/she submits a request, it takes too long to get response. It will make him/her down or block daily work. For a performance problem, generally speaking, it's complicated to find the root cause in a very short time. If the development team can find the potential performance bottleneck during the debug phase, the fix cost will reduce greatly. Also it will keep a good impression to end users.

Our invention discloses a system and method to find potential performance bottleneck based on log analysis and method invoking chain during debug phase. As mentioned in background part, web application(B/S) is our scope. There are several layers in general web application: GUI - Http server - Web application server - Database / File server.

1



Page 02 of 3

There are four components needed in our idea. These components are: Code Injector, Code Parser, Performance Adviser and Dynamic Log Switcher. To support this invention, log needs to be printed before and after invoking each method. This can be implemented by aspect oriented programming without too much effort to current code change.
1


1.

..Log Injector Log Injector


Log needs to be printed before and after invoking each method. This can be implemented by aspect-oriented programming without too much effort to current code changes.
2


2.

.. Code Parser Code Parser

2



Page 03 of 3

It's to parser the source code and generate method invoking chain based 3


3.

.. Performance Adviser

Performance Adviser


It's to collect the logs from system and analyze together with method invoke chain.

After that, it will send log advise to Log Switcher and generate performance report. This report includes the all time consumption of eac...