OUTOFMEMORYERROR RELATED JVM ARGUMENTS

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: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath -XX:OnOutOfMemoryError -XX:+ExitOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError Let’s discuss these JVM arguments in detail in this article. 1. -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath Heap dump... Continue Reading →

GC LOG ANALYSIS COMPLIMENTS APM

Recently a smart engineering manager from a major financial institution asked the question: ‘We are already using APM tool (AppDynamics), why do we need to use GC log analysis tool (GCeasy)?’. Fair question that deserves detailed answer. There are angles to this question: (a). Purpose (b). Metrics Let’s review them in this article. (a). Purpose... Continue Reading →

DISAPPOINTING STORY ON MEMORY OPTIMIZATION

Not all stories need to be success stories. Reality is also not like that. We would like to share a true, disappointing story (but a phenomenal learning experience) that may be beneficial to you. This is a story about optimizing memory utilization of a web application. This application was configured with a lot of memory... Continue Reading →

MICROMETRICS FOR CI/CD PIPELINE

Continuous Integration/Continuous Deployment (CI/CD) has become central to software development. To ensure high-quality software releases smoke tests, regression tests, performance tests, static code analysis & security scans are run in CI/CD pipeline. Despite of all these quality measures, still OutOfMemoryError, CPU spikes, unresponsiveness, degradation in response time are surfacing in production environment. These sort of... Continue Reading →

HOW TO DIAGNOSE OUTOFMEMORYERROR IN ANDROID?

Diagnosing OutOfMemoryError in Android apps can become a tricky, tedious job. Here, we would like to show you an easy technique to troubleshoot OutOfMemoryError in Android apps. BuggyApp To facilitate this exercise, we built a simple android application which would trigger OutOfMemoryError. We named this app 'BuggyApp'😊. Do you like the name? 😊. This app... Continue Reading →

HOW TO DIAGNOSE MEMORY LEAKS?

Memory leaks don't have to be hard/scary/tedious problem to solve if we can follow below mentioned 3 simple steps: Step 1: Capture baseline heap dump You need to capture heap dump when it’s in the healthy state. Start your application. Let it take real traffic for 10 minutes. At this point, capture heap dump. Heap... Continue Reading →

HOW TO CAPTURE JAVA HEAP DUMPS? – 8 OPTIONS

Heap Dumps are vital artifacts to diagnose memory-related problems such as slow memory leaks, Garbage Collection problems, and java.lang.OutOfMemoryError.They are also vital artifacts to optimize the memory consumption. There are great tools like Eclipse MAT and Heap Hero to analyze heap dumps. However, you need to provide these tools with heap dumps captured in the... Continue Reading →

Up ↑