Tag: java

  1. Analyzing java memory usage in a Docker container

    A few weeks ago I faced an interesting problem trying to analyze a memory consumption in my Java application (Spring Boot + Infinispan) running under Docker. The Xmx parameter was set to 256m, but the Docker monitoring tool displayed almost two times more used memory. Below we will try to understand…

    on java memory linux docker

  2. Unit tests and Class loaders

    Let's assume that we have a third-party library. This library is written with a lot of errors. The most terrible of them is an possible exception, which can be thrown in a static constructor of one of key library's classes :( Of cause, it is very sad... but we need to…

    on java