This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
public class FunWithStaticInitialization { | |
public static void main(String[] args) { | |
new SimpleThing(); | |
} | |
interface Thing { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'io.spring.gradle:dependency-management-plugin:0.4.1.RELEASE' | |
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.2.2.RELEASE' | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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%)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | |
java 59490 awilkinson cwd DIR 1,1 204 37243515 /Users/awilkinson/dev/spring/spring-xd/spring-xd-dirt | |
java 59490 awilkinson txt REG 1,1 89064 29583179 /Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/bin/java | |
java 59490 awilkinson txt REG 1,1 11015128 29583429 /Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/jre/lib/server/libjvm.dylib | |
java 59490 awilkinson txt REG 1,1 46024 29583394 /Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/jre/lib/libverify.dylib | |
java 59490 awilkinson txt REG 1,1 195324 29583363 /Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/jre/lib/libjava.dylib | |
java 59490 awilkinson txt REG 1,1 125208 29583358 /Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/jre/lib/libinstrument.d |