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. Benefits include improved availability, performance, and application startup time while maintaining cost-effectiveness in cloud environments. It highlights real-world tests showing better response times and reduced garbage collection pause times with this configuration.

Confoo 2022 – LET’S CRASH OUR APPLICATIONS!

ConFoo Montreal is a multi-technology conference where global speakers share knowledge. Architect Ram Lakshmanan presented on "LET'S CRASH OUR APPLICATIONS!" covering issues like memory leaks, CPU spikes, and deadlocks. Understanding these triggers aims to simplify diagnosis and resolution of application performance problems.

JAX 2021 – LET’S CRASH THE APPLICATIONS!

JAX – Online conference is an event for Java and software architecture enthusiasts. This year, it featured a presentation titled “Let's crash the applications!” by an architect, focusing on issues like memory leaks, thread leaks, and CPU spikes. Understanding these problems aids in diagnosis and solutions.

OutOfMemoryError: Kill process or sacrifice child – causes & solutions

The 'Kill Process or sacrifice child' OutOfMemoryError occurs when memory usage exceeds available RAM, prompting the OS to terminate certain processes. A simulation using an AWS EC2 instance demonstrated this error, where a Java application and a chaotic BuggyApp exceeded memory limits. Potential solutions include increasing RAM, reducing processes, and optimizing memory use.

Chaos Engineering – Thread Leak

This article discusses simulating thread leaks in applications, leading to the 'java.lang.OutOfMemoryError: unable to create new native thread' error. It demonstrates a sample program that creates infinite threads, preventing them from exiting. The article also outlines manual and automated approaches to diagnose and analyze these memory issues effectively.

Memory Leak in Java executor

The article discusses an unexpected memory leak issue caused by Java's ThreadPoolExecutor, which results in "java.lang.OutOfMemoryError". Despite executing 10 jobs with 5 worker threads, the threads remain in memory instead of being garbage collected. The solution is to call the executor's shutdown() method to properly terminate the threads after job execution.

Chaos Engineering – Simulating OutOfMemoryError

This article explores the simulation of the 'java.lang.OutOfMemoryError: Java Heap space' in Java applications. It presents a sample program that continuously adds records to a HashMap until the heap size is exceeded, causing the error. The post discusses both manual and automated approaches to troubleshoot this issue effectively.

Buggy App – Simulate performance problems

Buggy App is a Java application designed to simulate various performance problems like memory leaks, CPU spikes, and deadlocks. It allows users to test their application’s resilience and performance monitoring tools under stress. Users can launch Buggy App with specific arguments to replicate issues such as high memory usage or network lag effectively.