Support Questions
Find answers, ask questions, and share your expertise

i am using spring kafka inbound channel adapter.i undeployed the consumer code still it is consuming messages

i am using spring kafka inbound channel adapter.i undeployed the consumer code still it is consuming messages

New Contributor

.i tried to explicitly close it but it is still consuming messages. i called metrics.defaultRegistry().shutdown but it shows unable to close the task schedular thread

2 REPLIES 2

Re: i am using spring kafka inbound channel adapter.i undeployed the consumer code still it is consuming messages

Expert Contributor

try below to get the process id and do kill -9 on the process id

ps -ef | grep <name of your consume processor>

kill -9 <process id>

Re: i am using spring kafka inbound channel adapter.i undeployed the consumer code still it is consuming messages

New Contributor

How to gracefully shut it down in production