JVM has provided helpful arguments to deal with OutOfMemoryError. In this article we would like to highlight those JVM arguments. It might come handy for you when you are troubleshooting OutOfMemoryError. Those JVM arguments are: 1. -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath 2. -XX:OnOutOfMemoryError... Continue Reading →
Troubleshooting OutOfMemoryError or any memory related problem is done in manually even in 2019. Troubleshooting and identifying the root cause of OutOfMemoryError can even be automated, by following below mentioned 3 steps: 1. Capture heap dump 2. Restart application 3.... Continue Reading →
What will happen behind the scene when you write a finalizer method? How the finalizer thread leads to OutOfMemoryError? How to find the root cause of finalizer thread stuck and how to troubleshoot it using http://fastthread.io/ Watch this video to know... Continue Reading →
There are 8 flavors of java.lang.OutOfMemoryError. In these 8 flavors java.lang.OutOfMemoryError: unable to create new native thread is one of the commonly occurring flavor. This type of 'OutOfMemoryError' is generated when an application isn’t able to create new threads. This error can surface... Continue Reading →
I was surprised to witness the Java Executor behavior – which caused “java.lang.OutOfMemoryError: unable to create new native thread” in our application. I would like to share my surprise (i.e. problem) and resolution to it.