Application performance management relates to technologies and systems for monitoring and managing the performance of applications. For example, application performance management is commonly used to monitor and manage transactions performed by an application running on a server to a client.
Today, many applications can be accessed over a network, such as the Internet or intranet. For example, due to the ubiquity of web browsers on most client devices, web applications have become particularly popular. Web applications typically employ a browser-supported infrastructure, such as Java or a .NET framework. However, the performance of these types of applications is difficult to monitor and manage because of the complexity of the software and hardware and numerous components that may be involved.
A transaction typically comprises a sequence of method calls in a program that represent a complete set of operations necessary to perform a self-contained unit of work, such as a web request or a database query. Transactions can be traced to monitor and manage their performance. For example, a trace can be performed in an application server to obtain detailed information about the execution of an application within that server.
In a traditional transaction trace for web applications, Java or .NET instrumentation components are running (on the application server, the client, etc.) and write records of all of the method calls of a transaction to a transaction trace file. Such tracing must be initiated manually or triggered by a program condition and for only a limited period of time. It is necessary to limit trace duration and detail in the conventional systems because the act of tracing is relatively expensive and could negatively impact performance and disk space of the server, the client, etc.
Unfortunately, this means that in many circumstances the execution of an application within a system cannot be diagnosed or monitored.
The invention is explained in further detail, and by way of example, with reference to the accompanying drawings wherein:
Throughout the drawings, the same reference numerals indicate similar or corresponding features or functions. The drawings are included for illustrative purposes and are not intended to limit the scope of the invention.
The embodiments relate to monitoring and managing applications, such as web applications running via the hardware and software in a web infrastructure. In particular, the embodiments provide a framework for tracing as many transactions as possible in real-time. The framework may support continuous tracing, periodic, or on-demand tracing. In one embodiment, whenever possible, the application performance management systems and methods will attempt to trace every call in every transaction. In one embodiment, a throughput manager manages the tradeoff between performance and completeness of detail harvested by the tracing process or continuous tracing process, while maintaining a low overhead and minimizing impact on the system's performance.
In the following description, for purposes of explanation rather than limitation, specific details are set forth such as the particular architecture, interfaces, techniques, etc., in order to provide an understanding of the concepts of the invention. However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments, which depart from these specific details.
Certain embodiments of the inventions will now be described. These embodiments are presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms. Furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the inventions. For example, for purposes of simplicity and clarity, detailed descriptions of well-known components, such as circuits, are omitted so as not to obscure the description of the present invention with unnecessary detail. To illustrate some of the embodiments, reference will now be made to the figures.
Clients 102 refer to any device requesting and accessing services of applications provided by system 100. Clients 102 may be implemented using known hardware and software, such as a processor, a memory, communication interfaces, an operating system, application software, etc. For example, clients 102 may be implemented on a personal computer, a laptop computer, a tablet computer, a smart phone, and the like. Such devices are known to those skilled in the art and may be employed in one embodiment.
The clients 102 may access various applications based on client software running or installed on the clients 102. The clients 102 may execute a thick client, a thin client, or hybrid client. For example, the clients 102 may access applications via a thin client, such as a browser application like Internet Explore, Firefox, etc. Programming for these thin clients may include, for example, JavaScript/AJX, JSP, ASP, PHP, Flash, Siverlight, and others. Such browsers and programming code are known to those skilled in the art.
Alternatively, the clients 102 may execute a thick client, such as a stand-alone application, installed on the clients 102. Programming for thick clients may be based on the .NET framework, Java, Visual Studio, etc.
Web server 104 provides content for the applications of system 100 over a network, such as network 124. Web server 104 may be implemented using known hardware and software, such as a processor, a memory, communication interfaces, an operating system, etc. to deliver application content. For example, web server 104 may deliver content via HTML pages and employ various IP protocols, such as HTTP.
Application servers 106 provide a hardware and software environment on which the applications of system 1000 may execute. In one embodiment, applications servers 106 may be implemented based as Java Application Servers, Windows Server implement a .NET framework, LINUX, UNIX, WebSphere, etc. running on known hardware platforms. Application servers 106 may be implemented on the same hardware platform as the web server 104, or as shown in
In one embodiment, applications servers 106 may provide various applications, such as mail, word processors, spreadsheets, point-of-sale, multimedia, etc. Application servers 106 may perform various transactions related to requests by the clients 102. In addition, application servers 106 may interface with the database server 108 and database 110 on behalf of clients 102, implement business logic for the applications, and other functions known to those skilled in the art.
Database server 108 provides database services to database 110 for transactions and queries requested by clients 102. Database server 108 may be implemented using known hardware and software, such as a processor, a memory, communication interfaces, an operating system, etc. For example, database server 108 may be implemented based on Oracle, DB2, Ingres, SQL Server, MySQL, and etc. software running on the server 108.
Database 110 represents the storage infrastructure for data and information requested by clients 102. Database 110 may be implemented using known hardware and software. For example, database 110 may be implemented as relational database based on known database management systems, such as SQL, MySQL, etc. Database 110 may also comprise other types of databases, such as object oriented databases, XML databases, and so forth.
Application performance management system 112 represents the hardware and software used for monitoring and managing the applications provided by system 100. As shown, application performance management system 112 may comprise a collector 114, a monitoring server 116, a monitoring database 118, a monitoring client 120, and agents 122. These components will now be further described.
Collector 114 collects application performance information from the components of system 100. For example, collector 114 may receive information from clients 102, web server 104, application servers 106, database server 108, and network 124. The application performance information may comprise a variety of information, such as trace files, system logs, etc. Collector 114 may be implemented using known hardware and software, such as a processor, a memory, communication interfaces, an operating system, etc. For example, collector 114 may be implemented as software running on a general-purpose server. Alternatively, collector 114 may be implemented as an appliance or virtual machine running on a server.
Monitoring server 116 hosts the application performance management system. Monitoring server 116 may be implemented using known hardware and software, such as a processor, a memory, communication interfaces, an operating system, etc. Monitoring server 116 may be implemented as software running on a general-purpose server. Alternatively, monitoring server 116 may be implemented as an appliance or virtual machine running on a server.
Monitoring database 118 provides a storage infrastructure for storing the application performance information processed by the monitoring server 116. Monitoring database 118 may be implemented using known hardware and software, such as a processor, a memory, communication interfaces, an operating system, etc.
Monitoring client 120 serves as an interface for accessing monitoring server 116. For example, monitoring client 120 may be implemented as a personal computer running an application or web browser accessing the monitoring server 116.
Agents 122 serve as instrumentation for the application performance management system. As shown, the agents 122 may be distributed and running on the various components of system 100. Agents 122 may be implemented as software running on the components or may be a hardware device coupled to the component. For example, agents 122 may implement monitoring instrumentation for Java and .NET framework applications. In one embodiment, the agents 122 implement, among other things, tracing of method calls for various transactions. In particular, in one embodiment, agents 122 may interface known tracing configurations provided by Java and the .NET framework to enable tracing periodically, continuously, or in response to various events and to modulate the level of detail of the tracing.
In one embodiment, the agents 122 may implement or comprise a throughput manager to allow for continuous tracing of the node or entity being monitored, such as clients 102 or application server 106. As noted, conventional tracing on a server, such as application server 106, must be initiated manually or triggered by a program condition and for only a limited period of time. Conventionally, it is considered necessary to limit trace duration and detail because the act of tracing is relatively expensive and could negatively impact performance and disk space of the application server 106.
In contrast, the embodiments permit continuous, rather than intermittent, tracing of an entity. The continuous tracing may be performed for various durations. In addition, in the embodiments, the continuous tracing may be temporarily suspended. However, in one embodiment, the throughput manager in agents 122 may continue to run and re-initiate tracing when system performance allows. For example, in one embodiment, the agents 122 automatically modulate the level of detail written to meet a set of throughput goals set by the user. In one embodiment, the user, for example via monitoring client 122, may set a target data rate, such as in kilobytes per second, and a maximum amount of disk space to be used by agents 122.
In one embodiment, the user-defined target data rate applies communally on a per-system basis to all processes for which continuous tracing has been enabled. Based on the communal rate, the agents 122 may set quotas for the individual contributing processes.
In one embodiment, the amount of data being written communally by agents 122 is measured based on a time interval. For example, the agents 122 may measure the communal data rate every 30 seconds, 1 minute, 2 minutes, etc.
Based on communal data rate measured, the agents 122 may then adjust the level of transaction method call detail written to a transaction trace file to ensure these targets are met. If the current data rate is low enough, the agents 122 allows every detail of each method call, including information tags known as properties. A property is a pair of strings comprising a name and a value. The name of a property derives from a set of strings that identify characteristics, such as method arguments, environment settings at the time of a call, etc., to be associated with each specific method call of a transaction. For example, properties such as SQL statements, database URLs, HTTP methods, etc. may be traced in the embodiments. If, however, the data rate of trace data written by agents 122 becomes excessive, the agents 122 will omit some property details, or even some method call events themselves, from the transaction trace file.
Network 124 serves as a communications infrastructure for the system 100. Network 124 may comprise various known network elements, such as routers, firewalls, hubs, switches, etc. In one embodiment, network 124 may support various communications protocols, such as TCP/IP. Network 124 may refer to any scale of network, such as a local area network, a metropolitan area network, a wide area network, the Internet, etc.
Referring now to
In phase 202, the agent 122 determines a communal data rate and quotas based on the target data rate for various processes running on the application server 106. In one embodiment, the agent 122 may divide the communal data rate in various ways to determine individual quotas for the processes. For example, the agent 122 may divide the communal data rate evenly among the current processes running on application server 106. Alternatively, the agent 122 may individually set different quota rates for different processes based on their characteristics, such as process type, duration, etc.
In phase 204, the agent 122 monitors the data rate consumed, such as traffic level, by the processes in relation to their quota for tracing. For example, the agent 122 may monitor CPU time or cycles, number of bytes written to disk space, and the like.
In phase 206, the agent 122 modulates the level of detail written by the individual processes for tracing. In one embodiment, the agent 122 employs a token-bucket algorithm based on a process quota to modulate the level of detail written by each individual process depending on its traffic level. The token-bucket algorithm is a mechanism that monitors some rate of resource usage or data transfer. The bucket is initially holding a specific number of tokens.
Each time a defined quantum of a resource is used (such as a number of bytes written to a disk, or number of CPU cycles used to process data) during a fixed period, a token is removed from the bucket. Each time a resource is not used during the same period, a token is added to the bucket, until the token count is restored to its initial level.
Accordingly, the number of tokens remaining in the bucket fluctuates between zero and a maximum, such as the initial number assigned. In one embodiment, agent 122 can use the percentage of tokens remaining compared to the initial number of tokens as a level of activity or throughput regulator.
At the start of each interval, the throughput manager of the agent 122 uses the current bucket token count at the start of the interval to compute a threshold value, for example, from 0 to 10, where 0=all tokens present in the bucket, and 10=no tokens present in the bucket. In other words, these values represent a percentage of the maximum number of tokens that remain in the bucket, truncated to the nearest 10 percent.
In one embodiment, the agent 122 assigns each of the values from 0 to 10 two filter values, a number and a set of properties. The number and the property set are used by the agent 122 to restrict the amount of detailed information about each method call that is to be written to the trace file during the period, until the next threshold value is computed at the start of the next period.
If the data rate is too high, such as fewer tokens are available in the bucket, the throughput manager in agent 122 omits lower duration method calls. Properties, which are name-value pairs such as SQL statements, database URLs, etc., may also be omitted if the data rate is excessive. Thus, the agent 122 can continuously determine a detail level based on the quota and traffic level.
For purposes of illustration, a simplified example is provided below showing the bucket divided into three levels, such as 0, 5, and 10. For level 0, there is no minimum method duration, and thus, the agent 122 traces all method calls.
As also shown, three possible properties, A B and C may be specified by the agent 122 to indicate an allowable level of detail. In the simplified example shown, property A is always written to a trace. Property B, however, is written for levels 0 through 5, and property C is only written for level 0.
When agent 122 restricts the data written in any given period of time, the trace traffic of the processes is thus lowered, and the token bucket maintained by agent 122 replenishes tokens, eventually permitting more data to be written in future periods.
When modulating the data rate, in one embodiment, the agent 122 may enforce a stepped policy that omits method calls and calls to children based on call duration versus current throughput level. For method calls that are permitted to be written, the subset of associated property name-value pairs is also selected from a set that is defined for each throughput level. In other words, in one embodiment, each data filtering or permitted detail output level corresponds to a minimum call duration and the set of property-value pairs to include. The highest detail level includes all items. In one embodiment, the lowest level of detail may correspond to various levels that minimize impact to system performance. For example, the lowest level of detail may correspond to tracing being temporarily suspended.
In other embodiments, the agent 122 may enforce other policies to ensure compliance with the communal data rate. For example, the agent 122 may throttle the one or more processes, cap the data rate of one or more processes, and the like. The throughput manager in agent 122 may implement any form of scheduling and policing algorithm.
In one embodiment, to permit a consumer of the transaction trace file to observe the effects of modulating the detail level, the agent 122 may write the current detail level to the trace file when it changes.
The foregoing merely illustrates the principles of the invention. It will thus be appreciated that those skilled in the art will be able to devise various arrangements which, although not explicitly described or shown herein, embody the principles of the invention and are thus within its spirit and scope. Other system configuration and optimization features will be evident to one of ordinary skill in the art in view of this disclosure, and are included within the scope of the following claims.
The features and attributes of the specific embodiments disclosed above may be combined in different ways to form additional embodiments, all of which fall within the scope of the present disclosure. Although the present disclosure provides certain embodiments and applications, other embodiments that are apparent to those of ordinary skill in the art, including embodiments, which do not provide all of the features and advantages set forth herein, are also within the scope of this disclosure. Accordingly, the scope of the present disclosure is intended to be defined only by reference to the appended claims.
This application claims the benefit of priority of U.S. Provisional Application No. 61/439,658 filed Feb. 4, 2011, entitled “Overhead Management for Event Tracing Software,” which is incorporated by reference in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
6775824 | Osborne, II et al. | Aug 2004 | B1 |
7827539 | Wygodny et al. | Nov 2010 | B1 |
20040078691 | Cirne et al. | Apr 2004 | A1 |
20040148237 | Bittmann et al. | Jul 2004 | A1 |
20040267897 | Hill et al. | Dec 2004 | A1 |
20050223366 | Smith et al. | Oct 2005 | A1 |
20060280119 | Karamanolis et al. | Dec 2006 | A1 |
20070011330 | Dinker et al. | Jan 2007 | A1 |
20080008095 | Gilfix | Jan 2008 | A1 |
20100229218 | Kumbalimutt et al. | Sep 2010 | A1 |
20110067008 | Srivastava et al. | Mar 2011 | A1 |
20110119523 | Bisdikian et al. | May 2011 | A1 |
20130205009 | Malloy et al. | Aug 2013 | A1 |
Entry |
---|
Invitation to Pay Additional Fees for corresponding International Appl. No. PCT/US2012/023722. |
International Search Report directed to related International Patent Application No. PCT/US2012/023722, mailed Aug. 6, 2012; 5 pages. |
Preliminary Report on Patentability and Written Opinion of the International Search Authority directed to related International Patent Application No. PCT/US2012/023722, mailed Aug. 6, 2013, from the International Bureau of WIPO; 19 pages. |
Non-Final Office Action mailed Oct. 16, 2012, for U.S. Appl. No. 13/400,973; 30 pages. |
Final Office Action mailed Aug. 5, 2013, for U.S. Appl. No. 13/400,973; 58 pages. |
Non-Final Office Action mailed Dec. 4, 2013, for U.S. Appl. No. 13/400,973; 33 pages. |
Number | Date | Country | |
---|---|---|---|
20130145015 A1 | Jun 2013 | US |
Number | Date | Country | |
---|---|---|---|
61439658 | Feb 2011 | US |