Skip to content

Instantly share code, notes, and snippets.

@wilkinsona
Created August 29, 2014 10:51
Show Gist options
  • Save wilkinsona/5206b41a743d72026909 to your computer and use it in GitHub Desktop.
Save wilkinsona/5206b41a743d72026909 to your computer and use it in GitHub Desktop.
Effect of String deduplication on Spring Boot's actuator sample
$ java -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+PrintStringDeduplicationStatistics -jar target/spring-boot-sample-actuator-1.1.5.RELEASE.jar
[GC concurrent-string-deduplication, 23.8K->12.8K(11.1K), avg 41.3%, 0.0001704 secs]
[Last Exec: 0.0001704 secs, Idle: 0.0535354 secs, Blocked: 0/0.0000000 secs]
[Inspected: 672]
[Skipped: 0( 0.0%)]
[Hashed: 182( 27.1%)]
[Known: 299( 44.5%)]
[New: 373( 55.5%) 23.8K]
[Deduplicated: 224( 60.1%) 11.1K( 46.5%)]
[Young: 224(100.0%) 11.1K(100.0%)]
[Old: 0( 0.0%) 0.0B( 0.0%)]
[Total Exec: 66/0.0394654 secs, Idle: 66/143.6732158 secs, Blocked: 4/0.0054014 secs]
[Inspected: 118620]
[Skipped: 1( 0.0%)]
[Hashed: 67241( 56.7%)]
[Known: 20969( 17.7%)]
[New: 97650( 82.3%) 9460.8K]
[Deduplicated: 54682( 56.0%) 3907.2K( 41.3%)]
[Young: 10154( 18.6%) 838.6K( 21.5%)]
[Old: 44528( 81.4%) 3068.6K( 78.5%)]
[Table]
[Memory Usage: 1681.4K]
[Size: 32768, Min: 1024, Max: 16777216]
[Entries: 60817, Load: 185.6%, Cached: 0, Added: 63389, Removed: 2572]
[Resize Count: 5, Shrink Threshold: 21845(66.7%), Grow Threshold: 65536(200.0%)]
[Rehash Count: 0, Rehash Threshold: 120, Hash Seed: 0x0]
[Age Threshold: 3]
[Queue]
[Dropped: 0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment