How to Fix Java.lang.OutOfMemoryError: Java heap space Error

The article discusses the nine types of java.lang.OutOfMemoryError in Java, emphasizing the common 'Java heap space' error caused by memory overflow. It outlines causes, such as increased traffic and memory leaks, and proposes solutions, including memory leak fixes and heap size adjustments. Tools for diagnosing and troubleshooting these issues are also highlighted.

How to Solve OutOfMemoryError: Permgen Space

This post looks at the 'java.lang.OutOfMemoryError: Permgen space' issue, explaining its causes, solutions, and how to diagnose it. It discusses JVM memory regions, dynamic class creation, potential fixes, and troubleshooting with heap dumps. The goal is to help readers fully understand this common Java memory error.

How to Solve OutOfMemoryError: Metaspace

The post aims to help readers understand important Java memory management topics, with a special focus on OutOfMemoryError: Metaspace. It covers the causes and solutions for these errors, explains JVM memory regions, provides a sample program, and outlines troubleshooting steps and heap dump analysis.

Optimizing the Capacity of a HashMap

Many of us know that allocating more memory than we need may negatively affect the performance of our application. Thus, creating the Lists using a constructor that takes a capacity may make a significant difference. However, this optimization step might not be so straightforward while using Maps. In this article, we’ll learn how to identify... Continue Reading →

Virtual Threads – A Definite Advantage

It's great to explore the world of Virtual Threads, a powerful feature in Java that promises to revolutionize multi-threaded applications. In this article, we'll delve into how Virtual Threads can enhance your application's performance and scalability, all while keeping thread management overhead very minimal. Let's embark on this journey to harness the full potential of... Continue Reading →

Java – Missing font – Crashing App!

Eclipse MAT,  Heaphero are all popular java tools to analyze large size heap dumps. Recently we ran in to an interesting problem when trying to analyze a heap dump file in Eclipse MAT. Tool was crashing because of missing font 😊. We thought we will share with you what we found out. ArrayIndexOutOfBoundsException  in CompositeStrike.getStrikeForSlot()... Continue Reading →

HeapHero Web – Remote Location

In HeapHero enterprise edition web tool we have introduced a new feature called Remote Location. Using this feature now you can pass the http(s) URL location of your heap dump in the request. Say suppose, you have stored your heap dump files in a remote location like AWS S3 bucket. In those cases, if you... Continue Reading →

Up ↑