Debug leak (#695)
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
package io.emeraldpay.dshackle
|
package io.emeraldpay.dshackle
|
||||||
|
|
||||||
import io.netty.handler.ssl.OpenSsl
|
import io.netty.handler.ssl.OpenSsl
|
||||||
import io.netty.util.ResourceLeakDetector
|
|
||||||
import org.slf4j.LoggerFactory
|
import org.slf4j.LoggerFactory
|
||||||
import org.springframework.boot.ResourceBanner
|
import org.springframework.boot.ResourceBanner
|
||||||
import org.springframework.boot.SpringApplication
|
import org.springframework.boot.SpringApplication
|
||||||
@@ -38,10 +37,6 @@ fun main(args: Array<String>) {
|
|||||||
|
|
||||||
HeapDumpCreator.init()
|
HeapDumpCreator.init()
|
||||||
|
|
||||||
System.setProperty("io.netty.leakDetection.targetRecords", "10");
|
|
||||||
|
|
||||||
ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.ADVANCED)
|
|
||||||
|
|
||||||
val cores = Runtime.getRuntime().availableProcessors()
|
val cores = Runtime.getRuntime().availableProcessors()
|
||||||
val maxMemory: Long = Runtime.getRuntime().maxMemory() / (1024 * 1024).toLong()
|
val maxMemory: Long = Runtime.getRuntime().maxMemory() / (1024 * 1024).toLong()
|
||||||
log.info("Max heap size: {} MB, number of cores: {}", maxMemory, cores)
|
log.info("Max heap size: {} MB, number of cores: {}", maxMemory, cores)
|
||||||
|
|||||||
Reference in New Issue
Block a user