By Fabian Lange Strings consume a lot of memory in any application. Especially the char[] containing the individual UTF-16 characters is contributing to most of the memory consumption of a JVM by each character eating up two bytes. It is not uncommon to find 30% of the memory consumed by Strings, because not only are […]

Read more

By Fabian Lange In recent discussions, I noticed a confusion about the differences between measuring with Sampling and Instrumentation. I hear about which one should be better than others, but I think it is important to understand how they work. Some tools even ask to choose between those two directly at startup, like JProfiler 7 in the picture on the […]

Read more