Systems and methods for cache and pool initialization on demand
First Claim
1. A system to support cache initialization on demand, comprising:
- a cache capable of storing in memory one or more objects of each of one or more classes defined by an object-oriented programming language; and
a cache control component capable of initializing the cache on demand at runtime to the initial condition before a class in the one or more classes is deployed by removing one or more idle objects of the class from the cache.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides users and processes with various features to control the memory usage by a cache and pool dynamically at runtime. The cache and pool can be initialized on demand to remove idle objects of classes from them without the server being restarted. When the cache and pool reach their maximum sizes, idle objects in them may be removed to make room for newly active objects using various strategies in batches, where the schedule (periodicity), size and processing time of each batch can be dynamically adjusted. When a newly created object is being added to a full cache where each object is enrolled in a transaction, one or more active objects may be passivated from the cache based on various criteria to make room for the new instance to be added. Various features of the cache and pool can be defined in a configuration file. This description is not intended to be a complete description of, or limit the scope of, the invention. Other features, aspects, and objects of the invention can be obtained from a review of the specification, the figures, and the claims.
-
Citations
43 Claims
-
1. A system to support cache initialization on demand, comprising:
-
a cache capable of storing in memory one or more objects of each of one or more classes defined by an object-oriented programming language; and
a cache control component capable of initializing the cache on demand at runtime to the initial condition before a class in the one or more classes is deployed by removing one or more idle objects of the class from the cache. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system to support cache initialization on demand, comprising:
-
a cache capable of storing in memory one or more instances of each of one or more EJB types; and
a cache control component capable of initializing the cache on demand at runtime to the initial condition before an EJB type in the one or more EJB types is deployed by removing one or more idle instances of the EJB type from the cache.
-
-
9. A system to support pool initialization on demand, comprising:
-
a pool capable of storing in memory one or more objects of each of one or more classes; and
a pool control component capable of initializing the pool on demand at runtime to the initial condition before a class in the one or more classes is deployed by removing one or more idle objects of the class from the pool until one or more criteria are met. - View Dependent Claims (10, 11, 12, 13)
-
-
14. A system to support pool initialization on demand, comprising:
-
a pool capable of storing in memory one or more instances of each of one or more EJB types; and
a pool control component capable of initializing the pool on demand at runtime to the initial condition before an EJB type in the one or more EJB types is deployed by removing one or more idle instances of the EJB type from the pool until one or more criteria are met. - View Dependent Claims (15)
-
-
16. A method to support cache initialization on demand, comprising:
-
storing in memory one or more objects of each of one or more classes defined by an object-oriented programming language via a cache; and
initializing the cache on demand at runtime to the initial condition before a class in the one or more classes is deployed by removing one or more idle objects of the class from the cache. - View Dependent Claims (17, 18, 19)
-
-
20. A method to support cache initialization on demand, comprising:
-
storing in memory one or more instances of each of one or more EJB types via a cache; and
initializing the cache on demand at runtime to the initial condition before an EJB type in the one or more EJB types is deployed by removing one or more idle instances of the EJB type from the cache.
-
-
21. A method to support pool initialization on demand, comprising:
-
storing in memory one or more objects of each of one or more classes via a pool; and
initializing the pool on demand at runtime to the initial condition before a class in the one or more classes is deployed by removing one or more idle objects of the class from the pool until one or more criteria are met. - View Dependent Claims (22, 23)
-
-
24. A method to support pool initialization on demand, comprising:
-
storing in memory one or more instances of each of one or more EJB types via a pool; and
initializing the pool on demand at runtime to the initial condition before an EJB type in the one or more EJB types is deployed by removing one or more idle instances of the EJB type from the pool until one or more criteria are met. - View Dependent Claims (25)
-
-
26. A machine readable medium having instructions stored thereon that when executed by a processor cause a system to:
-
store in memory one or more objects of each of one or more classes defined by an object-oriented programming language via a cache; and
initialize the cache on demand at runtime to the initial condition before a class in the one or more classes is deployed by removing one or more idle objects of the class from the cache. - View Dependent Claims (27, 28, 29)
-
-
30. A machine readable medium having instructions stored thereon that when executed by a processor cause a system to:
-
store in memory one or more instances of each of one or more EJB types via a cache; and
initialize the cache on demand at runtime to the initial condition before an EJB type in the one or more EJB types is deployed by removing one or more idle instances of the EJB type from the cache.
-
-
31. A machine readable medium having instructions stored thereon that when executed by a processor cause a system to:
-
store in memory one or more objects of each of one or more classes via a pool; and
initialize the pool on demand at runtime to the initial condition before a class in the one or more classes is deployed by removing one or more idle objects of the class from the pool until one or more criteria are met. - View Dependent Claims (32, 33)
-
-
34. A machine readable medium having instructions stored thereon that when executed by a processor cause a system to:
-
store in memory one or more instances of each of one or more EJB types via a pool; and
initialize the pool on demand at runtime to the initial condition before an EJB type in the one or more EJB types is deployed by removing one or more idle instances of the EJB type from the pool until one or more criteria are met. - View Dependent Claims (35)
-
-
36. A system to support cache initialization on demand, comprising:
-
means for storing in memory one or more objects of each of one or more classes defined by an object-oriented programming language via a cache; and
means for initializing the cache on demand at runtime to the initial condition before a class in the one or more classes is deployed by removing one or more idle objects of the class from the cache.
-
-
37. A system to support cache initialization on demand, comprising:
-
means for storing in memory one or more instances of each of one or more EJB types via a cache; and
means for initializing the cache on demand at runtime to the initial condition before an EJB type in the one or more EJB types is deployed by removing one or more idle instances of the EJB type from the cache.
-
-
38. A system to support pool initialization on demand, comprising:
-
means for storing in memory one or more objects of each of one or more classes via a pool; and
means for initializing the pool on demand at runtime to the initial condition before a class in the one or more classes is deployed by removing one or more idle objects of the class from the pool until one or more criteria are met.
-
-
39. A system to support pool initialization on demand, comprising:
-
means for storing in memory one or more instances of each of one or more EJB types via a pool; and
means for initializing the pool on demand at runtime to the initial condition before an EJB type in the one or more EJB types is deployed by removing one or more idle instances of the EJB type from the pool until one or more criteria are met.
-
-
40. A computer data signal embodied in a transmission medium, comprising:
-
a code segment including instructions to store in memory one or more objects of each of one or more classes defined by an object-oriented programming language via a cache; and
a code segment including instructions to initialize the cache on demand at runtime to the initial condition before a class in the one or more classes is deployed by removing one or more idle objects of the class from the cache.
-
-
41. A computer data signal embodied in a transmission medium, comprising:
-
a code segment including instructions to store in memory one or more instances of each of one or more EJB types via a cache; and
a code segment including instructions to initialize the cache on demand at runtime to the initial condition before an EJB type in the one or more EJB types is deployed by removing one or more idle instances of the EJB type from the cache.
-
-
42. A computer data signal embodied in a transmission medium, comprising:
-
a code segment including instructions to store in memory one or more objects of each of one or more classes via a pool; and
a code segment including instructions to initialize the pool on demand at runtime to the initial condition before a class in the one or more classes is deployed by removing one or more idle objects of the class from the pool until one or more criteria are met.
-
-
43. A computer data signal embodied in a transmission medium, comprising:
-
a code segment including instructions to store in memory one or more instances of each of one or more EJB types via a pool; and
a code segment including instructions to initialize the pool on demand at runtime to the initial condition before an EJB type in the one or more EJB types is deployed by removing one or more idle instances of the EJB type from the pool until one or more criteria are met.
-
Specification