Do not set default max memory limits (#201)
This commit is contained in:
@@ -183,7 +183,7 @@ jib {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
container {
|
container {
|
||||||
jvmFlags = ['-Xms1024m', '-Xmx1024m', '-XX:+UseG1GC', '-XX:+ExitOnOutOfMemoryError']
|
jvmFlags = ['-XX:+UseG1GC', '-XX:+ExitOnOutOfMemoryError', '-Xms1024M']
|
||||||
mainClass = 'io.emeraldpay.dshackle.StarterKt'
|
mainClass = 'io.emeraldpay.dshackle.StarterKt'
|
||||||
args = []
|
args = []
|
||||||
ports = ['2448', '2449', '8545']
|
ports = ['2448', '2449', '8545']
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ private val log = LoggerFactory.getLogger(Starter::class.java)
|
|||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
Schedulers.enableMetrics()
|
Schedulers.enableMetrics()
|
||||||
|
|
||||||
|
val maxMemory: Long = Runtime.getRuntime().maxMemory() / (1024 * 1024).toLong()
|
||||||
|
log.info("Max heap size: {} MB", maxMemory)
|
||||||
|
|
||||||
val app = SpringApplication(Starter::class.java)
|
val app = SpringApplication(Starter::class.java)
|
||||||
app.setDefaultProperties(ResourcePropertySource("version.properties").source)
|
app.setDefaultProperties(ResourcePropertySource("version.properties").source)
|
||||||
app.setBanner(ResourceBanner(ClassPathResource("banner.txt")))
|
app.setBanner(ResourceBanner(ClassPathResource("banner.txt")))
|
||||||
|
|||||||
Reference in New Issue
Block a user