Virtual Threads Performance in Spring Boot

This post examines configuring Virtual Threads in a Spring Boot application that calculates the Fibonacci sum for values starting from 10,000. Using JMeter, a load test with 1000 users reveals similar throughput and average response times for both virtual and native threads, highlighting virtual threads' advantage in lower thread usage without performance gain for CPU-intensive operations.

How Does String Deduplication Work in Java?

This article discusses improving application performance by optimizing String memory usage in Java. It explains String allocation methods, the benefits of String.intern(), and introduces String deduplication during garbage collection. The analysis highlights trade-offs between space and time efficiency, urging careful consideration before implementing optimizations based on specific application needs and metrics.

Ankita’s Bridal Shower – Surprise, Surprise!

Ankita's bridal shower, initially planned as an in-person event, transformed into a virtual celebration due to her absence. Team members coordinated surprises with her sister Arpita and fiancé Himansu. Despite delays, the event featured heartfelt messages, games, and a surprise cake delivery, making it a memorable day filled with joy and surprises.

Spring RestTemplate to WebClient causes OutOfMemoryError

Spring Boot's migration from RestTemplate to WebClient enhances performance via concurrency and non-blocking I/O. However, it led to OutOfMemoryError due to insufficient direct buffer memory. By analyzing the application with yCrash and increasing the maximum direct memory size, the issue was resolved, allowing successful image uploads without crashes.

Java NIO – OutOfMemoryError

Java NIO allows high-performance non-blocking I/O, enhancing concurrency and efficiency. However, running a Spring Boot application with Java 11 led to frequent 'OutOfMemoryError' issues. Upgrading to Java 17 and increasing Direct Buffer Memory allocation improved performance, allowing for significantly more connections before errors occurred. Solutions include optimizing memory size or upgrading Java versions.

Diagnosing Deadlock in Boomi

The content outlines the process of optimizing Boomi performance, focusing on setting up a testing environment using a Boomi Atom on MacBook Pro. It highlights the challenges of performance issues, particularly thread deadlocks in Java applications. The use of tools like yCrash for diagnostics and monitoring is emphasized for identifying and resolving bottlenecks.

yCrash Retreat 2023 – Memories of Udaipur trip

The article reflects on a memorable yCrash retreat in Udaipur, emphasizing the team's experiences over three days. Highlights include surprise celebrations, sightseeing, cultural immersion, and shared meals. Challenges were met with resilience, leading to laughter and bonding among team members, solidifying connections as they reminisced about their adventures before their departure.

Optimizing the Capacity of a HashMap

This article discusses how to optimize memory allocation in HashMaps by understanding the differences between allocation and mapping capacity. It emphasizes the importance of choosing the correct initial capacity, ideally a power of two, to mitigate space overhead and prevent performance degradation. Several formulas for calculating proper capacity are reviewed.

Actions on OutOfMemoryErrors

OutOfMemoryErrors in applications occur when memory allocation fails. This article discusses effective practices for analyzing such errors, including automatic heap dumps and using JVM parameters. It highlights script usage for automatic actions upon encountering errors and emphasizes the importance of proactive monitoring and automated incident reporting to reduce application downtime.

Mahesh’s Surprise Party – A Night to Remember

The annual retreat in Udaipur turned into a memorable surprise celebration for Mahesh, our Lead Engineer, who is getting married soon. Despite challenges in planning due to virtual traditions and scheduling mishaps, the team successfully organized a touching Haldi ceremony and video tribute, leaving Mahesh pleasantly astonished and grateful for the heartfelt gestures.