METHOD AND APPARATUS FOR IMPLEMENTING A WORK CHAIN IN A JAVA ENTERPRISE RESOURCE MANAGEMENT SYSTEM

Information

  • Patent Application
  • 20100169408
  • Publication Number
    20100169408
  • Date Filed
    July 14, 2009
    15 years ago
  • Date Published
    July 01, 2010
    14 years ago
Abstract
A Java enterprise resource management (JERM) system and methods that implement a work chain are provided that allow both timing metrics and call metrics to be monitored and gathered in real-time, and which can cause appropriate actions to be taken in real-time. The JERM system provides a level of granularity with respect to the monitoring of methods triggered during a transaction that is equivalent to or better than that which is currently provided in the aforementioned known call-analysis resource management systems. In addition, the JERM system also provides information associated with the timing of hops that occur between servers, and between and within applications, during a transaction. Because all of this information is obtained in real-time, the JERM system is able to respond in real-time to cause resources to be scaled in or scaled out in a way that provides improved efficiency and productivity, and that enables the enterprise to quickly recover from resource failures.
Description
TECHNICAL FIELD

The instant disclosure relates to resource management systems and methods. More particularly, the instant disclosure relates to a work chain for use with resource management systems and methods.


BACKGROUND

Resource management systems (RMSs) monitor events and transactions that occur in computer resources of an enterprise and take actions to improve the performance and accountability of the enterprise. The computer resources typically include different types of servers, databases, telecommunications equipment, and other devices that perform particular functions in the enterprise. The computer resources are typically located in a data center. The servers that are found in a typical enterprise data center vary in type and include web servers, application servers, email servers, proxy servers, domain name system (DNS) servers, and other types of servers. By monitoring transactions as they occur in the enterprise, a RMS can determine whether resources are operating properly and efficiently, and if not, take actions to allocate or re-purpose resources in a way that increases the efficiency and productivity of the enterprise, and/or that enables a recovery to be made in the event that a resource failure has occurred.


A typical RMS monitors transactions being performed by computer resources of the enterprise to obtain measurements relating to their performance. These measurements are commonly referred to as metrics. A typical RMS includes a resource management server that runs a resource management software program that is designed to obtain and analyze particular metrics. The metrics that are monitored and acted upon by a RMS can typically be varied by making changes to the resource management software program. System-level metrics that are typically monitored include central processing unit (CPU) utilization, random access memory (RAM) usage, disk input/output (I/O) performance, and network I/O performance. Application-level metrics that are typically monitored include response time metrics, Structured Query Language (SQL) calls metrics, and Enterprise JavaBeans (EJB) calls metrics.


An example of the manner in which the CPU usage metric is monitored and acted upon by a typical RMS is as follows. For this example, it will be assumed that the enterprise includes a farm of application servers that perform operations associated with accounts payable tasks and a farm of application servers that perform operations associated with accounts receivable tasks. The RMS monitors transactions being performed on these servers and determines that the loads on the CPUs of the accounts payable servers are relatively low and that the loads on the CPU of the accounts receivable servers are relatively high. The relatively high CPU loads on the accounts receivable servers may result in the accounts receivable tasks being performed relatively slowly. The relatively low CPU loads on the accounts payable servers indicate that the accounts payable servers are being under-utilized. In this scenario, a typical RMS will determine that the loads on the CPUs of the accounts receivable servers are too high and that the accounts payable servers are being under-utilized. In response to this determination, the RMS will re-allocate the processing loads among the servers by re-purposing one or more of the accounts payable servers to be used in performing some share of the accounts receivable tasks.


An example of the manner in which an application-level metric is monitored and acted upon by a typical RMS is as follows. For this example, it is assumed that the enterprise is an E-commerce enterprise in which goods or services are sold and funds are transferred digitally online over a public network such as the Internet or over some private network to which users can obtain access. The checkout process is controlled by an application server that executes a software program that performs tasks associated with the checkout process. A different application server executes a software program that performs a verification process if, during the checkout process, the checkout application server detects that the user has entered a discount code. The user places items in an online shopping cart and attempts to checkout by clicking on a submit button. The website, however, appears not to be responding. Consequently, the user becomes frustrated and decides to purchase the items on a different website. At a later point in time, the RMS traces the transaction and finds that the delay was caused due to verification process taking a very long time to verify the discount code. After further analysis, the RMS determines that a table that is used by the verification software program is missing an index, and that the missing index caused a delay in the verification process. The RMS then causes the index to be inserted into the table to prevent delays in the future.


RMSs generally may be classified as being one of two types, namely, (1) response-time RMSs or (2) call-analysis RMSs. In response-time RMSs, the only metrics that are monitored and analyzed are timing metrics. One timing metric that is often used measures the amount of time that passes between an instant in time when the user clicks a submit button on his or her web browser to an instant in time when the corresponding web server receives the submission. Another timing metric that is often used measures the amount of time that passes between an instant in time when the corresponding web server receives the submission to an instant in time when the corresponding application server receives the submission. Another timing metric that is often used measures the amount of time that passes from an instant in time when the corresponding application server receives the submission to an instant in time when the corresponding database server receives the submission. In other words, response-time RMSs monitor metrics relating to the timing of hops from one server to the next when servicing a transaction. However, run-time RMSs do not provide information relating to the underlying methods that are performed when servicing a transaction. Rather, the underlying methods are essentially “black boxes” in that the details associated with the performance of the methods are not provided.


In call-analysis RMSs, the metrics that are monitored and analyzed relate to measurements associated with the performance of methods that have been called during a transaction. These call metrics provide information about each method that has been called and about which method triggered any other method during the transaction. These types of RMSs are not used to monitor and manage resources in real-time, but are used to debug enterprise resources offline (i.e., in non-real-time). The reason for this is that monitoring call metrics in real-time will typically slow down the transaction, which degrades the experience for the user. Consequently, it is seen as impractical to implement call-analysis RMSs that monitor and analyze call metrics in real-time.


SUMMARY

A Java enterprise resource management (JERM) system and method are provided. In accordance with an embodiment, the JERM system comprises a client side of the network comprising at least one client-side processing device and a client-side input/output (I/O) communications port. The client-side processing device is configured to run at least a first application computer software program and one or more other computer software programs including a client-side work chain. At least one of the client-side computer software programs monitors and gathers at least a first metric relating to one or more transactions performed by the first application program. The client-side work chain comprises M work queues and a work queue handler, where M is a positive integer that is greater than or equal to one. The work chain has a work chain input and a work chain output. The work queue handler selects one or more of the M work queues to be linked together to form the client-side work chain. At least a first metric is received as a work request at the input of the work chain. The work chain processes the work request to convert the metric into a first serial byte stream and to generate a first communications socket. The client-side I/O communications port is configured to implement a client-side end of the first communications socket for outputting the first serial byte stream from the first client-side I/O communications port onto the first communications socket.


The JERM method, in accordance with an embodiment, comprises the following. At least a first application computer software program is run on a first server to cause at least a first transaction to be performed by the first server located on a client side of a network. While the first application program is running, a first metrics gatherer computer software program is run on the first server to monitor and gather at least a first metric relating to the first transaction. A client-side work chain computer software program is run on the first server to perform a client-side work chain, which includes at least computer software code for performing a serialization algorithm that converts the gathered at least a first metric into a first serial byte stream and generates a first communications socket over which the serial byte stream is communicated to a server side of the network. The first server causes the first serial byte stream to be output onto the first communications socket via an I/O port of the first server.


