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 →
Is today’s microservice more bloated than yesterday’s monolith?
I am slightly hesitant to write this post, as it might attract some criticism. Nevertheless, I told myself there is nothing wrong with sharing my point of view (even though it might not be well accepted). I would like to share my personal experience regarding yesterday's Monolithic and today's Microservice architecture in this post. Yesterday's... Continue Reading →
OutOfMemoryError: Kill process or sacrifice child – causes & solutions
There are different flavors of OutOfMemoryError. One of the flavours of OutOfMemoryError is 'Kill Process or sacrifice child'. This post discusses what triggers this 'Kill Process or sacrifice child' OutOfMemoryError and potential solutions to diagnose this problem. What triggers Out Of memory: Kill Process or sacrifice child? When processes in the host tend to consume... Continue Reading →
Chaos Engineering – Stackoverflow Error
In the series of chaos engineering articles, we have been learning to simulate various performance problems. In this post, let’s discuss how to simulate the ‘StackOverflow errors. StackOverflow error is a runtime error, which is thrown when a thread's stack size exceeds its allocated memory limit. Sample Program Here is a sample program from the... Continue Reading →
Shallow Heap vs Retained Heap
Eclipse MAT is a powerful tool to analyze heap dumps. It comes in handy when debugging OutOfMemoryError. Eclipse MAT reports two types of object size: 1) Shallow Heap 2) Retained Heap. This video explains the difference between them and how they are calculated. Watch this video to know more! Video https://youtu.be/Ns4Du2Qh91Y
Large or small heap size?
Do you want to run your application with a large heap size or small heap size? What is the right strategy? Which strategy is more expensive? Which is more performant? Watch this video to know more! Video https://youtu.be/sOyWpGs6QtI