Search

GC easy – Universal Java GC Log Analyser

Author

GCeasy Team

GCeasy is a Universal GC Log Analyzer. Its the Industry's first machine learning guided Garbage collection log analysis tool. GCeasy has in-built intelligence to auto-detect problems in the JVM & Android GC logs and recommend solutions to it.

CMS DEPRECATED. NEXT STEPS?

The Concurrent Mark Sweep (CMS) GC algorithm is deprecated in JDK 9 to simplify the GC code base and promote faster development. Users can switch to G1 or Z GC algorithms for improved performance or continue with CMS if it meets their needs. Each application's requirements should guide GC selection and performance evaluation.

PAINTING GRAPHS IN ABSOLUTE TIMESTAMP FORMAT

GC logs may display timestamps in relative or absolute formats. GCeasy adapts the x-axis of graphs based on the log format. Most engineers prefer absolute formats, which can be achieved by providing the JVM start time through the 'initialTimestamp' HTTP parameter in API requests, ensuring accurate graph representation.

ECLIPSE MAT – INCOMING REFERENCES, OUTGOING REFERENCES

Eclipse Memory Analyzer (MAT) is a tool for heap dump analysis, featuring 'incoming references' and 'outgoing references'. Incoming references are objects that reference a particular object, while outgoing references are objects that are referenced by it. The article illustrates these concepts with a sample application, clarifying their differences.

SHALLOW HEAP, RETAINED HEAP

Eclipse MAT (Memory Analyzer Tool) is utilized for analyzing heap dumps to address memory issues, distinguishing between Shallow Heap and Retained Heap sizes. Shallow Heap refers to an object's size, whereas Retained Heap indicates memory freed if the object is garbage collected. Examples illustrate these concepts using an object model, revealing how references affect retained heap calculations.

VIRTUAL MACHINE ERROR

Java.lang.VirtualMachineError is an exception thrown by the JVM due to internal errors or resource limitations. It includes four types: OutOfMemoryError, StackOverflowError, InternalError, and UnknownError, each with distinct causes. Understanding these errors is vital for diagnosing and resolving potential issues in Java applications, particularly for DevOps professionals.

HOW TO INVOKE GC LOGS ANALYSIS API THROUGH POSTMAN

GCeasy offers a REST API for analyzing Java GC logs, aimed at application monitoring and code quality assessment during CI/CD processes. This guide details how to use the API via Postman, including downloading Postman, setting the POST method, entering the request URL with the API key, and uploading GC log files.

GC LOG ANALYSIS COMPLIMENTS APM

The article discusses the differences between APM tools like AppDynamics and GC log analysis tools such as GCeasy. APM tools monitor application performance in production, while GCeasy offers detailed insights into Garbage Collection metrics, phases, causes, and optimization recommendations. GCeasy complements APM tools, enhancing memory management and performance tuning across environments.

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.

MEMORY EFFICIENT: ECLIPSE OR INTELLIJ?

The study compares memory efficiency between Eclipse and IntelliJ IDEs by analyzing garbage collection activities during a coding exercise. Findings reveal IntelliJ creates significantly more objects (29 times) than Eclipse, impacting CPU consumption. However, IntelliJ demonstrates better average and maximum garbage collection pause times. Ultimately, Eclipse is deemed more memory efficient.

Up ↑