SQLFire 1.1

com.vmware.sqlfire.tools.sizer
Class ObjectSizer

java.lang.Object
  extended by 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.


Field Summary
static String logPrefix
           
static String sizerHints
           
static long SZ_REF
           
 
Method Summary
static void done()
           
static long getConsumedMemory()
           
static void getTargetContainers(ArrayList<com.vmware.sqlfire.internal.engine.store.GemFireContainer> targetRegions)
           
static void initialize()
           
static void logSizes(LinkedHashMap<String,long[]> sizes)
           
static void setQueryHints(com.vmware.sqlfire.internal.iapi.services.io.FormatableHashtable queryHints)
           
static LinkedHashMap<String,long[]> size(com.vmware.sqlfire.internal.engine.store.GemFireContainer c, String delimiter)
           
static long sizeOfObject(Object root, com.vmware.sqlfire.tools.sizer.ObjectSizer.Exclusions exclusions)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logPrefix

public static final String logPrefix
See Also:
Constant Field Values

sizerHints

public static final String sizerHints
See Also:
Constant Field Values

SZ_REF

public static final long SZ_REF
Method Detail

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,
                                                String delimiter)
                                         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

SQLFire 1.1

Copyright © 2010-2013 VMware, Inc. All rights reserved.