com.vmware.sqlfire.tools.sizer
Class SQLFireInstrumentation
java.lang.Object
com.vmware.sqlfire.tools.sizer.SQLFireInstrumentation
- All Implemented Interfaces:
- com.gemstone.bp.edu.emory.mathcs.backport.java.util.concurrent.ConcurrentSkipListMap.Sizer
public class SQLFireInstrumentation
- extends Object
- implements com.gemstone.bp.edu.emory.mathcs.backport.java.util.concurrent.ConcurrentSkipListMap.Sizer
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
premain
public static void premain(String agentArgs,
Instrumentation inst)
agentmain
public static void agentmain(String agentArgs,
Instrumentation inst)
sizeof
public long sizeof(Object objectToSize)
- Specified by:
sizeof in interface com.gemstone.bp.edu.emory.mathcs.backport.java.util.concurrent.ConcurrentSkipListMap.Sizer
attachVirtualMachineAgent
public void attachVirtualMachineAgent()
Copyright © 2010-2012 VMware, Inc. All rights reserved.