SYSTEM AND METHOD FOR MANAGING RESOURCES OF APPLICATIONS AND THREADS PERFORMED ON JAVA VIRTUAL MACHINE
First Claim
1. A method of managing resources related to a Java Virtual Machine (JVM) and an application executed in the JVM, the method comprising:
- defining a resource identifier which uniquely identifies an arbitrary resource;
generating a resource consumer for each of a plurality of threads, wherein the resource consumer uses a resource;
generating at least one resource manager for each resource identifier, wherein the at least one resource manager manages a resource;
storing the at least one resource manager in a resource manager registry;
calculating a quantity of resource usage by resource managers generated for all applications and threads in the applications, and storing the calculated quantity of resource usage, wherein the calculating and storing of the quantity of resource usage are performed by each of the resource managers; and
informing about the quantity of resource usage.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of managing resources related to a Java Virtual Machine (JVM) and an application executed in the JVM is provided. The method includes defining a resource identifier uniquely identifying an arbitrary resource to be; generating a resource consumer for each thread, wherein the resource consumer uses a resource; generating at least one resource manager per resource identifier, wherein the resource manager manages a resource, and storing the at least one resource manager in a resource manager registry; calculating a quantity of resource usage by resource managers generated for all applications and threads in the applications, and storing the calculated quantity of resource usage, wherein the calculating and storing of the quantity are performed by each of the resource managers; and informing about the quantity of resource usage.
60 Citations
13 Claims
-
1. A method of managing resources related to a Java Virtual Machine (JVM) and an application executed in the JVM, the method comprising:
-
defining a resource identifier which uniquely identifies an arbitrary resource; generating a resource consumer for each of a plurality of threads, wherein the resource consumer uses a resource; generating at least one resource manager for each resource identifier, wherein the at least one resource manager manages a resource; storing the at least one resource manager in a resource manager registry; calculating a quantity of resource usage by resource managers generated for all applications and threads in the applications, and storing the calculated quantity of resource usage, wherein the calculating and storing of the quantity of resource usage are performed by each of the resource managers; and informing about the quantity of resource usage. - View Dependent Claims (2, 3)
-
-
4. A resource management system for managing resources related to a Java Virtual Machine (JVM) and an application executed in the JVM, the resource management system comprising:
-
a resource consumer management unit which generates a resource consumer for each of threads, wherein the resource consumer uses a resource; and a resource allocation policy manager which defines a resource identifier enabling an arbitrary resource to be uniquely identified, generates one or more resource manager for each resource identifier, wherein the at least one resource manager manages a resource, and sets a resource usage quota related to a resource identifier and a resource consumer, according to a request by the resource consumer management unit; wherein the resource manager calculates a quantity of resource usage by resource consumers generated for all applications and threads in the applications, stores the calculated quantity of resource usage, and informs about the quantity of resource usage. - View Dependent Claims (5, 6, 7, 8)
-
-
9. A method of managing resources when an application is generated in a containment framework comprising a resource management system related to a Java Virtual Machine (JVM) and an application executed in the JVM, the method comprising:
-
generating a unique identifier related to an application that is to be executed; storing the unique identifier; setting a resource allocation policy calling a resource identifier that is in an initial array position of a list in which resource identifiers uniquely identifying resources are arrayed; if the resource identifier exists in the initial array position, generating a resource manager related to the resource identifier that is a resource, setting a maximum usage value that is a quota related to the generated resource manager, registering the resource manager in a resource manager registry in which registered resource managers are stored according to types, and storing information on the generated resource manager and application identifier; and starting an application, and changing a state of the application according to a lifecycle of the application.
-
-
10. A method of managing resources of threads by treating all of the threads performed in a Java Virtual Machine (JVM) as resource consumers, the method comprising:
-
generating modified JVM threads related to the threads; wherein the generating the modified JVM threads comprises; calling a start( ) method of a certain thread object; requesting resource consumer object allocation for the certain thread object; generating a new resource consumer object according to the request, and obtaining an identifier of an application in which the certain thread object belongs; transferring information on the generated new resource consumer object and the application identifier, and requesting setting of a resource allocation policy for a corresponding resource consumer; and if the setting of the resource allocation policy for the corresponding resource consumer is ended, performing a run( ) function of the thread object and generating a native thread. - View Dependent Claims (11, 12, 13)
-
Specification