Autonomic adjustment of connection keep-alives
First Claim
1. An apparatus comprising:
- at least one processor;
a memory coupled to the at least one processor;
a server application residing in the memory and executed by the at least one processor, the server application comprising;
a keep-alive mechanism that keeps a connection to a client open according to a defined keep-alive specification; and
a keep-alive adjustment mechanism that monitors number of clients and average number of requests per client for the server application, automatically enables the keep alive mechanism when the number of clients is in excess of a first predetermined threshold, automatically enables the keep alive mechanism when the number of requests per client is in excess of a second predetermined threshold, automatically disables the keep alive mechanism when the number of clients is below the first predetermined threshold and the average number of requests per client is below the second predetermined threshold, sets the keep-alive specification to a minimal value when the number of clients is above the first predetermined threshold and the average number of requests per client is below the second predetermined threshold, sets the keep-alive specification to a maximum value when the number of clients is below the first predetermined threshold and the average number of requests per client is above the second predetermined threshold, and sets the keep-alive specification to a midrange value between the minimal value and the maximum value when the number of clients is above the first predetermined threshold and the average number of requests per client is above the second predetermined threshold.
0 Assignments
0 Petitions
Accused Products
Abstract
A server computer system includes a keep-alive autonomic adjustment mechanism that monitors current operating conditions and dynamically adjusts the keep-alive specification to optimize the keep-alives for the current operating conditions. The keep-alive autonomic adjustment mechanism monitors the total number of clients, and the average number of requests per client. The value of a keep-alive specification that determines how log to keep a connection open may be dynamically and autonomically adjusted by the keep-alive autonomic adjustment mechanism according to the monitored current operating conditions. The keep-alive autonomic adjustment mechanism may also include the ability to autonomically enable and disable the keep-alives. In this manner the performance of the server may be tuned to optimize the effect of using keep-alives according to current operating conditions.
-
Citations
2 Claims
-
1. An apparatus comprising:
-
at least one processor; a memory coupled to the at least one processor; a server application residing in the memory and executed by the at least one processor, the server application comprising; a keep-alive mechanism that keeps a connection to a client open according to a defined keep-alive specification; and a keep-alive adjustment mechanism that monitors number of clients and average number of requests per client for the server application, automatically enables the keep alive mechanism when the number of clients is in excess of a first predetermined threshold, automatically enables the keep alive mechanism when the number of requests per client is in excess of a second predetermined threshold, automatically disables the keep alive mechanism when the number of clients is below the first predetermined threshold and the average number of requests per client is below the second predetermined threshold, sets the keep-alive specification to a minimal value when the number of clients is above the first predetermined threshold and the average number of requests per client is below the second predetermined threshold, sets the keep-alive specification to a maximum value when the number of clients is below the first predetermined threshold and the average number of requests per client is above the second predetermined threshold, and sets the keep-alive specification to a midrange value between the minimal value and the maximum value when the number of clients is above the first predetermined threshold and the average number of requests per client is above the second predetermined threshold.
-
-
2. A computer-readable program product comprising:
-
(A) a server application comprising; a keep-alive mechanism that keeps a connection to a client open according to a defined keep-alive specification; and a keep-alive adjustment mechanism that monitors number of clients and average number of requests per client for the server application, automatically enables the keep alive mechanism when the number of clients is in excess of a first predetermined threshold, automatically enables the keep alive mechanism when the number of requests per client is in excess of a second predetermined threshold, automatically disables the keep alive mechanism when the number of clients is below the first predetermined threshold and the average number of requests per client is below the second predetermined threshold, sets the keep-alive specification to a minimal value when the number of clients is above the first predetermined threshold and the average number of requests per client is below the second predetermined threshold, sets the keep-alive specification to a maximum value when the number of clients is below the first predetermined threshold and the average number of requests per client is above the second predetermined threshold, and sets the keep-alive specification to a midrange value between the minimal value and the maximum value when the number of clients is above the first predetermined threshold and the average number of requests per client is above the second predetermined threshold; and (B) recordable media storing the server application.
-
Specification