Search

GC easy – Universal Java GC Log Analyser

Category

Java Memory Leak

Java FinOps: Reducing Cloud Costs with Java 25 Compact Headers 

Java 25 introduces Compact Object Headers through JEP 519, reducing object header size from 12 bytes to 8 bytes. This change enhances memory efficiency, leading to lower cloud costs by decreasing heap space usage and garbage collection frequency. As a result, applications experience better performance with reduced memory pressure.

Memory Problems on Dell Boomi Core Servers

The Dell Boomi Core servers faced a performance outage due to a memory leak, identified through yCrash's root cause analysis. An investigation revealed that a SQL query in scheduled jobs caused excessive data load, resulting in high memory pressure. Correcting the query restored normal performance and underscored the need for precise monitoring.

Problems With Finalizer

The finalize method in Java, deprecated since Java 9, poses performance concerns by delaying garbage collection and increasing memory usage. Two-step cycles for objects with finalizers, like FinalizeableBigObject, slow down processes and can lead to OutOfMemoryErrors. Ultimately, efficient resource management should prioritize try-with-resources over finalizers to improve performance.

Simulation und Fehlerbehebung von Deadlocks in Kotlin – Bahnbrechende Deadlocks

We appreciate Entwinkler.de JavaMagazin for translating and publishing our article ‘Simulating and troubleshooting deadlocks in Kotlin’ in German. It’s a privilege to see our work featured in a print magazine, specifically the December 2022 issue, under the title ‘Simulation und Fehlerbehebung von Deadlocks in Kotlin’.

Simulating & troubleshooting OOMError in Kotlin

This post discusses simulating and troubleshooting the 'java.lang.OutOfMemoryError: Java Heap space' in Kotlin applications. It provides a sample program that continually adds entries to a HashMap, causing the memory error. It also outlines manual and automated approaches to diagnose and fix the issue, using heap dumps and tools like yCrash for analysis.

Simulating & troubleshooting StackOverflowError in Scala

This article explains how to simulate a StackOverflowError in Scala through recursive method calls in a sample program. It demonstrates diagnosis methods, including manual inspection of logs and using the yCrash tool for automated analysis. The yCrash report identifies the source of the error by analyzing thread stack lengths and infinite loops.

Chaos Engineering – Metaspace OutOfMemoryError

The JVM memory consists of several regions, including the Metaspace, which stores metadata for classes and methods. An 'OutOfMemoryError: Metaspace' indicates that this area is saturated. This article discusses how to simulate this error and addresses its causes, including inadequate Metaspace allocation and memory leaks.

How to Troubleshoot Microservices Metaspace OutOfMemoryError?

The post discusses troubleshooting a 'java.lang.OutOfMemoryError: Metaspace' issue in a microservice application, which works initially but fails after a few hours. It details identifying memory leaks in the Metaspace region through garbage collection logs and heap dump analysis, ultimately resolving the issue by upgrading a problematic third-party library.

Memory leak due to improper exception handling

The post discusses a memory leak issue in a Java application running on AWS that caused unresponsiveness after a few hours. Using the yCrash tool, the problem was traced to an anonymous inner class that failed to stop a thread under certain exceptions. The solution involved moving the thread termination code to a 'finally' block, resolving the issue.

Up ↑