Over the years many Java developers have asked, "How much memory
does a Java object consume?" In this Java Tip,
Vladimir Roubtsov explains problems with previous solutions. In
addition, based on his experience exploring memory usage, he offers
a few tips on working around some Java inefficiencies.
A. Wöß, C. Wirth, D. Bonetta, C. Seaton, C. Humer, and H. Mössenböck. Proceedings of the 2014 International Conference on Principles and Practices of Programming on the Java Platform: Virtual Machines, Languages, and Tools, page 133--144. ACM, (2014)