Search

GC easy – Universal Java GC Log Analyser

Tag

OutOfMemoryError

Simulating & troubleshooting OOMError in Kotlin

In this series of simulating and troubleshooting performance problems in Kotlin, let’s discuss how to simulate the ‘java.lang.OutOfMemoryError: Java Heap space’ problem. ‘java.lang.OutOfMemoryError: Java Heap space’ will be thrown by the application, when it generates more objects than the maximum configured heap size.

Continue reading “Simulating & troubleshooting OOMError in Kotlin”

Chaos Engineering – Metaspace OutOfMemoryError

JVM memory has following regions: 

Fig: JVM memory regions

a. Young Generation

b. Old Generation

c. Metaspace

d. Others region

Continue reading “Chaos Engineering – Metaspace OutOfMemoryError”

Troubleshooting Microservice’s OutOfMemoryError: Metaspace

Recently we confronted an interesting ‘java.lang.OutOfMemoryError: Metaspace’ problem in a Microservice application. This Microservice application will run smoothly for initial few hours, later it will start to throw java.lang.OutOfMemoryError: Metaspace. In this post let me share the steps we pursued to troubleshoot this problem.

Continue reading “Troubleshooting Microservice’s OutOfMemoryError: Metaspace”

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

When we launch applications, we specify the initial memory size and maximum memory size. For the applications that run on JVM (Java Virtual Machine), initial and maximum memory size is specified through ‘-Xms’ and ‘-Xmx’ arguments. If Java applications are running on containers, it’s specified through ‘-XX: InitialRAMPercentage’ and ‘-XX: MaxRAMPercentage’ arguments. Most enterprises set the initial memory size to a lower value than the maximum memory size. As opposed to this commonly accepted practice, setting the initial memory size the same as the maximum memory size has certain ‘cool’ advantages. Let’s discuss them in this post.

Continue reading “Benefits of setting initial and maximum memory size to the same value”

Memory leak due to improper exception handling

In this post let’s discuss an interesting memory problem we confronted in the production environment and how we went about solving it. This application would take traffic for a few hours after that it would become unresponsive. It wasn’t clear what was causing the unresponsiveness in the application.

Continue reading “Memory leak due to improper exception handling”

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

JAX – Online conference is the meeting place for all Java and software architecture enthusiasts! This year also, they have conducted an online conference to exchange knowledge and ideas from speakers all over the world.

Continue reading “Let’s crash the applications! – W-JAX 2021”

OutOfMemoryError: Kill process or sacrifice child – causes & solutions

There are different flavors of OutOfMemoryError. One of the flavours of OutOfMemoryError is ‘Kill Process or sacrifice child’. This post discusses what triggers this ‘Kill Process or sacrifice child’ OutOfMemoryError and potential solutions to diagnose this problem.

Continue reading “OutOfMemoryError: Kill process or sacrifice child – causes & solutions”

Troubleshooting OutOfMemoryError – Heap dump, Eclipse MAT

Learn how to troubleshoot OutOfMemoryError using the Eclipse MAT tool. You will learn best practices, cool tips & tricks to debug memory problems effectively. Watch this video to know more!

Continue reading “Troubleshooting OutOfMemoryError – Heap dump, Eclipse MAT”

Buggy App – Simulate performance problems

Buggy App is a simple java application that simulates different performance problems like Memory Leak, OutOfMemoryError, CPU spike, thread leak, StackOverflowError, deadlock, unresponsiveness, …

Continue reading “Buggy App – Simulate performance problems”

Powered by WordPress.com.

Up ↑