The World Wide Web has expanded to provide web services faster to consumers. Web services may be provided by a web application which uses one or more services to handle a transaction. The applications may be distributed over several machines, making the topology of the machines that provides the service more difficult to track and monitor.
Applications written in C and C++ language are not as common as those written in .NET or JAVA platforms. Accordingly, there are not many solutions for monitoring these applications. To monitor a C++ application, it is required to instrument the application and recompile the application. As such, previous solutions require a software development kit (SDK) to achieve instrumentation of a C or C++ application. Recompiling and use of the SDK to monitor an application is time consuming and inconvenient.
What is needed is an improved method for monitoring a C or C++ application.
The present technology provides for dynamic monitoring of a binary process such as a C++ application. The dynamic monitoring process does not require recompiling or rewriting of the binary process when instrumentation is done. The dynamic monitoring process begins with configuring a start and end method to be monitored. The dynamic monitoring process may intercept both the start and end methods as and when the loader is initiated or at runtime to dynamically attach and detach the instrumentation. A loader may then be modified to call a library method upon detection of the start method. The library method may serve as a notification to the start of the method and causes a reflector to retrieve information from the incoming request. The incoming information may include data from which a business transaction name may be determined. The business transaction name is then associated with the monitoring of the particular request. When an exit call is detected, a call may be made to the library for a method which invokes a decorator. The decorator may insert business transaction name and other data into the outgoing call. By using reflectors and decorators to retrieve information and write information regarding incoming and outgoing requests, the present technology achieves correlation between applications of different types, such as C, C++ and other binary processes, .NET, Java and other applications. An embodiment may include a method for monitoring an application. The method may begin with monitoring a binary process on a first machine. Communication with the binary process may be detected by a second application on a second machine, wherein the second application not a binary process. The binary process and the second application are may be correlated as part of a distributed business transaction across the first machine and the second machine.
An embodiment may include a system for monitoring a business transaction. The system may include a processor, a memory and one or more modules stored in memory and executable by the processor. When executed, the one or more modules may monitor a binary process on a first machine, detect communication with the binary process by a second application on a second machine, the second application not a binary process, and correlate the binary process and the second application as part of a distributed business transaction across the first machine and the second machine.
The present technology provides for dynamic monitoring of a binary process such as a C++ application. The dynamic monitoring process does not require recompiling or rewriting of the binary process when instrumentation is done. The dynamic monitoring process begins with configuring a start and end method to be monitored. The dynamic monitoring process may intercept both the start and end methods as and when the loader is initiated or at runtime to dynamically attach and detach the instrumentation. A loader may then be modified to call a library method upon detection of the start method. The library method may serve as a notification to the start of the method and causes a reflector to retrieve information from the incoming request. The incoming information may include data from which a business transaction name may be determined. The business transaction name is then associated with the monitoring of the particular request. When an exit call is detected, a call may be made to the library for a method which invokes a decorator. The decorator may insert business transaction name and other data into the outgoing call. By using reflectors and decorators to retrieve information and write information regarding incoming and outgoing requests, the present technology achieves correlation between applications of different types, such as C, C++ and other binary processes, .NET, Java and other applications.
Client device 105 may include network browser 110 and be implemented as a computing device, such as for example a laptop, desktop, workstation, or some other computing device. Network browser 110 may be a client application for viewing content provided by an application server, such as application server 130 via network server 125 over network 120. Mobile device 115 is connected to network 120 and may be implemented as a portable device suitable for receiving content over a network, such as for example a mobile phone, smart phone, or other portable device. Both client device 105 and mobile device 115 may include hardware and/or software configured to access a web service provided by network server 125.
Network 120 may facilitate communication of data between different servers, devices and machines. The network may be implemented as a private network, public network, intranet, the Internet, a Wi-Fi network, cellular network, or a combination of these networks.
Network server 125 is connected to network 120 and may receive and process requests received over network 120. Network server 125 may be implemented as one or more servers implementing a network service. When network 120 is the Internet, network server 125 may be implemented as a web server. Network server 125 and application server 130 may be implemented on separate or the same server or machine.
Application server 130 communicates with network server 125, application servers 140 and 150, controller 190. Application server 130 may also communicate with other machines and devices (not illustrated in
Application servers may or may not include virtual machines. For example, application server 150 may include one or more .NET applications and may not include a virtual machine. Application server 140 includes a binary process, which may for example be implemented as a C or C++ process or program. References to a virtual machine with respect to an application server are intended to be for exemplary purposes only.
Virtual machine 132 on application server 130 may be implemented by code running on one or more application servers. The code may implement computer programs, modules and data structures to implement, for example, a virtual machine mode for executing programs and applications. In some embodiments, more than one virtual machine 132 may execute on an application server 130. A virtual machine may be implemented as a Java Virtual Machine (JVM). Virtual machine 132 may perform all or a portion of a business transaction performed by application servers comprising system 100. A virtual machine may be considered one of several services that implement a web service.
Virtual machine 132 may be instrumented using byte code insertion, or byte code instrumentation, to modify the object code of the virtual machine. The instrumented object code may include code used to detect calls received by virtual machine 132, calls sent by virtual machine 132, and communicate with agent 134 during execution of an application on virtual machine 132. Alternatively, other code may be byte code instrumented, such as code comprising an application which executes within virtual machine 132 or an application which may be executed on application server 130 and outside virtual machine 132. More details for instrumenting byte code are disclosed in U.S. application Ser. No. 12/878,919, titled “Monitoring Distributed Web Application Transactions,” filed Sep. 9, 2010, the disclosure of which is incorporated herein by reference.
In embodiments, application server 130 may include software other than virtual machines, such as for example one or more programs and/or modules that processes AJAX requests.
Agent 134 on application server 130 may be installed on application server 130 by instrumentation of object code, downloading the application to the server, or in some other manner. Agent 134 may be executed to monitor application server 130, monitor virtual machine 132, and communicate with byte instrumented code on application server 130, virtual machine 132 or another application or program on application server 130. Agent 134 may detect operations such as receiving calls and sending requests by application server 130 and virtual machine 132. Agent 134 may receive data from instrumented code of the virtual machine 132, process the data and transmit the data to controller 190. Agent 134 may perform other operations related to monitoring virtual machine 132 and application server 130 as discussed herein. For example, agent 134 may identify other applications, share business transaction data, aggregate detected runtime data, and other operations.
Application server 140 may include binary process 140. The binary process may include a process in C, C++, FORTRAN, or some other binary language. The binary processing may be monitored through the use of reflectors and decorators along with calls to library methods. As such, the binary process of application 140 may be correlated to virtual machines and other software processing requests in any of application servers 130, 150 and 160 as part of a distributed business transaction.
In some instances, each of application servers 140, 150 and 160 may include an application and an agent (not illustrated in
Asynchronous network machine 170 may engage in asynchronous communications with one or more application servers, such as application server 150 and 160. For example, application server 150 may transmit several calls or messages to an asynchronous network machine. Rather than communicate back to application server 150, the asynchronous network machine may process the messages and eventually provide a response, such as a processed message, to application server 160. Because there is no return message from the asynchronous network machine to application server 150, the communications between them are asynchronous.
Data stores 180 and 185 may each be accessed by application servers such as application server 150. Data store 185 may also be accessed by application server 150. Each of data stores 180 and 185 may store data, process data, and return queries received from an application server. Each of data stores 180 and 185 may or may not include an agent.
Controller 190 may control and manage monitoring of business transactions distributed over application servers 130-160. Controller 190 may receive runtime data from each of agents 134-164, associate portions of business transaction data, communicate with agents to configure collection of runtime data, and provide performance data and reporting through an interface. The interface may be viewed as a web-based interface viewable by mobile device 115, client device 105, or some other device. In some embodiments, a client device 192 may directly communicate with controller 190 to view an interface for monitoring data.
Controller 190 may install an agent into one or more virtual machines and/or application servers 130. Controller 190 may receive correlation configuration data, such as an object, a method, or class identifier, from a user through client device 192.
Data collection server 195 may communicate with client 105, 115 (not shown in
Communication between the binary process and a second application on a second machine may be detected at step 330. Detecting the communication may include determining whether an incoming process or an outgoing process was called. The incoming process may be monitored after the incoming data is collected. Detecting the outgoing process may include writing data to that outgoing process for the business transaction name associated with the call. The outgoing process data allows the method in the binary process to be correlated with methods in a remote application for correlation purposes. Detecting communication within a second application on a second machine is discussed in more detail below with respect to the method of
The binary application and second application may be correlated as part of a distributed business transaction at step 340. In some instances, an agent may report data to a central controller. The reported data may be collected from an incoming request to the binary process and data provided in outgoing requests made by the binary process. The agent reports the data to a central controller which also receives data originating any incoming requests and any received outgoing requests. The business transaction is formed by the correlated requests and may be analyzed in subsequent reports.
First, a determination is made as to whether an incoming process has been called at step 410. If an incoming process has not been called, the method continues to step 440. If an incoming process is called, data is collected from the incoming process at step 420. The data collection may include a loader calling a library, installing code which will read incoming parameters, determine a business transaction name and storing process data by the agent. Collecting data from an incoming process is discussed in more detail below with respect to the method of
After collecting data for an incoming process, the incoming process is monitored at step 430. Monitoring the incoming process may include collecting timing data such as the start and end of the process and sub-processes (methods, calls, etc.), method parameters, call stack data, process return values, and exceptions and errors. A call stack may be sampled to generate call graph data associated with the process. Data collected may be recorded by an agent.
A determination is made as to whether an outgoing process is called at step 440. If an outgoing process is called by a method or process being monitored, data is written to the outgoing process at step 440. To write the data, a loader may call a library method and outgoing parameters and a business transaction name may be written to the outgoing request by a decorator invoked by the library method. By writing the outgoing parameters by the decorator, the outgoing request will include information required to correlate the request occurring at the binary process with any request occurring at the external machine which will handle the request. The outgoing process may then be monitored at step 460. Monitoring the outgoing request may include listening for a response received from the recipient of the request and recording data regarding performance of the request. The method of
Once an incoming process has been detected, a loader may call a library method at step 510. The call to the library method may serve as a notification that an incoming request was received by the binary process. The call to the library method may result in invoking a reflector module. The method called from the library may cause code to be installed at an address associated with the incoming request at step 520. The address may be retrieved based on the configuration information received earlier.
Once the code is installed at the address of the method, incoming parameters are read by a reflector at step 530. The incoming parameters may include business transaction information, method parameters, and other data. After reading the incoming parameters at the incoming request, a business transaction name may be determined based on those incoming parameters at step 540. Subsequent data captured for performance of that incoming request may then be associated with that business transaction name captured by the reflector. That data is then stored by an agent at step 550.
The computing system 600 of
The components shown in
Mass storage device 630, which may be implemented with a magnetic disk drive or an optical disk drive, is a non-volatile storage device for storing data and instructions for use by processor unit 610. Mass storage device 630 can store the system software for implementing embodiments of the present invention for purposes of loading that software into main memory 610.
Portable storage device 640 operates in conjunction with a portable non-volatile storage medium, such as a floppy disk, compact disk or Digital video disc, to input and output data and code to and from the computer system 600 of
Input devices 660 provide a portion of a user interface. Input devices 660 may include an alpha-numeric keypad, such as a keyboard, for inputting alpha-numeric and other information, or a pointing device, such as a mouse, a trackball, stylus, or cursor direction keys. Additionally, the system 600 as shown in
Display system 670 may include an LED, liquid crystal display (LCD) or other suitable display device. Display system 670 receives textual and graphical information, and processes the information for output to the display device.
Peripherals 680 may include any type of computer support device to add additional functionality to the computer system. For example, peripheral device(s) 680 may include a modem or a router.
The components contained in the computer system 600 of
When implementing a mobile device such as smart phone or tablet computer, the computer system 600 of
The foregoing detailed description of the technology herein has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the technology to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. The described embodiments were chosen in order to best explain the principles of the technology and its practical application to thereby enable others skilled in the art to best utilize the technology in various embodiments and with various modifications as are suited to the particular use contemplated. It is intended that the scope of the technology be defined by the claims appended hereto.
Number | Name | Date | Kind |
---|---|---|---|
5958010 | Agarwal | Sep 1999 | A |
6026237 | Berry et al. | Feb 2000 | A |
6125382 | Brobst et al. | Sep 2000 | A |
6336148 | Doong et al. | Jan 2002 | B1 |
6336213 | Beadle et al. | Jan 2002 | B1 |
6470494 | Chan | Oct 2002 | B1 |
6477666 | Sanchez et al. | Nov 2002 | B1 |
6493816 | Munroe | Dec 2002 | B1 |
6651108 | Popp | Nov 2003 | B2 |
6662359 | Berry et al. | Dec 2003 | B1 |
7054361 | Otte et al. | May 2006 | B1 |
7367025 | Nikolov et al. | Apr 2008 | B1 |
7587487 | Gunturu | Sep 2009 | B1 |
7957934 | Greifeneder | Jun 2011 | B2 |
8151277 | Greifeneder et al. | Apr 2012 | B2 |
8248958 | Tulasi et al. | Aug 2012 | B1 |
8312249 | Trumbull | Nov 2012 | B1 |
8676901 | Nicolaou | Mar 2014 | B1 |
8863093 | Chou et al. | Oct 2014 | B1 |
8914626 | Adogla et al. | Dec 2014 | B1 |
8965952 | Shatalin | Feb 2015 | B1 |
20010034016 | Ziv-el et al. | Oct 2001 | A1 |
20020018481 | Mor et al. | Feb 2002 | A1 |
20020173997 | Menard et al. | Nov 2002 | A1 |
20020174174 | Ramraj | Nov 2002 | A1 |
20030014549 | Seidman | Jan 2003 | A1 |
20030093551 | Taylor et al. | May 2003 | A1 |
20040006620 | Howard et al. | Jan 2004 | A1 |
20040031020 | Berry et al. | Feb 2004 | A1 |
20040039728 | Fenlon | Feb 2004 | A1 |
20040081183 | Monza | Apr 2004 | A1 |
20040153825 | Morimoto et al. | Aug 2004 | A1 |
20050033767 | Kamentz | Feb 2005 | A1 |
20050039190 | Rees et al. | Feb 2005 | A1 |
20050091376 | Helfman | Apr 2005 | A1 |
20050155024 | Wannamaker | Jul 2005 | A1 |
20050165584 | Boody et al. | Jul 2005 | A1 |
20050243837 | Boyd et al. | Nov 2005 | A1 |
20050264581 | Patrick et al. | Dec 2005 | A1 |
20050273709 | Lough et al. | Dec 2005 | A1 |
20050281259 | Mitchell | Dec 2005 | A1 |
20060041539 | Matchett et al. | Feb 2006 | A1 |
20060059092 | Burshan et al. | Mar 2006 | A1 |
20060072568 | Vaananen | Apr 2006 | A1 |
20060155803 | Muramatsu | Jul 2006 | A1 |
20060168526 | Stirbu | Jul 2006 | A1 |
20060271395 | Harris | Nov 2006 | A1 |
20060280181 | Brailas et al. | Dec 2006 | A1 |
20070027742 | Emuchay et al. | Feb 2007 | A1 |
20070067364 | Barbian et al. | Mar 2007 | A1 |
20070088668 | Larab et al. | Apr 2007 | A1 |
20070180227 | Akimoto | Aug 2007 | A1 |
20080062993 | Levy | Mar 2008 | A1 |
20080098378 | Kilbane et al. | Apr 2008 | A1 |
20080225748 | Khemani et al. | Sep 2008 | A1 |
20080304518 | Cheng et al. | Dec 2008 | A1 |
20090320030 | Ogasawara | Dec 2009 | A1 |
20100088404 | Mani | Apr 2010 | A1 |
20100100890 | Dar | Apr 2010 | A1 |
20100138703 | Bansal et al. | Jun 2010 | A1 |
20100162204 | Baumann et al. | Jun 2010 | A1 |
20100199259 | Quinn et al. | Aug 2010 | A1 |
20100287541 | Saunders | Nov 2010 | A1 |
20110222412 | Kompella | Sep 2011 | A1 |
20110252395 | Charisius et al. | Oct 2011 | A1 |
20110276683 | Goldschlag et al. | Nov 2011 | A1 |
20110305160 | Green et al. | Dec 2011 | A1 |
20120005166 | Pace et al. | Jan 2012 | A1 |
20120047276 | Lindquist et al. | Feb 2012 | A1 |
20120047494 | Unrein et al. | Feb 2012 | A1 |
20120167057 | Schmich et al. | Jun 2012 | A1 |
20120230225 | Matthews et al. | Sep 2012 | A1 |
20120297371 | Greifeneder et al. | Nov 2012 | A1 |
20120304172 | Greifeneder et al. | Nov 2012 | A1 |
20130067074 | Allen | Mar 2013 | A1 |
20130117132 | Padwal et al. | May 2013 | A1 |
20140059527 | Gagliardi | Feb 2014 | A1 |
20140059528 | Gagliardi | Feb 2014 | A1 |
20140283040 | Wilkerson et al. | Sep 2014 | A1 |
20150067146 | Raker | Mar 2015 | A1 |
20150113122 | Sunkara | Apr 2015 | A1 |
20150124840 | Bergeron | May 2015 | A1 |
20160124829 | Winslow et al. | May 2016 | A1 |
Number | Date | Country |
---|---|---|
2 518 739 | Apr 2015 | GB |
WO 2015058204 | Apr 2015 | WO |
2016069040 | May 2016 | WO |
Entry |
---|
U.S. Appl. No. 14/530,436, filed Oct. 31, 2014, Brad Winslow, Agent Dynamic Service. |
U.S. Appl. No. 14/609,298, filed Jan. 29, 2015, Vinay Srinavasaiah, Dynamic Agent Delivery. |
PCT Application No. PCT/US2014/061402 International Search Report and Written Opinion dated Jan. 21, 2015. |
United Kingdom Application No. GB1413464.7, Search Report dated Jan. 27, 2015. |
Czajkowski et al., “Jres: A Resource Accounting Interface for Java”, 1998. |
Omitriev, “Profiling Java Application Using Code Hotswapping and Dynamic Call Graph Revelation”, 2004. |
U.S. Appl. No. 14/018,349 Office Action mailed Jan. 22, 2016. |
U.S. Appl. No. 14/018,349 Office Action mailed Sep. 11, 2015. |
U.S. Appl. No. 14/058,200 Office Action mailed Feb. 1, 2016. |
U.S. Appl. No. 14/058,200 Third-Party Submission mailed May 20, 2015. |
U.S. Appl. No. 14/530,436 Office Action mailed Mar. 24, 2016. |
U.S. Appl. No. 14/609,298 Office Action mailed Jul. 17, 2015. |
Gregersen et al., “Javeleon: An Integrated Platform for Dynamic Software Updating and its Application in Self-Systems”, 2012. |
PCT Application No. PCT/US2015/013873 International Search Report and Written Opinion dated Jun. 9, 2015. |
Number | Date | Country | |
---|---|---|---|
20160124832 A1 | May 2016 | US |