diff --git a/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt b/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt index 5ff00f5a..c87921fe 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/Starter.kt @@ -38,6 +38,8 @@ fun main(args: Array) { HeapDumpCreator.init() + System.setProperty("io.netty.leakDetection.targetRecords", "10"); + ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.ADVANCED) val cores = Runtime.getRuntime().availableProcessors()