A parser for HotSpot string deduplication logs. Tested with JDK 8 and JDK 9.
Download 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.