Class AgentSizeOf

java.lang.Object
org.ehcache.sizeof.SizeOf
org.ehcache.sizeof.impl.AgentSizeOf

public class AgentSizeOf extends SizeOf
SizeOf implementation that relies on a Java agent to be loaded to do the measurement It will try to load the agent through the JDK6 Attach API if available All it's constructor do throw UnsupportedOperationException if the agent isn't present or couldn't be loaded dynamically Inspired by Dr. Heinz Kabutz's Java Specialist Newsletter Issue #142