Sizeof is perfect! Thanks.
Thank you for the useful tools. It's good to use in web application(JBoss). But I don't know how to use in a java application in Eclipse. It add th argument: -javaagent:<path to>/SizeOf.jar to Run Configuration. But a error shows "Unrecognized option: -javaagent". The famouse Exception(Instrumentation is null) will happen if I don't add the argumnet.I searched this error on google and this many forums, but I failed. Anybody help me? my email is email@example.com Thank you again!