Hi,

I have created one (my first 😉):
https://issues.apache.org/jira/browse/CAMEL-17588

Regards Björn


-----Ursprüngliche Nachricht-----
Von: Claus Ibsen <[email protected]> 
Gesendet: Mittwoch, 2. Februar 2022 14:34
An: [email protected]
Betreff: Re: ThreadLocal 
org.apache.camel.impl.engine.DefaultReactiveExecutor.Worker

Hi

Yeah we should cleanup this, you are welcome to create a JIRA

On Wed, Feb 2, 2022 at 2:07 PM Björn Ohm <[email protected]> wrote:
>
> Hi,
>
> we have migrate from 2.x to 3.14.1 in our test-environment. We are 
> running our Camel-Application on a Tomcat (Provide soap-services over 
> CXF-Endpoint, route Messages in JMS-Queues, read from JMS-Queue with 
> JMS-Endpoint, an then do other things...)
>
> While the Tomcat-Shutdown we observed a bunch of Thread-Local-WARNINGS in the 
> catalina.out:
>
> 02-Feb-2022 01:31:23.810 SCHWERWIEGEND [main] 
> org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks 
> The web application [provinzial-integration-intern] created a ThreadLocal 
> with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value 
> [java.lang.ThreadLocal$SuppliedThreadLocal@4a4357f5]) and a value of type 
> [org.apache.camel.impl.engine.DefaultReactiveExecutor.Worker] (value 
> [org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker@76e66f23]) 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.
>
> Obviously this belongs to the ThreadLocals used in 
> org.apache.camel.impl.engine.DefaultReactiveExecutor.
>
> Should I be worried about this? What happens, when my application runs for a 
> longer time period (days,weeks) without a reboot?
> Perhaps a clean-up (ThreadLocal.remove()) is missing (at least while the 
> shutdown-steps)?
>
> Regards Björn


--
Claus Ibsen
-----------------
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdavsclaus.com%2F&amp;data=04%7C01%7Cbjoern.ohm%40provinzial.de%7Cd38fcc247fe74615cb2a08d9e650d404%7C1a6db01b8131402a9eb676574bbaf515%7C1%7C0%7C637794058117015662%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=tkgJDdLHQPFpFoJ4MFCF6kHXBd2FGs7Tq%2FHIuymPNQs%3D&amp;reserved=0
 @davsclaus Camel in Action 2: 
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.manning.com%2Fibsen2&amp;data=04%7C01%7Cbjoern.ohm%40provinzial.de%7Cd38fcc247fe74615cb2a08d9e650d404%7C1a6db01b8131402a9eb676574bbaf515%7C1%7C0%7C637794058117015662%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=UAy5ADjDnHAl7v0SpXuF5GlZu9JGlTu0hAzYbCXMBEU%3D&amp;reserved=0

Diese E-Mail könnte vertrauliche und / oder rechtlich geschützte Informationen 
enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
Weitergabe dieser Mail sind nicht gestattet.

This e-mail may contain confidential and / or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden. 

Reply via email to