governator icon indicating copy to clipboard operation
governator copied to clipboard

SimpleProvisionMetrics ThreadLocal leak on Tomcat undeploy

Open cristiancalugaru opened this issue 11 years ago • 0 comments

When undeploying a web app using ProvisionDebugModule, Tomcat will complain about a possible memory leak related to a thread local variable:

The web application [xxx] created a ThreadLocal with key of type [java.lang.ThreadLocal](value [java.lang.ThreadLocal@19b7a0b3]) and a value of type [com.netflix.governator.SimpleProvisionMetrics.Data](value [com.netflix.governator.SimpleProvisionMetrics$Data@47c13c28]) but failed to remove it when the web application was stopped.

This might be a similar issue with https://github.com/Netflix/Hystrix/issues/320 and https://github.com/Netflix/Hystrix/issues/816. A workaround for now is not to use the ProvisionDebugModule.

cristiancalugaru avatar Nov 27 '15 15:11 cristiancalugaru