Eclipse MAT (Memory Analyzer Tool) is a powerful tool to analyze heap dumps. It comes quite handy when you are trying to debug memory related problems. In Eclipse MAT two types of object sizes are reported:
Continue reading “SHALLOW HEAP, RETAINED HEAP”HOW MUCH MEMORY IS MY APPLICATION WASTING?
In early 1970s 1 MB was costing 1 million $. Now 1 mb is costing fraction of that cost. There is no comparison. This is one of the reasons why engineers and enterprises don’t worry about memory any more. 1 million $ in 1970s might be equivalent of several millions of dollars’ worth today. Thus, back in the day’s memory was treated so preciously. This preciousness has been vividly described in the book ‘Idea Man’ – autobiography of Paul Allen (Microsoft Co-founder). Paul Allen talks about the challenge he and Bill Gates faced in writing BASIC programming language (Microsoft’s very first product) under 4 KB.
Continue reading “HOW MUCH MEMORY IS MY APPLICATION WASTING?”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.
Continue reading “HOW TO DIAGNOSE OUTOFMEMORYERROR IN ANDROID?”HOW TO CAPTURE HEAP DUMP FROM ANDROID APP? – 3 OPTIONS
Heap Dumps are vital artifacts to diagnose memory-related problems such as memory leaks, Garbage Collection problems, and java.lang.OutOfMemoryError. Continue reading “HOW TO CAPTURE HEAP DUMP FROM ANDROID APP? – 3 OPTIONS”