Virtual Threads – A Definite Advantage

Virtual Threads in Java, introduced in version 21, significantly enhance multi-threaded applications by reducing thread management overhead. This article explores their advantages over traditional platform threads through experimentation involving one million threads. Virtual Threads operate efficiently within heap memory, preventing OutOfMemoryError, and allow easier application scalability and performance improvements.

Java Collection Overhead

The Java Virtual Machine enables Java applications to be platform-independent while optimizing performance. One crucial component to understand, when considering performance, especially memory utilization, is how the Java Collections Framework, specifically the ArrayList, handles size and capacity. In this article, we will concentrate on the overhead caused by lists that contain two or three elements.... Continue Reading →

How to reduce CPU consumption caused by Garbage Collection?

Modern programming languages offer automatic garbage collection, which simplifies memory management but can lead to increased CPU consumption and higher cloud hosting costs. This article outlines five strategies for developers to mitigate these issues: analyzing GC logs, switching GC algorithms, minimizing object creation, adjusting heap size, and scaling instances. Each approach aims to optimize application performance and reduce resource expenses.

Up ↑