SQLFire 1.1

com.vmware.sqlfire.tools.sizer
Class SQLFireInstrumentation

java.lang.Object
  extended by com.vmware.sqlfire.tools.sizer.SQLFireInstrumentation
All Implemented Interfaces:
com.gemstone.gemfire.internal.size.SingleObjectSizer

public final class SQLFireInstrumentation
extends Object
implements com.gemstone.gemfire.internal.size.SingleObjectSizer

Class that honors "-javaagent:.../lib/sqlfiretools.jar" It gets a handle to instrumentation agent for estimating object size in memory.
If any of the classes below is altered, please test it in following way as I am yet to find java agent instrumentation before starting VM in a DUnit, a hydra test will be required.

  • SQLFireInstrumentation
  • ObjectSizer

  • Second mechanism of instrumenting after JVM is launched doesn't works correctly in current version 1.6

    1. start locator
    2. start server with -javaagent:.../lib/sqlfire.jar
    3. start ij
    4. execute 'select * from sys.memoryanalytics"

    Since:
    1.6

    Method Summary
    static void agentmain(String agentArgs, Instrumentation inst)
               
     void attachVirtualMachineAgent()
               
    static SQLFireInstrumentation getInstance()
               
     boolean isAgentAttached()
               
    static void premain(String agentArgs, Instrumentation inst)
               
     long sizeof(Object objectToSize)
               
     
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Method Detail

    premain

    public static void premain(String agentArgs,
                               Instrumentation inst)

    agentmain

    public static void agentmain(String agentArgs,
                                 Instrumentation inst)

    isAgentAttached

    public boolean isAgentAttached()
    Specified by:
    isAgentAttached in interface com.gemstone.gemfire.internal.size.SingleObjectSizer

    sizeof

    public long sizeof(Object objectToSize)
    Specified by:
    sizeof in interface com.gemstone.gemfire.internal.size.SingleObjectSizer

    attachVirtualMachineAgent

    public void attachVirtualMachineAgent()

    getInstance

    public static SQLFireInstrumentation getInstance()

    SQLFire 1.1

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