Spring Plugin Maybe cause memory leak in some case #2546
Labels
agent
Language agent related.
bug
Something isn't working and you are sure it's a bug!
core feature
Core and important feature. Sometimes, break backwards compatibility.
Milestone
Please answer these questions before submitting your issue.
Bug
Spring Plugin Maybe cause memory leak in some case
org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.AbstractMethodInterceptor
this is the key code.
the case is one @RequestMapping method(methodA) call other @RequestMapping method(methodB).
beforeMethodA--> methodA -> beforeMethodB -> methodB -> afterMethodB - >afterMethodA
beforeMethodA, a entry is creatted.
beforeMethodB, entry size++;
afterMethodB, entry size--(entry still in stack) & RESPONSE_KEY_IN_RUNTIME_CONTEXT removed.
afterMethodA, since RESPONSE_KEY_IN_RUNTIME_CONTEXT is null,return
all process has finished,but stack in thread is not empty.
The text was updated successfully, but these errors were encountered: