Tool for parsing GC logs
Перейти к файлу
Bruno Borges ee3e4051b3 cleanup 2021-10-04 10:29:51 -07:00
.devcontainer VS Code DevContainer Config and TestData Download with Maven (#90) 2021-09-23 15:58:00 -07:00
.github debugging release to Maven Central 2021-09-22 11:36:33 -07:00
.mvn VS Code DevContainer Config and TestData Download with Maven (#90) 2021-09-23 15:58:00 -07:00
api Moved the StartingGun into the vertx module where it is used. (#113) 2021-09-28 15:28:14 -07:00
gclogs Diary (#107) 2021-10-01 09:40:42 -07:00
parser Diary (#107) 2021-10-01 09:40:42 -07:00
sample Made test methods and classes public to avoid needing --add-opens (#114) 2021-09-28 14:14:04 -07:00
vertx Moved the StartingGun into the vertx module where it is used. (#113) 2021-09-28 15:28:14 -07:00
.gitignore New project structure (#101) 2021-09-26 09:02:09 -07:00
CODE_OF_CONDUCT.md Transfer of assets to gctoolkit 2021-07-20 16:03:18 -07:00
CONTRIBUTING.md Merge branch 'main' of github.com:microsoft/gctoolkit 2021-09-21 08:18:48 -07:00
CONTRIBUTORS.md Rename last files to new naming scheme (#7) 2021-07-30 10:56:40 -04:00
LICENSE Transfer of assets to gctoolkit 2021-07-20 16:03:18 -07:00
NOTICES.md added notices listing third party dependencies 2021-07-23 10:24:32 -07:00
README.md Merge branch 'main' of github.com:microsoft/gctoolkit 2021-09-21 08:18:48 -07:00
SECURITY.md Transfer of assets to gctoolkit 2021-07-20 16:03:18 -07:00
SUPPORT.md Scan of top level files 2021-07-23 16:24:46 -07:00
mvnw change mvnw attribute to executable 2021-08-31 12:54:20 -07:00
mvnw.cmd add maven wrapper for better onboarding 2021-08-31 11:31:29 -07:00
pom.xml New project structure (#101) 2021-09-26 09:02:09 -07:00

README.md

Microsoft GCToolKit

GCToolkit is a set of libraries for analyzing HotSpot Java garbage collection (GC) log files. The toolkit parses GC log files into discrete events and provides an API for aggregating data from those events. This allows the user to create arbitrary and complex analyses of the state of managed memory in the Java Virtual Machine (JVM) represented by the garbage collection log.

For more detail you can read our Launch Blog Post.

GCToolKit build with Maven


Introduction

Managed memory in the Java Virtual Machine (JVM) is composed of 3 main pieces:

  1. Memory buffers known as Java heap
  2. Allocators which perform the work of getting data into Java heap
  3. Garbage Collection (GC).

While GC is responsible for recovering memory in Java heap that is no longer in use, the term is often used as a euphemism for memory management. The phrasing of Tuning GC or tuning the collector are often used with the understanding that it refers to tuning the JVMs memory management subsystem. The best source of telemetry data for tuning GC comes from GC Logs and GCToolKit has been helpful in making this task easier by providing parsers, models and an API to build analytics with. You can run the Maven project HeapOccupancyAfterCollectionSummary sample as an example of this.

Usage

In order to use this library you'll need to add its dependencies to your project. We provide the instructions for Maven below.

Maven Coordinates

The GCToolKit artifacts are in GitHub packages. To use the GCToolKit artifacts as dependencies in your project, github must be added as a repository in your POM file.

<repositories>
    ...
    
    <repository>
        <id>github</id>
        <name>GCToolKit packages</name>
        <url>https://maven.pkg.github.com/microsoft/*</url>
    </repository>
    
    ...
</repositories>

You'll then want to add the api, parser and vertx modules to your project in the dependencyManagement and/or dependencies section as you see fit.

<dependencies>
    ...
    
    <dependency>
        <groupId>com.microsoft.gctoolkit</groupId>
        <artifactId>api</artifactId>
        <version>2.0.1</version>
    </dependency>
    
    <dependency>
        <groupId>com.microsoft.gctoolkit</groupId>
        <artifactId>parser</artifactId>
        <version>2.0.1</version>
    </dependency>
    
    <dependency>
        <groupId>com.microsoft.gctoolkit</groupId>
        <artifactId>vertx</artifactId>
        <version>2.0.1</version>
    </dependency>

    ...
</dependencies>

Example

See sample/README


Test Coverage Report

Core API Coverage
Coverage

Core :: Parser
Coverage::Core::Parser

Core :: Vertx
Coverage::Core::Parser

Contributing

See CONTRIBUTING for full details including more options for building and testing the project.

License

Microsoft GCToolKit is licensed under the MIT license.