Socket management device and socket management method
First Claim
1. A socket management device that manages a number of sockets allocated to each of one or more applications operating in a computer system, the socket management device comprising:
- a computer memory;
a means for application management that stores a total socket count indicating a total number of sockets which can be allocated to all of the one or more applications, and a target socket count for each of the one or more applications indicating a target value for the number of sockets allocated to each of the one or more applications, wherein the means for application management is embedded in the computer memory;
a means for scheduling that recalculates, when a socket-count change request indicating a socket acquisition request or a socket release request is received from any of the one or more applications, the target socket count of a request-source application which has issued the socket-count change request, based on the received socket-count change request and based on the total socket count and the target socket count for each of the one or more applications, which are stored in the means for application management, and that updates the target socket count of the request-source application stored in the means for application management so as to have the recalculated target socket count; and
a means for response that generates a response to the socket-count change request based on the target socket count recalculated by the means for scheduling, and that notifies the response to the request-source application.
1 Assignment
0 Petitions
Accused Products
Abstract
In order to properly allocates a limited number of sockets to applications (202, 202, . . . ) in a computer system so as to improve the system network performance, an application management module (300) memorizes the total number of sockets which OS (100) can supply to the applications (202, 202, . . . ), and a target number of sockets for each application. When an application (202) wants to obtain a socket, the application management module (300) recalculates the target number of sockets which can be allocated to the application (202), using a predetermined scheduling algorithm (312), based on the number of sockets presently unallocated and the priority revel of the application (202), and notifies the recalculated target number to the application (202). The application (202) judges from the notified target number whether a socket can be obtained or not, and based on the judgment determines whether or not to actually obtain a socket from the OS (100).
20 Citations
9 Claims
-
1. A socket management device that manages a number of sockets allocated to each of one or more applications operating in a computer system, the socket management device comprising:
-
a computer memory; a means for application management that stores a total socket count indicating a total number of sockets which can be allocated to all of the one or more applications, and a target socket count for each of the one or more applications indicating a target value for the number of sockets allocated to each of the one or more applications, wherein the means for application management is embedded in the computer memory; a means for scheduling that recalculates, when a socket-count change request indicating a socket acquisition request or a socket release request is received from any of the one or more applications, the target socket count of a request-source application which has issued the socket-count change request, based on the received socket-count change request and based on the total socket count and the target socket count for each of the one or more applications, which are stored in the means for application management, and that updates the target socket count of the request-source application stored in the means for application management so as to have the recalculated target socket count; and a means for response that generates a response to the socket-count change request based on the target socket count recalculated by the means for scheduling, and that notifies the response to the request-source application. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A socket management system, comprising:
-
one or more applications; and a socket management device comprising;
a means for application management that stores a total socket count indicating a total number of sockets which can be allocated to all of the one or more applications, and a target socket count for each of the one or more applications indicating a target value for the number of sockets allocated to each of the one or more applications;
a means for scheduling that recalculates, when a socket-count change request indicating a socket acquisition request or a socket release request is received from any of the one or more applications, the target socket count of a request-source application which has issued the socket-count change request, based on the received socket-count change request and based on the total socket count and the target socket count for each of the one or more applications, which are stored in the means for application management, and that updates the target socket count of the request-source application stored in the means for application management so as to have the recalculated target socket count;and a means for response that generates a response to the socket-count change request based on the target socket count recalculated by the means for scheduling, and that notifies the response to the request-source application, wherein each of the one or more applications includes a first means for socket acquisition that judges whether socket acquisition has been allowed, based on the response notified from the socket management device, and that obtains a new socket from an operating system of the computer system when the first means for socket acquisition judges that socket acquisition has been allowed. - View Dependent Claims (7)
-
-
8. A socket management method for managing a number of sockets allocated to each of one or more applications operating in a computer system, the socket management method comprising:
-
an application management step of storing a total socket count indicating a total number of sockets which can be allocated to all of the one or more applications, and a target socket count for each of the one or more applications indicating a target value for the number of sockets allocated to each of the one or more applications; a scheduling step of recalculating, when a socket-count change request indicating a socket acquisition request or a socket release request is received from any of the one or more applications, the target socket count of a request-source application which has issued the socket-count change request, based on the received socket-count change request and based on the total socket count and the target socket count for each of the one or more applications, which are stored in the application management step, and of updating the target socket count of the request-source application stored in the application management step so as to have the recalculated target socket count; and a response step of generating a response to the socket-count change request based on the target socket count recalculated in the scheduling step, and of notifying the response to the request-source application.
-
-
9. A computer-readable computer program recorded on a non-transitory computer-readable medium and causing a computer to execute a method for managing a number of sockets allocated to each of one or more applications operating in a computer system, the method comprising:
-
an application management step of storing a total socket count indicating a total number of sockets which can be allocated to all of the one or more applications, and a target socket count for each of the one or more applications indicating a target value for the number of sockets allocated to each of the one or more applications; a scheduling step of recalculating, when a socket-count change request indicating a socket acquisition request or a socket release request is received from any of the one or more applications, the target socket count of a request-source application which has issued the socket-count change request, based on the received socket-count change request and based on the total socket count and the target socket count for each of the one or more applications, which are stored in the application management step, and of updating the target socket count of the request-source application stored in the application management step so as to have the recalculated target socket count; and a response step of generating a response to the socket-count change request based on the target socket count recalculated in the scheduling step, and of notifying the response to the request-source application.
-
Specification