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.
- Host: GitHub
- URL: https://github.com/marschall/string-dedup-parser
- Owner: marschall
- Created: 2016-11-26T12:55:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-05T18:36:27.000Z (over 7 years ago)
- Last Synced: 2025-01-16T02:44:55.866Z (4 months ago)
- Language: Java
- Size: 285 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
String Deduplication Log Parser [](https://travis-ci.org/marschall/string-dedup-parser) [](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.