Java's memory management has quite a steep learning curve when you are tasked with operating a Java Virtual Machine efficiently in production. We guide you through the waters of keeping applications up and running and what signals to look for to prevent crashes.
Thirty years of unbroken compatibility promises accumulated to quite a number of choices between different concepts in the Java Virtual Machine (JVM) runtime environment (Figure 1). Looking at some of those ideas today makes them appear to be a statement of Zeitgeist more than anything else, but you still have to choose the parameters for running your applications. Understanding how the JVM manages memory and how to observe the many metrics it exposes is essential to operating JVM applications in production.
Figure 1: Java Virtual Machine tuning is an art in and of itself. Over the last 30 years, many knobs have been added, but only a subset is crucial for operators to know.
To observe a JVM application's behavior and memory usage, operators need more than a few heap graphs: They need a reliable way to observe JVM memory usage, interpret it correctly, and spot failure patterns early enough to intervene. In the following sefctions, we dive into the details of JVM memory observation: which metrics exist, how to retrieve them, how to visualize them in Grafana, and what memory trends tend to precede JVM memory failures.
JVM Memory Areas Explained
The JVM
...
Use Express-Checkout link below to read the full article (PDF).
As Prometheus gave fire to mankind, the distributed monitoring software with the same name illuminates the admin's mind in native cloud environments, offering metrics for monitored systems and applications.
Prometheus is a centralized time series database with metrics, scraping, and alerting logic built in. We help you get started monitoring with Prometheus.
In native cloud environments, classic monitoring tools reach their limits when monitoring transient objects such as containers. Prometheus closes this gap, which Kubernetes complements, thanks to its conceptual similarity, simple structure, and far-reaching automation.