These and other features and advantages will become apparent from the following description, drawings and claims.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 illustrates a block diagram of the JERM system in accordance with an embodiment.



FIG. 2 illustrates a block diagram of the JERM system in accordance with another illustrative embodiment.



FIG. 3 illustrates a block diagram of a work chain comprising a plurality of work queues and a work queue handler in accordance with an illustrative embodiment.



FIG. 4 illustrates a block diagram that represents the functional components of one of the work queues shown in FIG. 3 in accordance with an illustrative embodiment.



FIG. 5 illustrates a flowchart that represents a method in accordance with an illustrative embodiment for performing Java enterprise resource management on the client side of the JERM management system shown in FIG. 1.



FIG. 6 illustrates a flowchart that represents a method in accordance with an illustrative embodiment for performing Java enterprise resource management on the server side of the JERM management system shown in FIG. 1.





DETAILED DESCRIPTION

In accordance with an embodiment, a Java enterprise resource management (JERM) system is provided that implements a work chain and that combines attributes of run-time RMSs and call-analysis RMSs to allow both timing metrics and call metrics to be monitored in real-time, and which can cause appropriate actions to be taken in real-time. The JERM system provides a level of granularity with respect to the monitoring of methods that are triggered during a transaction that is equivalent to or better than that which is currently provided in the aforementioned known call-analysis RMSs. In addition, the JERM system also provides information associated with the timing of hops that occur between servers, and between and within applications, during a transaction. Because all of this information is obtained in real-time, the JERM system is able to respond in real-time, or near real-time, to cause resources to be allocated or re-allocated in a way that provides improved efficiency and productivity, and in a manner that enables the enterprise to quickly recover from resource failures. In addition, the JERM system is a scalable solution that can be widely implemented with relative ease and that can be varied with relative ease in order to meet a wide variety of implementation needs. The following description of the drawings describes illustrative embodiments of the JERM system and method.



FIG. 1 is a block diagram illustrating the JERM system 100 in accordance with an embodiment. The JERM system 100 comprises a client side 110 and a server side 120. On the client side 110, a client Production Server 1 runs various computer software programs, including, but not limited to, an application computer software program 2, a metrics gathering computer software program 10, a metrics serializer and socket generator computer software program 20, and a JERM agent computer software program 30. The Production Server 1 is typically one of many servers located on the client side 110. The Production Server 1 and other servers (not shown) are typically located in a data center (not shown) of the enterprise (not shown). For example, the Production Server 1 may be one of several servers of a server farm, or cluster, that perform similar processing operations, or applications. The application that is performed by each server is controlled by the application computer software program that is being run on the server. In the case of a farm of servers, each server of the same farm may run the same application software program and may have the same operating system (OS) and hardware. A data center may have multiple server farms, with each farm being dedicated to a particular purpose.


The application program 2 that is run by the Production Server 1 may be virtually any Java Enterprise Edition (Java EE) program that performs one or more methods associated with a transaction, or all methods associated with a transaction. During run-time while the application program 2 is being executed, the metrics gathering program 10 monitors the execution of the application program 2 and gathers certain metrics. The metrics that are gathered depend on the manner in which metrics gathering program 10 is configured. A user interface (UI) 90 is capable of accessing the production server 1 to modify the configuration of the metrics gathering program 10 in order to add, modify or remove metrics. Typical system-level metrics that may be gathered include CPU utilization, RAM usage, disk I/O performance, and network I/O performance. Typical application-level metrics that may be gathered include response time metrics, SQL call metrics, and EJB call metrics. It should be noted, however, that the disclosed system and method are not limited with respect to the type or number of metrics that may be gathered by the metrics gathering program 10.


In the illustrated embodiment, metrics that are gathered by the metrics gathering program 10 are provided to the metrics serializer and socket generator (MSSG) software program 20. The MSSG program 20 serializes each metric into a serial byte stream and generates a communications socket that will be used to communicate the serial byte stream to the JERM Management Server 40 located on the server side 120 of the JERM system 100. The serial byte stream is then transmitted over the socket 80 to the JERM Management Server 40. The socket 80 is typically a Transmission Control Protocol/Internet Protocol (“TCP/IP”) socket that provides a bidirectional communications link between an I/O port of the Production Server 1 and an I/O port of the JERM Management Server 40.


In the illustrated embodiment, the JERM Management Server 40 runs various computer software programs, including, but not limited to, a metrics deserializer computer software program 50, a rules manager computer software program 60, and an actions manager computer software program 70. The metrics deserializer program 50 receives the serial byte stream communicated via the socket 80 and performs a deserialization algorithm that deserializes the serial byte stream to produce a deserialized metric. The deserialized metric comprises parallel bits or bytes of data that represent the metric gathered on the client side 110 by the metrics gathering program 10. The deserialized metric is then received by the rules manager program 60. The rules manager program 60 analyzes the deserialized metric and determines whether a rule exists that is to be applied to the deserialized metric. If a determination is made by the rules manager program 60 that such a rule exists, the rules manager program 60 applies the rule to the deserialized metric and makes a decision based on the application of the rule. The rules manager program 60 then sends the decision to the actions manager program 70. The actions manager program 70 analyzes the decision and decides if one or more actions are to be taken. If so, the actions manager program 70 causes one or more actions to be taken by sending a command to the Production Server 1 on the client side 110, or to some other server (not shown) on the client side 110. As stated above, there may be multiple instances of the Production Server 1 on the client side 110, so the action that is taken may be directed at a different server (not shown) on the client side 110.


In accordance with an embodiment, each Production Server 1 on the client side 110 runs the JERM agent software program 30. For ease of illustration, only a single Production Server 1 is shown in FIG. 1. The JERM agent program 30 is configured to detect if a command has been sent from the actions manager program 70 and to take whatever action is identified by the command. The actions include scaling out one or more physical and/or virtual instances and scaling in one or more physical and/or virtual instances. The commands that are sent from the actions manager program 70 to one or more of the JERM agent programs 30 of one or more of the Production Servers 1 are sent over a communications link 130, which may be an Internet socket connection or some other type of communications link.


An example of an action that scales out another physical instance is an action that causes another Production Server 1 to be brought online or to be re-purposed. By way of example, without limitation, in the scenario given above in which the processing loads on the CPUs of the accounts receivable servers are too high, the rules manager program 60 may process the respective CPU load metrics for the respective accounts receivable servers, which correspond to Production Servers 1, and decide that the CPU loads are above a threshold limit defined by the associated rule. The rules manager program 60 will then send this decision to the actions manager program 70. The actions manager program 70 will then send commands to one or more JERM agent programs 30 running of one or more accounts payable servers, which also correspond to Production Servers 1, instructing the JERM agent programs 30 to cause their respective servers to process a portion of the accounts receivable processing loads. The actions manager program 70 also sends commands to one or more JERM agent programs 30 of one or more of the accounts receivable servers instructing those agents 30 to cause their respective accounts receivable servers to offload a portion of their respective accounts receivable processing loads to the accounts payable servers.


An example where the action taken by the actions manager program 70 is the scaling out of one or more virtual instances is as follows. Assuming that the application program 2 running on the Production Server 1 is a particular application program, such as the checkout application program described above, the actions manager program 70 may send a command to the JERM agent program 30 that instructs the JERM agent program 30 to cause the Production Server 1 to invoke another instance of the checkout application program so that there are now two instances of the checkout application program running on the Production Server 1.


