Diagnostics With Heap Dumps

Heap dumps are typically used to diagnose memory issues, such as memory leaks. That is not the only thing they are useful for though. Reports Most obviously, we can see what kinds of reports are offered right away. I’m using Eclipse Memory Analyzer Tool here. Yourkit is also a great tool for analyzing heap dumps. … Read more

Java Memory Settings in Docker

I have not yet been able to find any correct example of setting Java memory settings when running in Docker containers.  There are numerous examples, yet they are all wrong. Wrong Example 1: Setting Nothing By default, Java doesn’t look at the cgroups restrictions that Docker uses for resource isolation.  So, if max heap is … Read more