An open API service indexing awesome lists of open source software.

https://github.com/marschall/string-dedup-parser

Parses HotSpot string deduplication logs.
https://github.com/marschall/string-dedup-parser

Last synced: 3 months ago
JSON representation

Parses HotSpot string deduplication logs.

Awesome Lists containing this project

README

        

String Deduplication Log Parser [![Build Status](https://travis-ci.org/marschall/string-dedup-parser.svg?branch=master)](https://travis-ci.org/marschall/string-dedup-parser) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/string-dedup-parser/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/string-dedup-parser)
===============================

A parser for [HotSpot string deduplication](http://openjdk.java.net/jeps/192) logs. Tested with JDK 8 and JDK 9.

Usage
-----

Download [string-dedup-parser-0.3.0-shaded.jar](http://search.maven.org/remotecontent?filepath=com/github/marschall/string-dedup-parser/0.3.0/string-dedup-parser-0.3.0-shaded.jar)

Run the JAR with log file to parse as the first command line argument

```
java -jar string-dedup-parser-0.3.0-shaded.jar src/test/resources/middleware.log
```

the output will look something like this

```
total memory saved 162.1M in 148 deduplications
```

To get the logs you to to run at least with

```
-XX:+UseStringDeduplication -XX:+UseG1GC -XX:+PrintGC -XX:+PrintGCDetails
```

as string deduplication is only available with G1.