Hi Marcel,

Memory leaks will happen when there are background threads started by
webapp and not shutdown (usually lib like Code hale has shutdown hook, but
web app you do get to execute shutdown hook so you get memory leaks or
class not found).  I have faced this so you need to either use web context
listener and close all threads.

With Old Producer I have faced this issue. I had to explicitly called
Metrics.defaultRegistry().shutdown();  for shutdown because
producer.close() does not shutdown metics threads. Similar issue if you are
consuming consumer side.  Also, you have to call consumer.shutdown() as
well.

I hope this help !

Thanks,

Bhavesh


On Tue, Jan 6, 2015 at 1:53 PM, Marcel Alburg <m.alb...@weeaar.com> wrote:

> Hello,
>
> i try to use spring-integration-kafka and after stopping the Tomcat i get
> an "possible memory leak" from the class loader.
>
> I talked with the people of spring-integration-kafka and you can see this
> talk with a lot of debug messages and an reproduceable project under:
>
> https://github.com/spring-projects/spring-integration-kafka/issues/10
>
> Thanks in advance
>

Reply via email to