Author: piotrold

  • JVM remote profiling. JFR vs JMX

    Introduction When you want to profile a JVM application running remotely on a Docker or Linux server you generally have two options. You can connect to it using some popular profilers like Visualvm (which under the hood uses JMX) or you can manually collect information about running the Java process using JFR technology. The result…

  • Escaping the if-else nightmare in Java

    Introduction As a programmer, eventually, you will have to write programs that require multi-if-else statements. When you will start writing such code you will quickly notice that big if-else blocks of code are not really readable and maintainable. In this article, I will analyze this problem based on the hypothetical problem we are trying to…