Index: src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java =================================================================== --- src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java (revision 1357245) +++ src/main/java/org/apache/jackrabbit/core/persistence/bundle/AbstractBundlePersistenceManager.java (working copy) @@ -118,6 +118,14 @@ private static final NodePropBundle MISSING = new NodePropBundle(NodeId.randomId()); + /** + * The size estimate for the MISSING NodePropBundle. The sum of: + * - ConcurrentCache.E: 32 bytes + * - LinkedHashMap.Entry: 64 bytes + * - NodeId: 32 bytes + */ + private static final long MISSING_SIZE_ESTIMATE = 128; + /** the index for namespaces */ private StringIndex nsIndex; @@ -762,7 +770,7 @@ bundle.markOld(); bundles.put(id, bundle, bundle.getSize()); } else { - bundles.put(id, MISSING, 16); + bundles.put(id, MISSING, MISSING_SIZE_ESTIMATE); } return bundle; } @@ -776,7 +784,7 @@ private void deleteBundle(NodePropBundle bundle) throws ItemStateException { destroyBundle(bundle); bundle.removeAllProperties(getBlobStore()); - bundles.put(bundle.getId(), MISSING, 16); + bundles.put(bundle.getId(), MISSING, MISSING_SIZE_ESTIMATE); } /**