Systems and methods for passivation of cached objects in transaction
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 21.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A system to support passivation of objects in transaction, comprising: a cache storing in memory one or more objects of each of one or more classes; and a cache control component performing instantiating a first object in the one or more objects, wherein the first object is enrolled in a first transaction; passivating a second object in the one or more objects from the cache if one or more criteria are met, wherein the second object is enrolled in a second transaction; and inserting the first object into the cache.
- Claim 2Depends on #1
The system according to claim 1 , wherein: each of the one or more classes is defined by an object-oriented programming language, wherein the object-oriented programming language is Java® or C++.
- Claim 3Depends on #1
The system according to claim 1 , wherein: the class is one of an interface, a module, a Java® bean and an Enterpris
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