SQLFire 1.0.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
           
 
Method Summary
static void done()
           
static long getConsumedMemory()
           
static LinkedHashMap<String,long[]> size(com.vmware.sqlfire.internal.engine.store.GemFireContainer c)
           
static long size(Object root)
           
static void switchStackTrace(boolean on)
           
 
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
Method Detail

switchStackTrace

public static void switchStackTrace(boolean on)

done

public static void done()
                 throws InterruptedException
Throws:
InterruptedException

getConsumedMemory

public static long getConsumedMemory()
                              throws InterruptedException
Throws:
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

size

public static long size(Object root)
                 throws IllegalArgumentException,
                        IllegalAccessException,
                        InterruptedException
Throws:
IllegalArgumentException
IllegalAccessException
InterruptedException

SQLFire 1.0.1

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