Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Huge org.springframework.boot.loader.LaunchedURLClassLoader memory usage

Over time my unused running my Spring Boot v1.3.2 application gradually increases memory consumption until it eventually falls over. By unused I mean no client requested are being served apart from the regular ping of the /health end point.

enter image description here

According to the Eclipse Memory Analyser, org.springframework.boot.loader.LaunchedURLClassLoader is taking up a massive 920MB.

enter image description here

It appears as though Spring Boot is continually loading classes

enter image description here

Any ideas what's going on?

EDIT

Looks like it's Spring Cloud Consul that's causing the issue:

enter image description here

like image 281
nickcodefresh Avatar asked May 10 '16 11:05

nickcodefresh


1 Answers

Appears to be a memory leak in Spring Cloud Consul. Raised issue https://github.com/spring-cloud/spring-cloud-consul/issues/183

like image 66
nickcodefresh Avatar answered Sep 30 '22 09:09

nickcodefresh