Mar Java Mit Java Blog

Optimizing Solr Client Usage by Caching for Each Collection

Introduction When working with Apache Solr, especially in applications with multiple collections, it’s common to create a new Solr client instance for each connection. While this may seem straightforward, it can lead to performance...

Understanding Lua Scripts in Redis: Keys and Non-Key Values

Redis provides powerful scripting capabilities through Lua, enabling you to execute complex logic directly within the database. When working with Redis Cluster, it’s essential to understand how to properly pass keys and non-key values...

How To Solve OutOfMemoryError: Java Heap Space

Sample Program Generating ‘OutOfMemoryError: Java heap space’ To better understand java.lang.OutOfMemoryError: Java heap space, let’s try to simulate it. Let’s leverage BuggyApp,  a simple open-source chaos engineering project. BuggyApp can generate various sorts of performance problems...

Java Classloaders: A Deep Dive

Understanding the Basics Before delving into the complexities, let’s establish a foundation. Beyond the Basics Class Loader Lifecycle Custom Class Loaders