|Publication number||US7090749 B2|
|Application number||US 09/919,438|
|Publication date||Aug 15, 2006|
|Filing date||Jul 31, 2001|
|Priority date||Jul 31, 2001|
|Also published as||US20030036897|
|Publication number||09919438, 919438, US 7090749 B2, US 7090749B2, US-B2-7090749, US7090749 B2, US7090749B2|
|Inventors||Romelia Flores, Leonard S. Hand, Philip E. Reed|
|Original Assignee||International Business Machines Corporation|
|Export Citation||BiBTeX, EndNote, RefMan|
|Patent Citations (14), Non-Patent Citations (3), Referenced by (17), Classifications (21), Legal Events (4)|
|External Links: USPTO, USPTO Assignment, Espacenet|
1. Technical Field
The present invention relates to the field of e-business, and more particularly, to a method and apparatus for simulating application workloads on an e-business application server.
2. Description of the Related Art
The pervasiveness of the Internet has allowed companies to exploit electronic communications to engage in what is commonly known as e-business activities with their customers. E-business involves conducting business on the Internet and not only includes buying and selling goods and services, but also includes servicing customers and collaborating with trading or business partners. To accommodate this vast range of activities, companies engaging in e-business have to ensure that their systems can optimally handle website traffic by implementing an effective traffic flow management policy.
A traffic flow management policy is a set of rules which dictate how workload should be handled by a system and its subsystems. A workload is a task or group of tasks that require system resources for processing. A work request can be used to initiate processing of a workload. An effective traffic flow management policy must assign and distribute tasks associated with a workload to various processing elements within the system and its subsystems. Moreover, to ensure optimal performance, the traffic flow management policy must constantly monitor system conditions and dynamically adjust the workload accordingly. Dynamic adjustment can include redistributing and rescheduling the tasks associated with a workload for processing.
E-business systems present a unique set of challenges to providing an effective traffic flow management policy. In e-business systems, legitimate overload conditions occur frequently and are generally unpredictable. A legitimate overload condition may result from several load factors which can include an increase in user demand, a partial website outage, and even the elimination of previous bottlenecks. For example, an increased user demand can occur when there are special events, promotions, and marketing campaigns. Furthermore, when overload occurs, system performance is significantly degraded and this results in diminished capacity. From an economic perspective, the diminished capacity results in lost opportunity which translates directly to lost revenue. Consequently, a provider utilizing an e-business system wants some assurance that its system is robust enough to effectively handle overload conditions.
Given the unique challenges presented by e-business systems, what is needed is an efficient method and system for ensuring that existing traffic flow management policies can effectively accommodate overload conditions.
The invention provides a method for simulating application workloads on an e-business application server hosting a plurality of e-business application programs. The method includes the steps of forwarding a placebo transaction work request to the application server and translating the forwarded work request into one or more computer program operations which are to be performed for the work request. Any commands associated with the computer program operations can subsequently be executed. In translating the forwarded placebo transaction work request, a workload identified by the forwarded placebo transaction work request can be determined. Upon determination of the workload identified by the placebo transaction work request, the computer program operations associated with a workload can be determined.
In forwarding the work request to the application server, a user identification (UID), a user priority and a workload identification (WLID) identifying the work request can be sent to a workload driver in the e-business application server. The user identification (UID), the user priority and the workload identification can be encapsulated in a HTTP header prior to the forwarding step. Alternately, the UID, the user priority and the WLID can be encapsulated in a URL string prior to the forwarding step. The UID, user priority and WLID can be forwarded from a user driver to the application server. The forwarded placebo transaction work request can be received by a workload driver. A load corresponding to the execution of commands that are to be executed for the placebo transaction work request can be applied to the e-business application server. Application of the load can indicate whether the traffic flow management policy can effectively handle overload conditions. The workload driver can be instantiated and/or hosted by the application server.
The invention also provides a system for application workload simulation on an e-business application server hosting a plurality of e-business application programs. The system can include a user driver, a configuration file and a workload driver. The user driver can generate placebo transaction work requests. The configuration file can include computer program commands which are associated with the placebo transaction work requests. The workload driver can be a servlet that can be instantiated by or hosted by the application server. Based on the contents of the configuration file, the workload driver can determine which of the computer program commands are to be executed for a particular placebo transaction work request by the user driver.
In accordance with the invention, a main workload driver can be configured as a core workload driver. Moreover, the system can further include a URL string within which, a UID, a priority and a WLID, can be encapsulated. Alternatively, the UID, the priority and the WLID, can be encapsulated in a HTTP header. The URL string and the HTTP header can be used for communicating the placebo transaction work request from the user driver to the workload driver.
There is shown in the drawing embodiments which are presently preferred, it being understood, however, that the invention is not limited to the precise arrangements and instrumentalities shown, wherein:
The invention provides a method for simulating application workloads on an e-business application server hosting e-business application programs. A work request for a placebo transaction can be forwarded to the application server for processing. The work request can be a request to process a specified workload. The placebo transaction can be a workload used to test the application server by placing a load on the application server. The placebo transaction can include any kind of data traffic which can emulate realtime tasks and activities that can happen within the application server and its e-business applications environment. The workloads for the placebo transactions can be defined such that they require varying levels of processing resources. The placebo transaction can include hypertext transfer protocol (HTTP) traffic which is typical of Internet website traffic. Although HTTP can be utilized, other transfer protocols such as file transfer protocol (FTP) can be employed. Consequently, a work request can include HTTP requests for accomplishing e-business related calculations, and retrieving and/or storing information in a database.
The work request which can be forwarded to the application server can be translated into one or more computer program operations. By executing the computer program operations, a load is thereby placed on the application server. Translation of the work request can include determining an appropriate workload to be processed by the forwarded work request. Subsequent to determining the appropriate workload to be processed, any computer program operations associated with the workload can be determined. The computer program operations can include one or more workload commands that are to be executed.
In forwarding the work request to the application server, a user identification (UID), a user priority and a workload identification (WLID) identifying the work request can be sent to a workload driver. According to one aspect of the invention, the UID, the user priority and the workload identification can be encapsulated in a HTTP header. According to an alternative aspect of the invention, the UID, the user priority and the WLID can be encapsulated in a URL string. The UID, user priority and WLID can be forwarded from a user driver to the application server. The user driver can simulate website traffic by generating the HTTP requests that constitute a placebo transaction.
A servlet which can be initiated by the application server can be configured as a core (main) workload driver that receives work requests from the user driver to process a workload for a particular user. A servlet can be a Java program that extends the functionality of a Web server, generating dynamic content and interacting with web clients using a request-response paradigm. Here, the web client can be the user driver which issues hypertext transfer protocol (HTTP) requests to the core workload driver for workload processing. Although more than one workload drivers may be possible, a particular workload driver can be configured as the main workload driver and can be called a core workload driver.
Returning to the work request forwarded from the user driver to the application server, the work request can be received at the core workload driver and processed by the core workload driver. Additionally, the core workload driver can have an associated configuration file which includes information related to the workloads. This information can include, but is not limited to, the WLID and the associated workload commands to be executed for a particular workload.
In determining which workload will be executed, the core workload driver can utilize the WLID found in the HTTP header or the uniform resource locator (URL) string. The WLID can be used to locate the corresponding WLID entry in the configuration file. Once the workload is determined and the commands identified, the workload commands can be executed based on the user priority for a particular UID. Since the workload commands can contain varying levels of complexity and duration, various levels of workloads can be placed on the system merely by changing or reconfiguring the workload configuration file.
The invention also includes a system for application workload simulation on an e-business application server that hosts e-business application programs. The system can include a user driver, a configuration file and a workload driver. The user driver can provide user work requests to process a particular workload. The configuration file can include computer program commands which are associated with the workloads that are defined for the system.
The workload driver includes software logic that can be used to determine, based on information in located the configuration file, which of the computer program commands should be executed for a particular workload. In response to the request from the user driver, the core workload driver can consult a configuration file to determine the relevant command classes to be executed for a particular WLID. The core workload driver can also function as a driver for which workloads and associated command classes will be executed.
Application server 100 can be a platform that can deliver application services to servers, databases, clients and devices, which can be used to process e-business related transactions. Application servers are known in the art and depending on the vendor, can provide additional enhanced services to support vendee requirements. For example, some application servers can contain built in traffic flow management which can include traffic monitoring and control functions.
The user driver 115 can be an application which acts as a front end to the core workload driver 105. The user driver 115 can simulate website traffic in the form of users accessing the system. User driver 115 can have a user interface such as a graphical user interface (GUI) that can facilitate input of the UID, user priority and WLID pertaining to a particular user workload request. The user driver 115 can be configured to transfer these inputs to the core workload driver as part of the HTTP header or as part of the URL string.
The core workload driver 105 can be a servlet that runs on the application server 100, which can be configured to receive requests from the user driver 115 to process a workload for a particular UID. The core workload driver 105 can be a Java class the can be instantiated by the application server 100.
The workload configuration file 110 can be a configuration file that can define the individual commands or groups of commands that can be processed for a particular workload. Each workload defined in the configuration file 110 can have one or more commands which can vary in complexity and system processing requirements. The workload configuration can be formatted in XML format, which provides great flexibility in reconfiguring the workload for a system. An exemplary configuration file can be defined as follows:
<WORKLOAD name=WRKLD000 alt=WRKLD002 systemstatus=1>
<WORKLOAD name=WRKLD001 alt=WRKLD000 systemstatus=1>
<Pattern>“\\n Executing tests file I/O tests for project.”
<WORKLOAD name=WRKLD002 alt=WRKLD001 systemstatus=1>
<WORKLOAD name=WRKLD003 alt=WRKLD000 systemstatus=1>
<Statement>“select state from DB2ADMIN.addr fetch first 3000
<WORKLOAD name=WRKLD004 alt=WRKLD001 systemstatus=1>
<WORKLOAD name=WRKLD005 alt=WRKLD001 systemstatus=1>
<Pattern>“//n This is a test!!! ”</Pattern>
<WORKLOAD name=WRKLD101 alt=WRKLD001 systemstatus=1>
Referring to the exemplary workload configuration, workload WRKLD000 has a single command that does a short calculation (SCalc) 120 a. The load caused by executing WRKLD000 is expected to be negligible since the command is executed only once. Workload WRKLD001 includes two commands—SCalc 120 a and FWrite 120 e. Although SCalc command 120 a is a short calculation, it is being executed twenty million times. By repeating a single command numerous times, the effect on the load on a system can be significant. The second command FWrite 120 e in WRKLD001 is a write to a device such as a disk file, which is executed 250 times. The combined effect of the SCalc 120 a and FWrite 120 e commands of workload WRKLD0001 provides a substantially greater load than the load provided by workload WRKLD000 which has a single instance of the SCalc 120 a command.
Workload WRKLD002 has a single sleep 120 c command which lasts for a duration of 5000 CPU cycles. Workload WRKLD003 also has a single command, but is used to access a database and retrieve a maximum of 3000 rows of data. Workload WRKLD004 also has a single command, which is used to create 300 threads. Workload WRKLD005 also has a single command FWrite 120 e which does a write access to a file 530 thousand times. Workload WRKLD101 is a user defined workload consisting of multiple workloads including, WRKLD001, WRKLD002, WRKLD003, WRKLD004, WRKLD005, and Cthreads command class respectively. Workload WRKLD101 illustrates the flexibility and advantage provided by utilizing the configuration file 110. By defining the workloads in a configuration file 110, the code associated with the commands can be reused to build workloads having varying complexities and load processing requirements. The exemplary configuration file 110 is used for illustrative purposes and is not intended to limit the invention.
In operation, application server 100 can instantiate the user driver 115 and the core workload driver 105. Upon initiation of the user driver 115, parameters such as a UID, a user priority and a WLID associated with a particular user's workload request can be communicated to the system for execution. Input of the UID, user priority and WLID can be facilitated by a GUI. The UID, user priority and WLID can be communicated to the system by placing them in the HTTP header or as in the URL string sent from the user driver 115 to the system. The core workload driver 105 can subsequently parse the HTTP header or the URL string to determine the UID, user priority and WLID. Once the WLID has been determined, the core workload driver 105 can identify which workload in the configuration file 110 corresponds to the determined WLID.
Subsequent to identifying the workload to be executed, the core workload driver 105 will attempt to execute the command(s) defined by the workload in the configuration file 110. The core workload driver 105 contains software logic that will ultimately execute the commands defined for the workload being executed. Factors including the priority of the requesting user, the current load on the system due to other commands being executed and the amount of processing resources that will be required for any requesting workload will be considered by the core workload driver 105. For example, if the core workload driver 105 determines that it is starting to run out of system resources, it could present a textual Java Server Page (JSP) to the user instead of a graphical JSP, since the graphical JSP will consume additional resources for network interactions, which includes the amount of data sent to the user.
In view of the foregoing, the invention can provide an efficient method and system for ensuring that existing traffic flow management policies can effectively accommodate overload conditions in an e-business application server. Notably, a test driver can be used to provide placebo transactions which can supply varying loads to the e-business application server. By supplying varying loads, a determination can be made as to whether the traffic flow management policies can effectively accommodate the overload conditions.
The present invention can be realized in hardware, software, or a combination of hardware and software. A method and apparatus for simulating application workloads according to the present invention can be realized in a centralized fashion in one computer system, or in a distributed fashion where different elements are spread across several interconnected computer systems. Any kind of computer system, or other apparatus adapted for carrying out the methods described herein, is suited. A typical combination of hardware and software could be a general purpose computer system with a computer program that, when being loaded and executed, controls the computer system such that it carries out the methods described herein. The present invention can also be embedded in a computer program product, which comprises all the features enabling the implementation of the methods described herein, and which, when loaded in a computer system, is able to carry out these methods.
Computer program or application in the present context means any expression, in any language, code or notation, of a set of instructions intended to cause a system having an information processing capability to perform a particular function either directly or after either or both of the following a) conversion to another language, code or notation; b) reproduction in a different material form.
|Cited Patent||Filing date||Publication date||Applicant||Title|
|US5657438 *||Oct 6, 1994||Aug 12, 1997||Mercury Interactive (Israel) Ltd.||Interactive system for developing tests of system under test allowing independent positioning of execution start and stop markers to execute subportion of test script|
|US5812780 *||May 24, 1996||Sep 22, 1998||Microsoft Corporation||Method, system, and product for assessing a server application performance|
|US5974572 *||Oct 14, 1997||Oct 26, 1999||Mercury Interactive Corporation||Software system and methods for generating a load test using a server access log|
|US6002871 *||Oct 27, 1997||Dec 14, 1999||Unisys Corporation||Multi-user application program testing tool|
|US6167534 *||Dec 22, 1995||Dec 26, 2000||Rational Software Corporation||Load test system and method|
|US6360332 *||Jun 21, 1999||Mar 19, 2002||Mercury Interactive Corporation||Software system and methods for testing the functionality of a transactional server|
|US6434513 *||Nov 25, 1998||Aug 13, 2002||Radview Software, Ltd.||Method of load testing web applications based on performance goal|
|US6477483 *||Jan 17, 2000||Nov 5, 2002||Mercury Interactive Corporation||Service for load testing a transactional server over the internet|
|US6522995 *||Dec 28, 1999||Feb 18, 2003||International Business Machines Corporation||Method and apparatus for web-based control of a web-based workload simulation|
|US6587879 *||Nov 18, 1999||Jul 1, 2003||International Business Machines Corporation||Architecture for testing pervasive appliances|
|US6601020 *||May 3, 2000||Jul 29, 2003||Eureka Software Solutions, Inc.||System load testing coordination over a network|
|US6701363 *||Feb 29, 2000||Mar 2, 2004||International Business Machines Corporation||Method, computer program product, and system for deriving web transaction performance metrics|
|US6754701 *||May 5, 2000||Jun 22, 2004||Mercury Interactive Corporation||Use of a single thread to support multiple network connections for server load testing|
|US6775644 *||May 27, 2003||Aug 10, 2004||Eureka Software Solutions, Inc.||System load testing coordination over a network|
|1||*||"LoadRunner: The Industry Standard Load Testing Tool" by Mercury Interactive Inc, Apr. 5, 2001, 6 pages printed from a pdf file.|
|2||*||"Segue Software Announces Resource Monitoring of E-Business Applications with SilkMonitor" , Business/Technology Editors, Business Wire. New York: Oct. 25, 1999 p. 1.|
|3||*||Merriam-Webster's Collegiate Dictionary, Tenth Edition, Merriam-Webster, Incorporated, Springfield, Massachusetts, USA, 1993, p. 885.|
|Citing Patent||Filing date||Publication date||Applicant||Title|
|US7673018 *||Apr 8, 2004||Mar 2, 2010||Research In Motion Limited||Message send queue reordering based on priority|
|US7877250||Apr 23, 2007||Jan 25, 2011||John M Oslake||Creation of resource models|
|US7966390 *||Jul 26, 2004||Jun 21, 2011||Fujitsu Limited||Terminal emulation program, storage medium, load test method, load test apparatus, and load test system|
|US7974827||Apr 23, 2007||Jul 5, 2011||Microsoft Corporation||Resource model training|
|US7996204||Apr 23, 2007||Aug 9, 2011||Microsoft Corporation||Simulation using resource models|
|US8065396||Jan 12, 2010||Nov 22, 2011||Research In Motion Limited||Message send queue reordering based on priority|
|US8307051||Oct 13, 2011||Nov 6, 2012||Research In Motion Limited||Message send queue reordering based on priority|
|US8639796 *||Dec 16, 2004||Jan 28, 2014||Hewlett-Packard Development Company, L.P.||Monitoring the performance of a streaming media server using server-side and client-side measurements|
|US9058416||Dec 11, 2001||Jun 16, 2015||Peter K. Trzyna||System and method for detecting and reporting online activity using real-time content-based network monitoring|
|US20020128925 *||Dec 11, 2001||Sep 12, 2002||Patrick Angeles||system and method for detecting and reporting online activity using real-time content-based network monitoring|
|US20050228621 *||Jul 26, 2004||Oct 13, 2005||Fujitsu Limited||Terminal emulation program, storage medium, load test method, load test apparatus, and load test system|
|US20050228873 *||Apr 8, 2004||Oct 13, 2005||Research In Motion Limited||Message send queue reordering based on priority|
|US20050251801 *||Feb 4, 2005||Nov 10, 2005||Hitachi, Ltd.||Tuning control method and system using thereof|
|US20060136578 *||Dec 16, 2004||Jun 22, 2006||Michele Covell||Monitoring the performance of a streaming media server using server-side and client-side measurements|
|US20080262822 *||Apr 23, 2007||Oct 23, 2008||Microsoft Corporation||Simulation using resource models|
|US20080262823 *||Apr 23, 2007||Oct 23, 2008||Microsoft Corporation||Training of resource models|
|US20100146067 *||Jan 12, 2010||Jun 10, 2010||Research In Motion Limited||Message send queue reordering based on priority|
|U.S. Classification||203/22, 714/E11.193, 702/182|
|International Classification||G06F9/45, G06F15/00, G06F11/30, H04L29/08, G06F11/34, H04L29/06|
|Cooperative Classification||G06F11/3414, G06F2201/87, G06F11/3433, H04L67/325, H04L67/1002, H04L67/38, H04L67/06|
|European Classification||G06F11/34C6, H04L29/08N9A, G06F11/34C2, H04L29/08N31T, H04L29/06C4|
|Jul 31, 2001||AS||Assignment|
Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:FLORES, ROMELIA;HAND, LEONARD S.;REED, PHILIP E.;REEL/FRAME:012057/0615;SIGNING DATES FROM 20010720 TO 20010730
|Mar 22, 2010||REMI||Maintenance fee reminder mailed|
|Aug 15, 2010||LAPS||Lapse for failure to pay maintenance fees|
|Oct 5, 2010||FP||Expired due to failure to pay maintenance fee|
Effective date: 20100815