[英]Spring Boot memory usage (JpaMetamodelMappingContext)
We have Spring Boot Data-Rest project with more than 1000 JPA entities in it. 我们有一个Spring Boot Data-Rest项目,其中有1000多个JPA实体。 Application starts with initial 4GB memory usage.
应用程序从初始4GB内存使用开始。 When I analyze the memory usage via JProfiler, I can see BasicPersistentEntity classes and their propertyCache cover most of the consumption.
当我通过JProfiler分析内存使用情况时,我可以看到BasicPersistentEntity类及其属性Cache覆盖了大部分消耗。
Is this the default behaviour, or are we missing something? 这是默认行为吗,还是我们遗漏了一些东西?
I'm not sure how, but it's fixed in Spring Boot 2.1.0.M3 version. 我不确定如何,但是在Spring Boot 2.1.0.M3版本中已修复。
Here is the related commit. 这是相关的提交。
https://github.com/spring-projects/spring-data-jpa/commits/master/src/main/java/org/springframework/data/jpa/mapping/JpaMetamodelMappingContext.java https://github.com/spring-projects/spring-data-jpa/commits/master/src/main/java/org/springframework/data/jpa/mapping/JpaMetamodelMappingContext.java
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.