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.

Read MoreHow Does String Deduplication Work in Java?

Globalization hurting Native Languages? yCrash’s Financial Award

Globalization has positively impacted economies but poses challenges to native languages. English dominance in business is leading to a decline in local languages, with few children engaging with their native tongues outside school. Native language publishing is suffering, and aspiring writers are discouraged. Initiatives like yCrash's awards for Tamil writers seek to support them amid these challenges.

Read MoreGlobalization hurting Native Languages? yCrash’s Financial Award

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.

Read MoreSpring RestTemplate to WebClient causes OutOfMemoryError

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.

Read MoreJava NIO – OutOfMemoryError

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.

Read MoreyCrash Retreat 2023 – Memories of Udaipur trip

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.

Read MoreActions on OutOfMemoryErrors