Closed GoogleCodeExporter closed 9 years ago
There is a reason why InheritableThreadLocal is used instead of ThreadLocal. I
will try to reproduce the problem to see if the leak is real and if there is
anything can be done with it.
Thanks for reporting this issue.
Original comment by alex.obj...@gmail.com
on 30 Sep 2011 at 8:45
Hi Alex. It's only a leak if the thread holding the ITL isn't shutdown during a
model reload or Servlet Context reload; otherwise its just an annoying error
message from Tomcat 7.
Original comment by gacha...@gmail.com
on 30 Sep 2011 at 9:42
I am experiencing the same things. It seems like some Threads are not getting
stopped either.
Original comment by talibsha...@gmail.com
on 6 Oct 2011 at 8:34
Original comment by alex.obj...@gmail.com
on 24 Oct 2011 at 9:53
Original comment by alex.obj...@gmail.com
on 24 Oct 2011 at 9:54
The memory leak warning doesn't appear anymore. It wasn't the
InheritableThreadLocal causing the problem, rather there was a problem with the
scheduler who didn't manage to stop started threads. I've refactored the code
related to scheduling and it should be fixed now in branch 1.4.x
Original comment by alex.obj...@gmail.com
on 25 Oct 2011 at 8:05
Still able to reproduce it in 1.4.x... If I won't find a solution soon, I'll
fix it in 1.4.x
Original comment by alex.obj...@gmail.com
on 21 Nov 2011 at 8:56
Original comment by alex.obj...@gmail.com
on 7 May 2012 at 7:51
The Context is hold in InheritableThreadLocal because the Context
should be accessible from within new threads created by executor (ex: when
parallelPreprocessing is set to true).
Original comment by alex.obj...@gmail.com
on 7 May 2012 at 8:16
Original comment by alex.obj...@gmail.com
on 7 May 2012 at 8:20
Original comment by alex.obj...@gmail.com
on 7 May 2012 at 8:59
Fixed in branch 1.4.x.
Now using an alternative approach, where each request generates a correlationId
which is used as a key in the map storing the Context's.
Original comment by alex.obj...@gmail.com
on 8 May 2012 at 3:20
Original issue reported on code.google.com by
gacha...@gmail.com
on 27 Sep 2011 at 4:46