【发布时间】:2017-12-15 10:55:02
【问题描述】:
我有一个 SpringBoot 应用程序,它只需要最大。 284 MB 内存。但我只能以 max 启动应用程序。 768 MB 内存。即使我稍后减少内存,我总是会收到以下错误:
[APP/PROC/WEB/0] ERR Cannot calculate JVM memory configuration: There is insufficient memory remaining for heap. Memory limit 384M is
less than allocated memory 672509K (-XX:ReservedCodeCacheSize=240M, -XX:MaxDirectMemorySize=10M, -XX:MaxMetaspaceSize=109309K, -Xss1M * 300 threads)
我已经在 cf 中使用相同的应用程序,没有这个问题。 cf有什么变化?在 2 或 3 周之前,它仍然有效。
提前感谢您的快速回答!
【问题讨论】:
标签: java spring-boot memory cloud-foundry swisscomdev