Instrumentation
This class provides the services required to detect code in the Java programming language. Detection is the addition of bytecode to the method to collect data used by various tools. Because the changes are completely added, these tools do not modify the state or behavior of the application. Examples of this harmless tool include mirror proxies, parsers, overlay analyzers, and event loggers.
http://www.iteye.com/problems/31779http://www.jroller.com/maxim/entry/again_about_determining_size_ofhttp:// docs.oracle.com/javase/6/docs/api/java/lang/instrument/instrumentation.html
java-javaagent: Sizeofag.jar <your main class> java-javaagent:sizeofag.jar Test http://blog.csdn.net/ykdsg/article/details/ 12080071http://blog.csdn.net/qyongkang/article/details/7799605 This is a series
Java objects Occupy memory view and JVM level method modifications, etc.