In the same way that the actions manager program 70 scales out additional physical and virtual instances, the actions manager program 70 can reduce the number and types of physical and virtual instances that are scaled out at any given time. For example, if the rules manager program 60 determines that the CPU loads on a farm of accounts payable servers are low (i.e., below a threshold limit), indicating that the serves are being under-utilized, the actions manager program 70 may cause the processing loads on one or more of the accounts payable Production Servers 1 of the farm to be offloaded onto one or more of the other accounts payable Production Servers 1 of the farm to enable the Production Servers 1 from which the loads have been offloaded to be turn off or re-purposed. Likewise, the number of virtual instances that are running can be reduced based on decisions that are made by the rules manager program 60. For example, if the Production Server 1 is running multiple Java virtual machines (JVMs), the actions manager 70 may reduce the number of JVMs that are running on the Production Server 1. The specific embodiments described above are intended to be exemplary, and the disclosed system and method should not be interpreted as being limiting to these embodiments or the descriptions thereof.



FIG. 2 is a block diagram of the JERM system 200 in accordance with another illustrative embodiment. The JERM system 200 of FIG. 2 includes some of the same components as those of the JERM system 100 shown in FIG. 1, but also includes some additional components and functionality not included in the JERM system 100 of FIG. 1. For example, like the JERM system 100 of FIG. 1, the JERM system 200 of FIG. 2 has a client side 210 and a server side 220, which have a Production Server 230 and a JERM Management Server 310, respectively. On the client side 210, the Production Server 230 runs various computer software programs, including, but not limited to, an application computer software program 240, a metrics gathering computer software program 250, a client Managed Bean (MBean) computer software program 260, and a JERM agent computer software program 270. The Production Server 230 is typically one of many servers located on the client side 210. The Production Server 230 and other servers (not shown) are typically located in a data center (not shown) of the enterprise (not shown). Thus, the JERM Management Server 310 typically communicates with and manages multiple servers, some of which are substantially identical to (e.g., additional instances of) the Production Server 230 running application program 240 and some of which are different from the Production Server 230 and perform functions that are different from those performed by the Production Server 230.


The application program 240 may be any program that performs one or more methods associated with a transaction, or that performs all methods associated with a transaction. During run-time while the application program 240 is being executed, the metrics gathering program 250 monitors the execution of the application program 240 and gathers certain metrics. The metrics that are gathered depend on the manner in which the metrics gathering program 250 is configured. In accordance with this embodiment, the metrics gathering program 250 gathers metrics by aspecting JBoss interceptors. JBoss is an application server program for use with Java EE and EJBs. An EJB is an architecture for creating program components written in the Java programming language that run on the server in a client/server model. An interceptor, as that term is used herein, is a programming construct that is inserted between a method and an invoker of the method, i.e., between the caller and the callee. The metrics gathering program 250 injects, or aspects, JBoss interceptors into the application program 240. The JBoss interceptors are configured such that, when the application program 240 runs at run-time, timing metrics and call metrics are gathered by the interceptors. This feature enables the metrics to be collected in real-time without significantly affecting the performance of the application program 240.


A UI 410, which is typically a graphical UI (GUI) enables a user to interact with the metrics gatherer program 250 to add, modify or remove metrics so that the user can easily change the types of metrics that are being monitored and gathered. Typical system-level metrics that may be gathered include CPU utilization, RAM usage, disk I/O performance, and network I/O performance. Typical application-level metrics that may be gathered include response time metrics, SQL call metrics, and EJB call metrics. It should be noted, however, that the disclosed system and method are not limited with respect to the type or number of metrics that may be gathered by the metrics gathering program 250.


The client MBean program 260 receives the metrics gathered by the JBoss interceptors of the metrics gathering program 250 and performs a serialization algorithm that converts the metrics into a serial byte stream. An MBean is an object in the Java programming language that is used to manage applications, services or devices, depending on the class of the MBean that is used. The client MBean program 260 also sets up an Internet socket 280 for the purpose of communicating the serial byte stream from the client side 210 to the server side 220. The metrics are typically sent from the client side 210 to the server side 220 at the end of a transaction that is performed by the application program 240. As will be described below with reference to FIGS. 3 and 4, in accordance with an embodiment, the MBean program 260 wraps a client-side work chain comprising computer software code that performs the serialization and socket generation algorithms.


The server side 220 includes a JERM Management Server 310, which is configured to run a server MBean computer software program 320, a JERM rules manager computer software program 330, and a JERM actions manager computer software program 370. The server MBean program 320 communicates with the client MBean program 260 via the socket 280 to receive the serial byte stream. The server MBean program 320 performs a deserialization algorithm that deserializes the serial byte stream to convert the byte stream into parallel bits or bytes of data representing the metrics. The JERM rules manager program 330 analyzes the deserialized metric and determines whether a rule exists that is to be applied to the deserialized metric. If a determination is made by the rules manager program 330 that such a rule exists, the rules manager program 330 applies the rule to the deserialized metric and makes a decision based on the application of the rule. The rules manager program 330 then sends the decision to a JERM rules manager proxy computer software program 360, which formats the decision into a web service request and sends the web service request to the JERM actions manager program 370. As will be described below in detail with reference to FIGS. 3 and 4, the deserialization algorithm performed by the server MBean program 320 and the JERM rules manager program 330 are preferably implemented as a server-side work chain.


The JERM actions manager program 370 is typically implemented as a web service that is requested by the JERM rules manager proxy program 360. The JERM actions manager program 370 includes an action decider computer program 380 and an instance manager program 390. The actions decider program 380 analyzes the request and decides if one or more actions are to be taken. If so, the actions decider program 380 sends instructions to the instance manager program 390 indicating one or more actions that need to be taken. In some embodiments, the instance manager program 390 has knowledge of all of the physical and virtual instances that are currently running on the client side 210, and therefore can make the ultimate decision on the type and number of physical and/or virtual instances that are to be scaled out and/or scaled in on the client side 210. Based on the decision that is made by the instance manager program 390, the JERM actions manager program sends instructions via one or more of the communications links 330 to one or more corresponding JERM agent programs 270 of one or more of the Production Servers 230 on the client side 210.


Each Production Server 230 on the client side 210 runs a JERM agent program 270. For ease of illustration, only a single Production Server 230 is shown in FIG. 2. The JERM agent program 270 is configured to detect if a command has been sent from the actions manager 370 and to take whatever action is identified by the command. The actions include scaling out another physical and/or virtual instance and scaling in one or more physical and/or virtual instances. The communications link 330 may be a TCP/IP socket connection or other type of communications link. The types of actions that may be taken include, without limitation, those actions described above with reference to FIG. 1.


The UI 410 also connects to the JERM rules manager program 330 and to the JERM actions manager program 370. In accordance with this embodiment, the JERM rules manager program 330 is actually a combination of multiple programs that operate in conjunction with one another to perform various tasks. One of these programs is a rules builder program 350. A user interacts via the UI 410 with the rules builder program 350 to cause rules to be added, modified or removed from a rules database, which is typically part of the rules builder program 350, but may be external to the rules builder program 350. This feature allows a user to easily modify the rules that are applied by the JBoss rules applier program 340.


