Try OpenEdge Now
skip to main content
Startup Command and Parameter Reference
Startup Parameter Descriptions : Re-usable Objects Cache (-reusableObjects)
 

Re-usable Objects Cache (-reusableObjects)

Use Re-usable Objects Cache (-reusableObjects) to specify the number of deleted class objects that the AVM stores for later re-initialization.
Operating system and syntax
UNIX / Windows
-reusableObjects cache-size
Use with
Maximum value
Minimum value
Single-user default
Multi-user default
Client Session
2147483647
0
25
25
cache-size
Number of deleted class objects to store for later re-initialization.
This parameter can improve the performance of applications that use ABL classes. When a class object is deleted, either by the DELETE OBJECT statement or through garbage collection, the AVM caches the object. When the AVM instantiates the same class later, the stored object is re-initialized and removed from the cache. This re-use saves much of the overhead of instantiating a class.
Note: The cache only stores class-based objects. However, the cache does not store objects that do not have saved r-code, e.g., .NET classes, .NET-derived ABL classes, classes with static elements, classes with a DATASET definition, or session-compiled classes. Using the startup parameter to change the cache size has no effect on this behavior.
The cached class objects continue to hold some resources. You might want to modify the settings of DirectorySize (-D) and MaximumMemory (-mmax) to account for the number of cached objects. For more information on the re-use of objects, see the DELETE OBJECT statement in OpenEdge Development: ABL Reference and the section on object life-cycle in OpenEdge Development: Object-oriented Programming.