Tech

Microsoft Open Source Java Garbage Collection Analyzer

Microsoft’s Java Engineering Group has open sourced the Microsoft GC Toolkit, a set of libraries for analyzing Java garbage collection (GC) log files.

Available on GitHub The GC Toolkit, provided under the MIT license, provides an API for parsing log files into individual events and aggregating the data from those events. Users can create any complex analysis of the state of managed memory in the JVM, as shown in the Java GC log.

Announced in early August, the GC Toolkit consists of three Java modules covering an API, a GC log file parser, and a message backplane based on the Vert.x toolkit for building reactive applications in the JVM. .. The API module is the entry point to the toolkit and hides the details of how to use the parser and Vert.x to analyze GC log files into several method calls. The parser module is a collection of regular expressions and code developed as a robust GC log parser.

The Vert.x-based messaging backplane utilizes two message buses. First, stream the log lines from the GC file. The listener on this bus is a parser that transforms data from a data source into an event that represents either a GC cycle or a safepoint. These events will be published on the second message bus. The listener on this event bus then handles the event of interest.

The parser issues separate JVM events, allowing you to write code that captures and analyzes data from these events. The data you analyze depends on what the developer wants to see. GCToolkit has an aggregator / aggregation framework for capturing and analyzing GC log file data. The code that captures the event is called an aggregator, and the code that analyzes the data is called an aggregation.

Developers interested in contributing to the GC Toolkit can participate Online discussion About the project. The open sourcing of Microsoft’s JavaGC project came after the company created its own Java distribution. Microsoft build of OpenJDK, May.The company also supports Java development in Microsoft Azure cloud..

Copyright © 2021 IDG Communications, Inc.

Microsoft Open Source Java Garbage Collection Analyzer

Source link Microsoft Open Source Java Garbage Collection Analyzer

Related Articles

Back to top button