The connection between the UI 410 and the JERM actions manager program 370 enables a user to add, modify or remove the types of actions that the JERM actions manager 370 will cause to be taken. This feature facilitates the scalability of the JERM system 200. Over time, changes will typically be made to the client side 210. For example, additional resources (e.g., servers, application programs and/or devices) may be added to the client side 210 as the enterprise grows. Also, new resources may be substituted for older resources, for example, as resources wear out or better performing resources become available. Through interaction between the UI 410 and the JERM actions manager program 370, changes can be made to the instance manager program 390 to reflect changes that are made to the client side 210. By way of example, without limitation, the instance manager program 390 typically will maintain one or more lists of (1) the total resources by type, network address and purpose that are employed on the client side 210, (2) the types, purposes and addresses of resources that are available at any given time, and (3) the types, purposes and addresses of resources that are in use at any given time. As resource changes are made on the client side 210, a user can update the lists maintained by the instance manager program 390 to reflect these changes.


Without limitation, some of the important features that enable the JERM system 200 to provide improved performance over known RMSs of the type described above include: (1) the use of interceptors by the metrics gatherer program 250 to gather metrics without affecting the performance of a transaction while it is being performed by the application program 240: (2) the use of the client MBean program 260 and client-side work chain to convert the metrics into serial byte streams and send the serial byte stream over a TCP/IP socket 280 to the server side 220; and (3) the use of the server MBean program 320 and the server-side work chain to deserialize the byte stream received over the socket 280 and to apply applicable rules to the deserialized byte stream to produce a decision. These features enable the JERM rules manager program 330 to quickly apply rules to the metrics as they are gathered in real-time and enable the JERM actions manager 370 to take actions in real-time, or near real-time, to allocate and/or re-purpose resources on the client side 210.


Another feature of some embodiments is that the metrics gatherer program 250 can be easily modified by a user, e.g., via the UI 410. Such modifications enable the user to update and/or change the types of metrics that are being monitored by the metrics gatherer program 250. This feature provides great flexibility with respect to the manner in which resources are monitored, which, in turn, provides great flexibility in deciding actions that need to be taken to improve performance on the client side 210 and taking those actions.


Another feature present in some embodiments is that certain functionality on the client side 210 and on the server side 220 is implemented with a client-side work chain and with a server-side work chain, respectively. For example, in one embodiment, the client-side work chain comprises only the functionality that performs the serialization and socket generation programs that are wrapped in the client MBean 260. In one embodiment, the server-side work chain comprises the functionality for performing the socket communication and deserialization algorithms wrapped in the server MBean 320, and the functionality for performing the algorithms of the rules manager program 330. These work chains operate like assembly lines, and parts of the work chains can be removed or altered to change the behavior of the JERM system 200 without affecting the behavior of the application program 240. Essentially, the work chains are configured in XML, and therefore, changes can be made to the work chains in XML, which tends to be an easier task than modifying programs written in other types of languages which are tightly coupled. Prior to describing illustrative examples of the manners in which these work chains may be implemented on the client side 210 and server side 220, the general nature of the work chain will be described with reference to FIG. 3.



FIG. 3 illustrates a block diagram of a work chain 500 that demonstrates its functional components and the interaction between those components in accordance with an illustrative or exemplary embodiment. The work chain 500 typically comprises XML code configured for execution by a processing device, such as a microprocessor, for example. Each of the functional components of the work chain 500 performs one or more particular functions in the work chain 500. The work chain 500 is made up of M work queues 510 that can be logically arranged into a pipe configuration, where M is a positive integer that is greater than or equal to one, and a work queue handler 520. For ease of illustration, the work chain 500 is shown in FIG. 3 as having three work queues 510A, 510B and 510C, i.e., M is equal to three in this example. However, it will be understood by persons of ordinary skill in the art, in view of the description being provided herein, that the work chain 500 may comprise virtually any number of work queues 510. The work queue handler 520 interacts with each of the work queues 510, as will be described below in more detail.


The work chain 500 implemented on the server side 220 may have the same number of work queues 510 as the work chain 500 implemented on the client side 210, in which case the number of work queues 510 in both the client-side and server-side work chains is equal to M. However, the number of work queues 510 in the client-side work chain will typically be different from the number of work queues in the server-side work chain. Therefore, the number of work queues in the server-side work chain will be designated herein as being equal to or greater than N, where N is a positive integer that is greater than or equal to one, and where N may be, but need not be, equal to M. Also, it should also be noted that the client side 210 may include a work chain in cases in which the server side 220 does not include a work chain, and vice versa.


Each of the work queues 510A, 510B and 510C has an input/output (I/O) interface 512A, 512B and 512C, respectively. The I/O interfaces 512A-512C communicate with an I/O interface 520A of the work queue handler 520. The work queue handler 520 receives requests to be processed by the work chain 500 from a request originator (not shown) that is external to the work chain 500. The external originator of these requests will vary depending on the scenario in which the work chain 500 is implemented. For example, in the case where the work chain 500 is implemented on the client side 210 shown in FIG. 2, the originator of the requests is typically the client MBean 260, which wraps the serializer and socket generator that comprise the work chain 500.


The work queue handler 520 comprises, or has access to, a linked list of all of the work queues 510A-510C that can be linked into a work chain 500. When a work request from an external originator is sent to the work chain 500, the request is received by the work queue handler 520. The handler 520 then selects the first work queue 510 in the linked list and assigns the request to the selected work queue 510. For example, assuming the position of the work queues 510 in the linked list is represented by the variable J, where J is a non-negative integer having a value that ranges from J=0 to J=M−1, the first work queue 510 would be at position J=0 in the list, the second work queue 510 would be work at position J=1 in the list, the last work queue 510 would be at position J=M−1 in the list, and the second to the last work queue would be at position J=M−2 in the list. Therefore, in the illustrative embodiment of FIG. 3, work queue 510A corresponds to position J=0 in the list, work queue 510B corresponds to position J=1 in the list, and work queue 510C corresponds to position J=M−1 in the list.


Therefore, the request received by the handler 520 from the external request originator is assigned by the handler 510 to the work queue 510 at position J=0 in the list, which is work queue 510A in the illustrative embodiment of FIG. 3. Assuming work queue 510 at position J=0 in the list successfully processes the request to produce a work result, the handler 520 causes the work result to be assigned to the work queue 510 at position J=1. Whenever one of the work queues 510 successfully completes the processing of a request, the work queue 510 sends a call back to the handler 520. When the handler 520 receives the call back, the handler 520 assigns the work result produced by the successful work queue 510 to the next work queue 510 in the work chain 500. In other words, if a work queue 510 at position J=M−5 in the list successfully processes a request, the handler 520 will cause the result produced by the work queue 510 at position J=M−5 to be assigned to the work queue 510 at position J=M−4 in the list. This process will continue until the work result produced by work queue 510 at position J=M−2 has been passed by the handler 520 to the work queue 510 at position J=M−1 in the list, and that final work queue 510 has processed the work unit and produced a final result. The handler 520 then causes that final result to be output from the work chain 500.


In order for the work queue handler 520 to assign a request to a work queue 510, the handler 520 makes a synchronous call to the selected work queue 510. The result of the synchronous call is a success if the handler 520 is able to successfully assign this request to the selected work queue 510 before a timeout failure occurs. The result of the synchronous call is unsuccessful if the handler 520 is not able to successfully assign the request to the selected work queue 510 before a timeout failure occurs.


