com.vmware.sqlfire.tools.sizer
Class ObjectSizer
java.lang.Object
com.vmware.sqlfire.tools.sizer.ObjectSizer
public class ObjectSizer
- extends Object
This class helps in finding out memory footprint per Region and divides
memory usage between SQLFire, GemFire and java usages.
Optionally, it prints class inclusion sequence much like stack trace and per
member memory.
Indexes are accounted separately than regions.
logPrefix
public static final String logPrefix
- See Also:
- Constant Field Values
sizerHints
public static final String sizerHints
- See Also:
- Constant Field Values
initialize
public static void initialize()
setQueryHints
public static void setQueryHints(com.vmware.sqlfire.internal.iapi.services.io.FormatableHashtable queryHints)
getTargetContainers
public static void getTargetContainers(ArrayList<com.vmware.sqlfire.internal.engine.store.GemFireContainer> targetRegions)
logSizes
public static void logSizes(LinkedHashMap<String,long[]> sizes)
sizeOfObject
public static long sizeOfObject(Object root,
com.vmware.sqlfire.tools.sizer.ObjectSizer.Exclusions exclusions)
throws IllegalArgumentException,
IllegalAccessException,
InterruptedException
- Throws:
IllegalArgumentException
IllegalAccessException
InterruptedException
size
public static LinkedHashMap<String,long[]> size(com.vmware.sqlfire.internal.engine.store.GemFireContainer c)
throws IllegalArgumentException,
IllegalAccessException,
InterruptedException,
com.vmware.sqlfire.internal.iapi.error.StandardException
- Throws:
IllegalArgumentException
IllegalAccessException
InterruptedException
com.vmware.sqlfire.internal.iapi.error.StandardException
done
public static void done()
getConsumedMemory
public static long getConsumedMemory()
throws InterruptedException
- Throws:
InterruptedException
Copyright © 2010-2012 VMware, Inc. All rights reserved.