What happens behind the scene when a java program is executed? In which regions objects are created? When objects become eligible for garbage collection? Where are threads stored? What is the difference between Stack and Heap? Watch this video to know more.
Continue reading “How Java program executed? – Heap, threads, stack, GC”Java threads – may not be memory effecient?
Java applications tend to contain hundreds (sometimes thousands) of threads. The majority of these threads are in WAITING, TIMED_WAITING (i.e., dormant) state, while only a small portion of the threads are actively executing lines of code. So, we were curious to know whether dormant threads consume less memory than active threads.
To figure out an answer to this question, we conducted a small study. Our findings were interesting, thus sharing with you.
Continue reading “Java threads – may not be memory effecient?”What is GC Log, thread dump and Heapdump?
Java Virtual Machine (JVM) generates 3 critical artifacts that are useful for optimizing the performance and troubleshooting production problems. Those artifacts are:
Continue reading “What is GC Log, thread dump and Heapdump?”Health Check Status Page
Debug/Diagnostic information about the application and JVM instance is published in the health check status page. In the health check status page, the following information is printed in the JSON format:
Continue reading “Health Check Status Page”MEMORY WASTED BY SPRING BOOT APPLICATION
One of the widely wasted resources in the world today is: Memory. Due to inefficient programming, surprising (sometimes ‘shocking’) amount of memory is wasted. We see this pattern repeated in several enterprise applications. To prove this case, we conducted a small study. We analyzed the famous spring boot pet clinic application to see how much memory it is wasting. This application has been designed by the community to show how the spring application framework can be used to build simple but powerful database-oriented applications.
Continue reading “MEMORY WASTED BY SPRING BOOT APPLICATION”