For example, it will be assumed that the handler 520 successfully assigned a request to work queue 510A and that work queue 510A successfully processed the request and sent a call back to the handler 520. Assuming the work queue 510B is the next work queue in the list, the handler 520 selects the work queue 510B to receive the result produced by work queue 510A. Thus, in this example, the output of the work queue 510A is used as the input of the work queue 510B. Once the result has been produced by work queue 510A, the handler 520 will attempt to synchronously add the result to the work queue 510B using the aforementioned synchronous call. If the synchronous call fails, the handler 520 will assume that work queue 510B did not successfully process the request. This process continues until the work chain 500 has produced its final result. The handler 520 then causes the final result to be output at the work chain output.



FIG. 4 illustrates a block diagram that represents the functional components of one of the work queues 510 shown in FIG. 3 in accordance with an illustrative embodiment. The work queues 510 preferably have identical configurations. Therefore, the functional components of only one of the work queues, work queue 510A, are shown in FIG. 4. The work queue 510A includes the I/O interface 512A, a queue monitor 521, an exception monitor 522, one or more worker threads 523, a logger 524, and a data queue 525. The data queue 525 is a data structure that stores an incoming request received at the I/O interface 512A of the work queue 510A. The queue monitor 521 is a programming thread that monitors the data queue 525 to determine if a request is stored therein, and if so, to determine if a worker thread 523 is available to handle the request. The queue monitor 521 maintains a list of available worker threads 523 in the work queue 510A. In essence, the list maintained by the queue monitor 521 constitutes a pool of available worker threads 523 for the corresponding work queue 510A. The worker threads 523 are programming threads configured to perform the tasks of processing the requests and producing a work result for the corresponding work queue 510.


If the queue monitor 521 determines that a request is stored in the data queue 525 and that a worker thread 523 is available to process the request, the queue monitor 521 reads the request from the data queue 525 and assigns the request to an available worker thread 523. The available worker thread 523 is then removed from the pool of available worker threads 523 and begins processing the request. If the worker thread 523 that is assigned the request successfully completes the processing of the request, the worker thread 523 sends the aforementioned call back to the handler 520 to inform the handler 520 that it has successfully processed the request. The handler 520 then causes the result produced by the worker thread 523 to be handed off, i.e., assigned, to the next work queue 510 in the work chain 500.


The exception monitor 522 is a programming thread that monitors the worker threads 523 to determine whether or not an uncaught exception occurred while the worker thread 523 was processing the request that caused the worker thread 523 to fail before it finished processing the request. If a worker thread 523 is processing a request when an exception occurs, and the exception is not caught by the worker thread 523 itself, the exception monitor 522 returns the failed worker thread 523 to the pool of available worker threads 523 for the given work queue 510. The exception monitor 522 is useful in this regard because without it, if an exception occurs that is not caught by the worker thread 523, the Java Virtual Machine (JVM) (not shown) will detect that the uncaught exception has occurred and will then terminate the failed worker thread 523, making it unavailable to process future requests. In essence, the exception monitor 522 detects the occurrence of an uncaught exception and returns the failed worker thread 523 to the worker thread pool before the JVM has an opportunity to terminate the failed worker thread 523. Returning failed worker threads 523 to the worker thread pool rather than allowing them to be terminated by the JVM increases the number of worker threads 523 that are available at any given time for processing incoming requests to the work chain 500.


The logger 524 is a programming thread that logs certain information relating to the request, such as, for example, whether an exception occurred during the processing of a request that resulted in a worker thread 523 failing before it was able to complete the processing of the request, the type of exception that occurred, the location in the code at which the exception occurred, and the state of the process at the instant in time when the exception occurred.


In addition to the functionality of the work queue 510A described above, each of the work queues 510 in the work chain 500 is capable of being stopped by the handler 520. In order to stop a particular one of the work queues 510, the request originator sends a poison command to the work chain 500. The handler 520 receives the poison command and causes an appropriate poison command to be sent to each of the work queues 510. When a work queue 510 receives a poison command from the handler 520, the work queue 510 sends a corresponding poison request to its own data queue 525 that causes all of the worker threads 523 of that work queue 510 to shutdown. The work queues 510 are GenericWorkQueue base types, but each work queue 510 may have worker threads 523 that perform functions that are different from the functions performed by the worker threads 523 of the other work queues 510. For example, all of the worker threads 523 of work queue 510A may be configured to perform a particular process, e.g., Process A, while all of the worker threads 523 of work queue 510B may be configured to perform another particular process, e.g., Process B, which is different from Process A. Thus, the poison command that is needed to stop work queue 510A will typically be different from the poison command that is needed to stop work queue 510B. Rather than requiring the external request originator to send different poison requests to each of the work queues 510 in the work chain 500, the external request originator may send a single poison request to the handler 520, which will then cause each of the queue monitors 521 to send an appropriate poison command to its respective data queue 525 that will cause the respective worker threads 523 of the respective worker queue 510 to shutdown.


The following XML code corresponds to the client-side work chain configuration file in accordance with the embodiment referred to above in which the client-side work chain only includes the functionality corresponding to the serialization and socket generation programs that are wrapped in the client MBean 260 shown in FIG. 2.














<?xml version=“1.0” encoding=“UTF-8” ?>


<production>









<!-- unique name to identify this production server -->



<identification>









<name>Prod1</name>









</identification>



<!-- information describing where the JERM Management server is -->



<bindings>









<serverAddress>localhost</serverAddress>



<serverPort>9090</serverPort>









</bindings>



<!-- min/max number of threads to perform network io -->



<workers>









<min>10</min>



<max>20</max>









</workers>



<!-- min/max number of connections in the connection pool-->



<connections>



 <min>32</min>









<max>64</max>



<refill>16</refill>









</connections>



<!--









name = class to instantiate



minThreads = minimum number of worker threads to service work queue



maxThreads = maximum number of worker threads to service work queue



addTimeout = maximum time in ms to wait before timing out trying to









produce to the work queue









-->









<work chain>









<work queue>









<name>com.unisys.jerm.queue.client.SerializerQueue</name>



<minThreads>16</minThreads>



<maxThreads>32</maxThreads>



<addTimeout>200</addTimeout>









</work queue>







</production>









The client-side work chain can be easily modified to include an audit algorithm work queue that logs information to a remote log identifying any processes that have interacted with the data being processed through the client-side work chain. Such a modification may be made by adding the following audit <work queue> to the XML code listed above:

















<work queue>









<name>com.unisys.jerm.queue.client.MySpecialAuditQueue</name>



<minThreads>16</minThreads>



<maxThreads>32</maxThreads>



<addTimeout>200</addTimeout>









</work queue>







</work chain>









Consequently, in accordance with this example, the XML code for the entire client-side work chain configuration file may look as follows:














<?xml version=“1.0” encoding=“UTF-8” ?>


<production>









<!-- unique name to identify this production server -->



<identification>









<name>Prod1</name>









</identification>



<!-- information describing where the JERM Management server is -->



<bindings>









<serverAddress>localhost</serverAddress>



<serverPort>9090</serverPort>









</bindings>



<!-- min/max number of threads to perform network io -->



<worker threads>









<min>10</min>



<max>20</max>









</worker threads>



<!-- min/max number of connections in the connection pool-->



<connections>



 <min>32</min>









<max>64</max>



<refill>16</refill>









</connections>



<!--









name = class to instantiate



minThreads = minimum number of worker threads to service work queue



maxThreads = maximum number of worker threads to service work queue



addTimeout = maximum time in ms to wait before timing out trying to









produce to the work queue









-->









<work chain>









<work queue>









<name>com.unisys.jerm.queue.client.SerializerQueue</name>



