example of measurement object size with all referenced objects
just run Test2 main method, and then run getresults.sh script.
you have to configure JAVA_HOME to JDK with /bin folder included into the PATH system variable. Check if you can easily run jcmd and jhat command.