Actions on OutOfMemoryErrors

OutOfMemoryErrors in applications occur when memory allocation fails. This article discusses effective practices for analyzing such errors, including automatic heap dumps and using JVM parameters. It highlights script usage for automatic actions upon encountering errors and emphasizes the importance of proactive monitoring and automated incident reporting to reduce application downtime.

Java Collection Overhead

The Java Virtual Machine enables Java applications to be platform-independent while optimizing performance. One crucial component to understand, when considering performance, especially memory utilization, is how the Java Collections Framework, specifically the ArrayList, handles size and capacity. In this article, we will concentrate on the overhead caused by lists that contain two or three elements.... Continue Reading →

Best practices: Java memory arguments for Containers

When migrating Java applications to containers, configuring the Java heap size is essential. The article discusses three JVM options: -XX:MaxRAMFraction, -XX:MaxRAMPercentage, and -Xmx, outlining their usage, limitations, and best practices. The author suggests preferring -Xmx for precise heap configurations and ensuring adequate container memory allocation.

Up ↑