<minThreads>16</minThreads>



<maxThreads>32</maxThreads>



<addTimeout>200</addTimeout>









</work queue>



<work queue>









<name>com.unisys.jerm.queue.client.MySpecialAuditQueue</name>



<minThreads>16</minThreads>



<maxThreads>32</maxThreads>



<addTimeout>200</addTimeout>









</work queue>







 </work chain>


</production>









With similar ease to that with which the client-side work chain can be modified, the rules builder program 350 shown in FIG. 2 can also be easily modified by a user by making changes to one or more portions of the server-side work chain comprising the rules builder program 350 by, for example, using the user interface 410. Making the rules builder program 350 easily modifiable makes it easy to modify the JERM rules manager program 330. For example, the entire behavior of the JERM management server 310 can be modified by simply modifying XML code of the server-side work chain. Such ability enhances flexibility, ease of use, and scalability of the JERM management system 200.


For example, an archiver computer software program (not shown) could be added to the JERM management server 310 to perform archiving tasks, i.e., logging of metrics data. To accomplish this, a work queue similar to the audit work queue that was added above to the client-side work chain is added to the server-side work chain at a location in the work chain following the rules manager code represented by block 330 in FIG. 2. As with the audit work queue added above, the archiver work queue will have a namespace, minimum (minThreads) and maximum (MaxThreads) worker thread limits, and a timeout period (addTimeout) limit. The Min and Max thread limits describe how many worker threads are to be allocated to the work queue. The addTimeout limit describes the time period in milliseconds (ms) that the server 310 will wait before it stops trying to add to a full work queue. If for some reason it is later decided that the archiver work queue or another work queue is no longer needed, the work queue can easily be removed by the user via, for example, the user interface 410. For example, if the JERM system 200 is only intended to monitor, gather, and archive metrics data, the work queue of the portion of the server-side work chain corresponding to the JERM rules manager program 330 may be removed. This feature allows the vendor that provides the JERM system 200 to the enterprise customer to add functionality to the JERM system 200 by shipping one or more additional modules that plug into the client-side work chain, the server-side work chain, or both. Furthermore, the addition of such a module or module does not affect any of the core code of the JERM system 200, but allows the customer to design and implement its own custom modules for its specific business needs.


The combination of all of these features makes the JERM system 200 a superior RMS over known RMSs in that the JERM system 200 has improved scalability, improved flexibility, improved response time, improved metrics monitoring granularity, and improved action taking ability over what is possible with known RMSs. As indicated above, the JERM system 200 is capable of monitoring, gathering, and acting upon both timing metrics and call metrics, which, as described above, is generally not possible with existing RMSs. As described above, existing RMSs tend to only monitor, gather, and act upon either timing metrics or call metrics. In addition, existing RMSs that monitor, gather, and act upon call metrics generally do not operate in real-time because doing so would adversely affect the performance of the application program that is performing a given transaction. By contrast, not only is the JERM system 200 capable of monitoring, gathering, and acting upon timing metrics and call metrics, but it is capable of doing so in real-time, or near real-time.



FIG. 5 is a flowchart that illustrates a method in accordance with an illustrative embodiment for performing Java enterprise resource management on the client side. On the client side, a server is configured to run at least one application computer software program, at least one metrics gatherer computer software program, at least one metrics serializer and socket generator computer software program implemented as a work chain 500 (FIG. 3), and at least one JERM agent computer software program, as indicated by block 601. The application program is run to perform at least one transaction, as indicated by block 602. While the application program runs, the metrics gatherer program monitors and gathers one or more metrics relating to the transaction being performed, as indicated by block 603. The client-side work chain 500 comprising the metric serializer and socket generator program converts the gathered metrics into a serial byte stream and transmits the serial byte stream via a socket communications link to the server side, as indicated by block 604.



FIG. 6 is a flowchart that illustrates a method in accordance with an illustrative embodiment for performing Java enterprise resource management on the server side. On the server side, the server-side work chain performs byte stream deserialization to produce deserialized bits that represent the gathered metric, as indicated by block 621. The portion of the server-side work chain that performs the JERM rules manager program analyzes the deserialized bits to determine whether a rule exists that applies to the corresponding metric, and if so, applies the applicable rule to the deserialized bits, as indicated by block 622. This decision is then output from the server-side work chain, as indicated by block 623. The decision is then received by an actions manager computer software program, as indicated by block 624. The actions manager program then determines, based on the decision provided to it, one or more actions that are to be taken, if any, as indicated by block 625. The actions manager program then sends one or more commands to one or more JERM agent programs running on one or more servers on the client side instructing the JERM agent programs to cause their respective servers to perform the corresponding action or actions, as indicated by block 626.


As indicated above with reference to FIGS. 1 and 2, the actions may include scaling out one or more physical and/or virtual instances or scaling in one or more physical and/or virtual instances. The actions may also include re-purposing or re-allocation of a physical resource. The disclosed system and method are not limited with respect to the types of physical instances that may be scaled out, scaled in, re-purposed or re-allocated. An example of a physical instance is a server. A virtual instance may include, without limitation, an application computer software program, a JVM, or the like. The disclosed system and method are not limited with respect to the types of virtual instances that may be scaled out or scaled in. Virtual instances generally are not re-purposed or re-allocated, although that does not mean that the JERM system could not re-purpose or re-allocate virtual instances should a need arise to do so.


As described above with reference to FIGS. 1-6, the client Production Server and the JERM Management Server are configured to run a variety of computer software programs. These programs and any data associated with them are typically stored on some type of computer-readable medium (CRM), which may be internal to or external to the servers. The servers have CPUs or other processing devices that execute the instructions stored on the CRM when the software programs run on the CPUs or other processing devices. The disclosed system and method are not limited with respect to the type of CRM that is used for this purpose. For example, a CRM may be a random access memory (RAM) device, a read-only memory (ROM) device, a programmable ROM (PROM) device, an erasable PROM (EPROM) device, a flash memory device, a magnetic storage device, an optical storage device, or other type of memory device. Similarly, the disclosed system and method are not limited with respect to the type of CPU or processing device that is used to execute the various computer software programs. For example, the CPU or other processing device, referred to hereinafter as simply “processing device”, is typically one or more microprocessors, but may be, for example, a microcontroller, a special purpose application specific integrated circuit (ASIC), a programmable logic array (PLA), a programmable gate array (PGA), or any combination of one or more of such processing devices.


It should be noted that the disclosed system and method have been described with reference to illustrative embodiments to demonstrate principles and concepts, and features that may be advantageous in some embodiments. The disclosed system and method are not intended to be limited to these embodiments, as will be understood by persons of ordinary skill in the art in view of the description provided herein. A variety of modifications can be made to the embodiments described herein, and all such modifications are within the scope of the instant disclosure, as will be understood by persons of ordinary skill in the art.

