Netflix / zuul

Zuul is a gateway service that provides dynamic routing, monitoring, resiliency, security, and more.
Apache License 2.0
13.51k stars 2.38k forks source link

Zuul seems to be causing a potential memory leak in Tomcat #696

Closed albertogarza closed 1 month ago

albertogarza commented 4 years ago

We're noticing that these errors are showing up in our logs quite frequently:

19-Dec-2019 12:15:43.402 SEVERE [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [***] created a ThreadLocal with key of type [com.netflix.zuul.context.RequestContext$1] (value [com.netflix.zuul.context.RequestContext$1@5f541b2b]) and a value of type [com.netflix.zuul.context.RequestContext] (value [{}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

I found this issue on GitHub https://github.com/spring-cloud/spring-cloud-netflix/issues/3538 but the spring-cloud-netflix project says it should be fixed in this project. I couldn't find a related issue on this project so I opened this issue.

Our operations team has reported that whenever they see these errors, Tomcat decides to restart on its own which may prevent an OutOfMemoryError but it would not be an ideal solution.

We're using org.springframework.cloud:spring-cloud-starter-netflix-zuul:2.1.3.RELEASE, if that helps.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 7 days with no activity.