JVM getObjectSize example

Viewed 6387

I have some trouble on getting the size of an object in JVM. JDK 5 offer an interface Instrumentation to calculate through premain() function, but I do not know how to use it.

Can anybody help me?

4 Answers
Related