Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/microsoft/gctoolkit
Tool for parsing GC logs
https://github.com/microsoft/gctoolkit
gc heap java jvm memory memory-management performance
Last synced: about 1 month ago
JSON representation
Tool for parsing GC logs
- Host: GitHub
- URL: https://github.com/microsoft/gctoolkit
- Owner: microsoft
- License: mit
- Created: 2021-07-20T22:44:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T09:30:09.000Z (about 2 months ago)
- Last Synced: 2024-09-30T04:20:55.447Z (about 1 month ago)
- Topics: gc, heap, java, jvm, memory, memory-management, performance
- Language: Java
- Homepage: https://github.com/microsoft/gctoolkit
- Size: 1.93 MB
- Stars: 1,244
- Watchers: 42
- Forks: 153
- Open Issues: 65
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
- Support: SUPPORT.md
Awesome Lists containing this project
README
# 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](https://devblogs.microsoft.com/java/introducing-microsoft-gctoolkit/).
[![GCToolKit build with Maven](https://github.com/microsoft/gctoolkit/actions/workflows/maven.yml/badge.svg)](https://github.com/microsoft/gctoolkit/actions/workflows/maven.yml)
---
## Introduction
Managed memory in the Java Virtual Machine (JVM) is composed of 3 main pieces:
1. Memory buffers known as Java heap
1. Allocators which perform the work of getting data into Java heap
1. 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 JVM’s 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](./sample/README.md) 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
[![Maven Central](https://img.shields.io/maven-central/v/com.microsoft.gctoolkit/gctoolkit-parser.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.microsoft.gctoolkit%22%20AND%20a:%22gctoolkit-api%22)
The GCToolKit artifacts are in [Maven Central](https://search.maven.org/search?q=g:com.microsoft.gctoolkit). You'll then need to add the `api`, `parser` and `vertx` modules to your project in the `dependencyManagement` and/or `dependencies` section as you see fit.
```xml
...
com.microsoft.gctoolkit
api
3.0.4
com.microsoft.gctoolkit
parser
3.0.4
com.microsoft.gctoolkit
vertx
3.0.4
...
```
## User Discussions
Meet other developers working with GCToolKit, ask questions, and participate in the development of this project by visiting the [Discussions](https://github.com/microsoft/gctoolkit/discussions) tab.
### Example
See the sample project: [sample/README](./sample/README.md)
## Contributing
See [CONTRIBUTING](CONTRIBUTING.md) for full details including more options for building and testing the project.
### Test Coverage Report
**Core API Coverage** ![Coverage](.github/badges/jacoco-api-coverage.svg)
**Core :: Parser**![Coverage::Core::Parser](.github/badges/jacoco-parser-coverage.svg)
**Core :: Vertx**![Coverage::Core::Parser](.github/badges/jacoco-vertx-coverage.svg)
## License
Microsoft GCToolKit is licensed under the [MIT](https://github.com/microsoft/gctoolkit/blob/master/LICENSE) license.