Patent ID: 8082415
Filing Date: 2011-12-20
Classification: G06F

Abstract:
1. A computer implemented process for determining the total size of an in-memory heap-based object cache, that does not require serialization of every object within the cache, the computer implemented process comprising: defining a plurality of top class types, wherein each class type represents a total number of instances of a class and wherein a class is designated a top class if a class number exceeds a user defined threshold, the class number being calculated by dividing the number of instances of the class by the total number of instances of all classes, and the user defined threshold being selected to identify a class having a class number that exceeds the user defined threshold of a top class; defining a plurality of non top classes, each non top class being excluded from the plurality of top class types; loading a plurality of objects into the in-memory heap-based object cache; sampling a portion of the plurality of objects in accordance with a user-defined criteria; determining a sample size average for objects in each type of top class and each non top class, whether each of the plurality of objects are to be sampled; calculating a size of each type of top class by multiplying a number of objects within the particular type of top class by the sample size average for that particular type of top class; calculating a top class total size by adding together the size of each type of top class; calculating a non top class total size by multiplying a number of objects within the non top classes by the sample size average for non top classes; and calculating the total size of the in-memory heap-based object cache, by adding the top class total size and non top class total size, wherein the total size of the cache comprises both the sampled and un-sampled objects within the cache.