巨大的org.springframework.boot.loader.LaunchedURLClassLoader内存使用量

问题描述 投票:0回答:2

随着时间的推移,我未使用的正在运行的 Spring Boot v1.3.2 应用程序逐渐增加内存消耗,直到最终崩溃。所谓未使用,是指除了

/health
端点的常规 ping 之外,没有为任何请求的客户端提供服务。

根据 Eclipse 内存分析器,

org.springframework.boot.loader.LaunchedURLClassLoader
占用了 920MB 的巨大空间。

Spring Boot 似乎在不断加载类

有什么想法吗?

编辑

看起来是 Spring Cloud Consul 导致了这个问题:

spring-boot spring-cloud
2个回答
2
投票

似乎是 Spring Cloud Consul 中的内存泄漏。提出问题https://github.com/spring-cloud/spring-cloud-consul/issues/183


0
投票

您好,请问怎么解决的? 我用的springboot版本是2.3.1.RELEASE

© www.soinside.com 2019 - 2024. All rights reserved.