Search

GC easy – Universal Java GC Log Analyser

Tag

OutOfMemoryError

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.

Benefits of setting initial and maximum memory size to the same value

This post discusses the advantages of setting the initial heap size equal to the maximum heap size for Java applications running on JVM. It highlights benefits like improved application availability, enhanced performance, reduced startup time, and unchanged computing costs. The article argues that this practice is particularly beneficial for enterprise applications.

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.

Let’s crash the applications! – W-JAX 2021

The JAX Online Conference serves Java and software architecture enthusiasts, featuring global speakers. This year’s highlight is a session by an architect on “Let’s crash the applications!” exploring issues like memory leaks and deadlocks through code snippets. Understanding these triggers may ease diagnosis and resolution of such problems.

OutOfMemoryError: Kill process or sacrifice child – causes & solutions

The 'Kill Process or sacrifice child' OutOfMemoryError occurs when processes exceed available RAM, prompting the Operating System to terminate certain processes to safeguard others. This often happens in containerized environments. Solutions include increasing RAM, minimizing unnecessary processes, and optimizing memory usage with tools like yCrash.

Troubleshooting OutOfMemoryError – Heap dump, Eclipse MAT

The content discusses troubleshooting OutOfMemoryError using the Eclipse MAT tool. It highlights best practices and tips for effectively debugging memory issues. A video tutorial is available for a more in-depth understanding.

Buggy App – Simulate performance problems

Buggy App is a Java application designed to simulate various performance issues such as memory leaks, CPU spikes, and deadlocks. It helps developers assess the impact of such problems on their applications or monitoring tools. The application requires Java 8 or higher and provides specific commands to simulate each issue.

7 JVM arguments of Highly Effective Applications

The article discusses key JVM arguments enhancing memory management and application performance, focusing on seven important arguments, including -Xmx, -XX:MaxMetaspaceSize, GC algorithms, GC logging, and memory-related settings. Proper configuration of these arguments is essential for optimizing garbage collection, preventing OutOfMemoryError, and ensuring application reliability in various environments.

Up ↑