Claims
  • 1. A Java enterprise resource management (JERM) system comprising: a client side of the network comprising at least: one or more client-side processing devices configured to run at least a first application computer software program and one or more other computer software programs, wherein said one or more other client-side computer software programs monitor and gather at least a first metric relating to one or more transactions performed by the first application program;a client-side work chain comprising M work queues and a work queue handler, where M is a positive integer that is greater than or equal to one, the work chain having a work chain input and a work chain output, the work queue handler selecting one or more of the M work queues to be linked together to form the client-side work chain, said at least a first metric being received as a work request at the input of the work chain, the work chain processing the work request to convert said at least a first metric into a first serial byte stream and to generate a first communications socket; anda client-side input/output (I/O) communications port configured to implement a client-side end of the first communications socket for outputting the first serial byte stream from the client-side I/O communications port onto the first communications socket.
  • 2. The JERM system of claim 1, wherein each of the M work queues comprises: a queue monitor;an exception monitor;a plurality of worker threads;a logger; anda data queue, wherein the work queue handler forms the work chain by linking at least a first one of the M work queues with at least a second one of the M work queues, and wherein the work queue handler causes a first one of the linked work queues to receive the work request, the received work request being stored as a first work request in the respective data queue of the first one of the linked work queues, and wherein the respective queue monitor of the first one of the linked work queues monitors the respective data queue to determine whether or not a work request is stored therein, wherein if the respective queue monitor determines that a work request is stored in the respective data queue, the queue monitor determines whether at least one of the worker threads of the first one of the linked work queues is available to process the work request, and if so, selects the available worker thread and allocates the first work request to the selected worker thread for processing of the work request by the selected worker thread.
  • 3. The JERM system of claim 2, wherein if the selected worker thread is successful at processing the allocated first work request, the selected worker thread produces a first work result corresponding to the successfully processed first work request and causes a call back to be sent to the work queue handler to inform the work queue handler that the allocated first work request has been successfully processed.
  • 4. The JERM system of claim 3, wherein if the work queue handler receives a call back from the selected worker thread indicating that the allocated first work request has been successfully processed, the work queue handler causes the first work result produced to be stored as a second work request in the data queue of the second one of the linked work queues, and wherein the respective queue monitor of the second one of the linked work queues monitors the respective data queue to determine whether or not a work request is stored therein, wherein if the respective queue monitor of the second one of the linked work queues determines that a work request is stored in the respective data queue, the respective queue monitor determines whether at least one of the worker threads of the second one of the linked work queues is available to process the second work request stored in the data queue of the second one of the linked work queues, and if so, selects the available worker thread of the second one of the linked work queues and allocates the second work request to the selected worker thread of the second one of the linked work queues for processing of the work request.
  • 5. The JERM system of claim 4, wherein if the selected worker thread of the second one of the linked work queues is successful at processing the allocated second work request, the selected worker thread of the second one of the linked work queues produces a second work result corresponding to the successfully processed second work request and causes a call back to be sent to the work queue handler to inform the work queue handler that the allocated second work request has been successfully processed.
  • 6. The JERM system of claim 5, wherein if the work queue handler receives a call back from the selected worker thread of the second one of the linked work queues indicating that the allocated second work request has been successfully processed, the work queue handler causes the second work result to either be allocated to a next one of the linked work queues for processing or to be output from the client-side work chain at the client-side work chain output.
  • 7. The JERM system of claim 2, wherein the work queue handler forms the work chain by linking the M work queues together such that respective outputs of a first one of the work queues through an Mnth−1 one of the work queues are linked to respective inputs of a second one of the work queues through an Mnth one of the work queues, respectively, and wherein an input of the first one of the work queues is linked to the input of the client-side work chain and wherein an output of the Mnth one of the work queues is linked to an output of the client-side work chain, and wherein first through Mnth work requests are stored in the data queues of the first through Mnth work queues, respectively, and wherein the second through Mnth work requests correspond to first through Mnth−1 work results produced by respective worker threads of the first through Mnth−1 work queues, respectively.
  • 8. The JERM system of claim 7, wherein the respective queue monitors of the respective work queues monitor the respective data queues of the respective work queues to determine whether or not a work request is stored therein, wherein if the respective queue monitors determine that a work request is stored in the respective data queue, the respective queue monitors determine whether at least one of the worker threads of the respective work queues is available to process the work request, and if so, select respective ones of the available worker threads and allocate the respective work requests stored in the respective data queues to the respective selected worker threads for processing of the respective work requests by the respective selected worker threads.
  • 9. The JERM system of claim 8, wherein if any one of the respective selected worker threads is successful at processing the allocated respective work request, the successful worker threads produce respective work results corresponding to the respective successfully processed work requests and cause respective call backs to be sent to the work queue handler to inform the work queue handler that the respective allocated work requests have been successfully processed.
  • 10. The JERM system of claim 9, wherein if the work queue handler receives a call back from any of the respective successful worker threads, the work queue handler causes the corresponding work result to be output from the respective work queue and input to a next one of the work queues in the client-side work chain.
  • 11. The JERM system of claim 10, wherein if the work queue handler does not receive a call back from a worker thread of a respective one of the work queues within a timeout period after allocating a respective work request to a respective selected one of the work queues, the work queue handler assumes that the allocated work request failed.
  • 12. The JERM system of claim 11, wherein the respective exception monitors of the respective work queues monitor the selected respective worker threads and determine whether or not an uncaught exception has occurred during the processing of a respective work request by the respective worker thread that causes the respective worker thread to be unsuccessful in processing the respective work request, and wherein the respective loggers of the respective work queues log any occurrence of an exception during the processing of a respective work request by the respective worker thread.
  • 13. The JERM system of claim 12, wherein if one of the respective exception monitors determines that the uncaught exception has occurred during the processing of a respective work request by the respective worker thread, the respective exception monitor causes the unsuccessful worker thread to be returned to a pool of available worker threads of the respective work queue.
  • 14. The JERM system of claim 1, further comprising: a server side of the network comprising at least: a first server-side I/O communications port configured to implement a server-side end of the first communications socket for receiving the first serial byte stream outputted from the client-side I/O communications port onto the first communications socket; andone or more server-side processing devices configured to perform computer software algorithms, at least one of the computer software algorithms comprising a server-side work chain comprising N work queues and a work queue handler, where N is a positive integer that is greater than or equal to one, the server-side work chain having a work chain input and a work chain output, the work queue handler of the server-side work chain selecting one or more of the N work queues to be linked together to form the server-side work chain, wherein the server-side work chain receives the serial byte stream at the server-side work chain input and deserializes the serial byte stream to produce a deserialized byte stream containing information relating to said at least a first metric, and wherein the server-side work chain determines whether at least a first rules exists that applies to said at least a first metric, and if so, applies said at least a first rule to the deserialized byte stream to produce a compliance decision as to whether said at least a first metric is in compliance with said at least a first rule, the compliance decision being output from the sever-side work chain.
  • 15. The JERM system of claim 14, wherein said one or more server-side processing devices are configured to perform an actions manager computer software program, wherein if the compliance decision output from the server-side work chain indicates that said at least a first metric is not in compliance with said at least a first rule, said one or more server-side computer software programs send one or more commands to the client side of the network to cause at least one action to be taken on the client side of the network.
  • 16. The JERM system of claim 15, wherein said at least one action includes causing at least one physical instance, at least one virtual instance, or a combination of at least one physical and at least one virtual instance to be scaled out or scaled in on the client side.
  • 17. The JERM system of claim 16, wherein said one or more client-side processing devices correspond to a first server located on the client side of the network, and wherein said one or more server-side processing devices correspond to a second server located on the server side of the network.
  • 18. The JERM system of claim 17, wherein scaling out of a physical instance includes causing at least a third server to be added to the client side of the network.
  • 19. The JERM system of claim 17, wherein scaling out of a virtual instance includes causing at least one additional computer software program to run on the first server or on a different server located on the client side of the network.
  • 20. The JERM system of claim 17, wherein scaling in of a physical instance includes causing the first server or a different server located on the client side of the network to be removed from the client side of the network.
  • 21. The JERM system of claim 17, wherein scaling in of a virtual instance includes causing at least one fewer computer software programs to run on the first server or on a different server located on the client side of the network.
  • 22. The JERM system of claim 17, wherein said at least a first metric includes one or more of at least a central processing unit (CPU) load metric, a random access memory (RAM) device usage metric, a disk I/O performance metric, and a network I/O performance metric.
  • 23. The JERM system of claim 17, wherein said at least a first metric includes one or more of at least a Structured Query Language (SQL) calls metric, and an Enterprise JavaBeans (EJB) calls metric.
  • 24. A Java enterprise resource management (JERM) method comprising: running at least a first application computer software program on a first server to cause at least a first transaction to be performed by the first server, the first server being located on a client side of a network;while the first application program is running, running a first metrics gatherer computer software program on the first server to monitor and gather at least a first metric relating to said at least a first transaction;running a client-side work chain computer software program on the first server to perform a client-side work chain, the client-side work chain including computer software code for performing a serialization algorithm that converts the gathered at least a first metric into a first serial byte stream and generates a first communications socket over which the serial byte stream is communicated to a server side of the network; andin the first server, causing the first serial byte stream to be output onto the first communications socket via an input/output (I/O) port of the first server.
  • 25. The JERM method of claim 24, wherein the method further comprises: in a second server, receiving the serial byte stream output from the first server onto the first communications socket;running a server-side work chain computer software program on the second server to perform a server-side work chain, the server-side work chain including computer software code for deserializing the first serial byte stream to produce a deserialized byte stream containing information relating to said at least a first metric, the server-side work chain including computer software code for analyzing the deserialized byte stream and producing a compliance decision as to whether or not said at least a first metric is in compliance with at least a first rule; andrunning a first actions manager computer software program on the second server that decides, based on the compliance decision, whether at least one action needs to be taken on the client side of the network, wherein if the first actions manager program decides that at least one action needs to be taken on the client side of the network, the first actions manager causes one or more commands to be sent to the client side of the network to cause said at least one action to be taken on the client side of the network.
  • 26. The JERM method of claim 25, wherein said at least one action includes causing at least one physical instance, at least one virtual instance, or a combination of at least one physical and at least one virtual instance to be scaled out or scaled in on the client side.
  • 27. The JERM method of claim 25, wherein the client-side work chain comprises M work queues and a client-side work queue handler, and wherein the server-side work chain comprises N work queues and a server-side work queue handler, wherein M and N are positive integers that are greater than or equal to one, each work queue comprising: a queue monitor;an exception monitor;a plurality of worker threads;a logger; anda data queue, wherein the client-side work queue handler forms the client-side work chain by linking at least a first one of the M work queues with at least a second one of the M work queues, and wherein the client-side work queue handler causes a first one of the linked work queues to receive a work request, the received work request being stored as a first work request in the respective data queue of the first one of the linked work queues, and wherein the respective queue monitor of the first one of the linked work queues monitors the respective data queue to determine whether or not a work request is stored therein, wherein if the respective queue monitor determines that a work request is stored in the respective data queue, the queue monitor determines whether at least one of the worker threads of the first one of the linked work queues is available to process the work request, and if so, selects the available worker thread and allocates the first work request to the selected worker thread for processing of the work request by the selected worker thread.
  • 28. The JERM method of claim 27, wherein if the selected worker thread is successful at processing the allocated first work request, the selected worker thread produces a first work result corresponding to the successfully processed first work request and causes a call back to be sent to the client-side work queue handler to inform the client-side work queue handler that the allocated first work request has been successfully processed.
  • 29. The JERM method of claim 27, wherein the client-side work queue handler forms the client-side work chain by linking the M work queues together such that respective outputs of a first one of the work queues through an Mnth−1 one of the work queues are linked to respective inputs of a second one of the work queues through an Mnth one of the work queues, respectively, and wherein an input of the first one of the work queues is linked to the input of the client-side work chain and wherein an output of the Mnth one of the work queues is linked to an output of the client-side work chain, and wherein first through Mnth work requests are stored in the data queues of the first through Mnth work queues, respectively, and wherein the second through Mnth work requests correspond to first through Mnth−1 work results produced by respective worker threads of the first through Mnth−1 work queues, respectively.
  • 30. The JERM method of claim 29, wherein the server-side work queue handler forms the server-side work chain by linking the N server-side work queues together such that respective outputs of a first one of the server-side work queues through an Nnth−1 one of the server-side work queues are linked to respective inputs of a second one of the server-side work queues through an Nnth one of the server-side work queues, respectively, and wherein an input of the first one of the server-side work queues is linked to the input of the server-side work chain and wherein an output of the Nnth one of the server-side work queues is linked to an output of the server-side work chain, and wherein the first through Nnth work requests are stored in the data queues of the first through Nnth work queues, respectively, and wherein the second through Nnth work requests correspond to first through Nnth−1 work results produced by respective worker threads of the first through Nnth−1 work queues, respectively.
  • 31. The JERM method of claim 30, wherein the respective queue monitors of the respective work queues monitor the respective data queues of the respective work queues to determine whether or not a work request is stored therein, wherein if the respective queue monitors determine that a work request is stored in the respective data queue, the respective queue monitors determine whether at least one of the worker threads of the respective work queues is available to process the work request, and if so, select respective ones of the available worker threads and allocate the respective work requests stored in the respective data queues to the respective selected worker threads for processing of the respective work requests by the respective selected worker threads.
  • 32. The JERM method of claim 31, wherein if any one of the respective selected worker threads is successful at processing the allocated respective work request, the successful worker threads produce respective work results corresponding to the respective successfully processed work requests and cause respective call backs to be sent to the respective work queue handler to inform the respective work queue handler that the respective allocated work requests have been successfully processed.
  • 33. The JERM method of claim 32, wherein if the respective work queue handler receives a call back from any of the respective successful worker threads, the respective work queue handler causes the corresponding work result to either be allocated to a next one of the linked work queues for processing or to be output from the respective work queue and input to a next one of the work queues in the respective work chain.
  • 34. The JERM method of claim 33, wherein if the respective work queue handler does not receive a call back from a worker thread of a respective one of the work queues within a timeout period after allocating a respective work request to a respective selected one of the work queues, the respective work queue handler assumes that the allocated work request failed.
  • 35. The JERM method of claim 30, wherein the respective exception monitors of the respective work queues monitor the selected respective worker threads and determine whether or not an uncaught exception has occurred during the processing of a respective work request by the respective worker thread that causes the respective worker thread to be unsuccessful in processing the respective work request, and wherein the respective loggers of the respective work queues log any occurrence of an exception during the processing of a respective work request by the respective worker thread.
  • 36. The JERM method of claim 35, wherein if one of the respective exception monitors determines that an uncaught exception has occurred during the processing of a respective work request by the respective worker thread, the respective exception monitor causes the unsuccessful worker thread to be returned to a pool of available worker threads of the respective work queue.
CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation-in-part application of U.S. nonprovisional application Ser. No. 12/347,032, entitled “JAVA ENTERPRISE RESOURCE MANAGEMENT SYSTEM AND METHOD”, filed on Dec. 31, 2008, the benefit of the filing date to which priority is hereby claimed, and which is hereby incorporated by reference herein in its entirety.

Continuation in Parts (1)
Number Date Country
Parent 12347032 Dec 2008 US
Child 12502273 US